A Digital Age Deserves A Digital Leader

C++ Compile error for windows mobile

C++ Compile error for windows mobile

Postby DRAGON OF DARKNESS » Fri May 22, 2009 3:00 am

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
PRO Level 16
User avatar
Posts: 1826
Joined: Fri Jul 16, 2004 11:14 pm
Location: MIA > FLA > USA

Re: C++ Compile error for windows mobile

Postby jbullard » Fri May 22, 2009 3:58 pm

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
VP - Software
User avatar
Posts: 3653
Joined: Sun Jun 06, 2004 10:17 pm
Location: Utah
Real Name: Jason Bullard

Re: C++ Compile error for windows mobile

Postby DRAGON OF DARKNESS » Fri May 22, 2009 4:08 pm

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 ..
Stephen
PRO Level 16
User avatar
Posts: 1826
Joined: Fri Jul 16, 2004 11:14 pm
Location: MIA > FLA > USA

Return to HTML, CSS, and Scripts

Who is online

Users browsing this forum: No registered users and 0 guests