From advanced to novice... come, join in, teach, and learn. Web programming and help. We have stuff on it all: php, html, asp, asp.net, etc. Share your coding expertise too.
Moderators: Forum Experts, Management
by DRAGON OF DARKNESS on Thu May 21, 2009 10:00 pm
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
- PRO BRONZE

-
- Posts: 3668
- Joined: Fri Jul 16, 2004 6:14 pm
- Location: MIA > FLA > USA
by jbullard on Fri May 22, 2009 10:58 am
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: 3606
- Joined: Sun Jun 06, 2004 5:17 pm
- Location: Utah
- Real Name: Jason Bullard
-
by DRAGON OF DARKNESS on Fri May 22, 2009 11:08 am
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
-

DRAGON OF DARKNESS
- PRO BRONZE

-
- Posts: 3668
- Joined: Fri Jul 16, 2004 6:14 pm
- Location: MIA > FLA > USA
Return to HTML, CSS, and Scripts
Users browsing this forum: No registered users and 0 guests