"Run time Error '49'" "Bad DLL calling conve
Posted: Thu Jun 10, 2004 2:12 pm
Using Visual Studio 6 I declare a C function in a DLL as
extern "C" TEST_API int fname(long nValue);
in VB I Declare thje DLL function as:
Private Declare Function fname Lib "O:\Documents and Settings\...\test.dll" _
(ByVal nValue As Long) As Integer
and call it as:
temp = fname(numValue)
where numValue is of type Long.
On doing this I receive the error "Run time Error '49'" "Bad DLL calling convention"
What is wrong with this??
extern "C" TEST_API int fname(long nValue);
in VB I Declare thje DLL function as:
Private Declare Function fname Lib "O:\Documents and Settings\...\test.dll" _
(ByVal nValue As Long) As Integer
and call it as:
temp = fname(numValue)
where numValue is of type Long.
On doing this I receive the error "Run time Error '49'" "Bad DLL calling convention"
What is wrong with this??