write a function for DLL with parameter LPWORD in VC use in VB
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I have a DLL write in VC , in this DLL a function is declare follow : BOOL InitMyDLL(LPWORD Alpha, LPWORD wrdpack); now i want use this function in my VB project , but any type get for LPWORD (Inteeger , long , double ,...) and run my project when this function call get this error : run-time error '49': bad DLL calling convertion. I Declaration this function in VB follow : private declare Function InitMyDLL lib "MYDLL" (ByRef Alpha, Packet() as long) as Boolean second parameter is a array !!! please help me, thanks for all.