G
Guest
I use the C++.NET to write a dll and call the dll using VB6
VC++ Code
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserve
return TRUE
BOOL APIENTRY DllMain( HINSTANCE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserve
return TRUE
__declspec(dllexport) long SPS_Hello ( char *msg
if ( msg
strcpy ( msg, "Hello !!" )
return 0
els
return 1
VB code
Declare Function SPS_Hello Lib "SPS.dll" (msg As String) As Lon
Sub main(
Dim temp As Strin
SPS_Hello (temp
MsgBox temp
End Su
I run the VB and get an error: "Can't find DLL entry point SPS_Hello in sps.dll". I have the entry point function "DllMain". What is wrong
S.N. Yan
03/29/2004
VC++ Code
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserve
return TRUE
BOOL APIENTRY DllMain( HINSTANCE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserve
return TRUE
__declspec(dllexport) long SPS_Hello ( char *msg
if ( msg
strcpy ( msg, "Hello !!" )
return 0
els
return 1
VB code
Declare Function SPS_Hello Lib "SPS.dll" (msg As String) As Lon
Sub main(
Dim temp As Strin
SPS_Hello (temp
MsgBox temp
End Su
I run the VB and get an error: "Can't find DLL entry point SPS_Hello in sps.dll". I have the entry point function "DllMain". What is wrong
S.N. Yan
03/29/2004