C++ Compile error for windows mobile
3 posts
• Page 1 of 1
C++ Compile error for windows mobile
Hey guys, I didnt know where else to post this because I didnt see a section for it. Anyways Im having a problem compiling a program for windows mobile in C++. Heres my errors and the affected code...
Code:
- Code: Select all
extern "C" BOOL WINAPI NLedGetDeviceInfo(INT nID, PVOID pOutput);
extern "C" BOOL WINAPI NLedSetDevice(INT nID, PVOID pOutput);
Error:
- Code: Select all
error C2733: second C linkage of overloaded function 'NLedGetDeviceInfo' not allowed
- Code: Select all
error C2733: second C linkage of overloaded function 'NLedSetDevice' not allowed
Thanks for your help in advance!
Stephen
Stephen
- DRAGON OF DARKNESS
- Posts: 1826
- Joined: Fri Jul 16, 2004 11:14 pm
- Location: MIA > FLA > USA
Re: C++ Compile error for windows mobile
Stephen,
I am guessing you are trying to export those two functions.
- Code: Select all
extern "C" WINAPI __declspec(dllexport) BOOL NLedGetDeviceInfo(INT nID, PVOID pOutput);
extern "C" WINAPI __declspec(dllexport) BOOL NLedSetDevice(INT nID, PVOID pOutput)
HTH,
Jason
- jbullard
- VP - Software
- Posts: 3653
- Joined: Sun Jun 06, 2004 10:17 pm
- Location: Utah
- Real Name: Jason Bullard
Re: C++ Compile error for windows mobile
Hey Jason long time no see =P. But anyways, I just fixed it . I changed INT to UINT and had to comment out another line but now it compiles for windows mobile 6. The gui is all messed up from the oringinal source and i still have to update the code but at least im getting there =D. Thank Jason
EDIT: btw if your wondering what im working on its the old ventrilo for windows mobile that needs to be updated for ventrilo v3.0 servers and windows mobile 6 ..
EDIT: btw if your wondering what im working on its the old ventrilo for windows mobile that needs to be updated for ventrilo v3.0 servers and windows mobile 6 ..
Stephen
- DRAGON OF DARKNESS
- Posts: 1826
- Joined: Fri Jul 16, 2004 11:14 pm
- Location: MIA > FLA > USA
3 posts
• Page 1 of 1
Return to HTML, CSS, and Scripts
Who is online
Users browsing this forum: No registered users and 4 guests