I made a Dll in C++ and called it from VB:
int main0(int argc, char *inpFileName, char *outFileName)
Private Declare Function main0 Lib "test.dll" (ByVal argc As Long, ByVal inpFileName As String, ByVal outFileName As String) As Long
main0 3, App.Path & "\test.inp", App.Path & "\test.out"
when run the VB, got error:
Bad DLL calling convertion.
Can you tell me what I missed?