I am converting 3 c functions into dll...
as follow.
char* _stdcall Dummy3(char *w1, char *w2)
{
return "w1";
}
char _stdcall Dummy2()
{
return 'a';
}
int _stdcall Dummy()
{
return 1234;
}
and 1 def file as follow.
LIBRARY MYDLL
EXPORTS
Dummy @1
Dummy2 @2
Dummy3 @3
now i am using VB
Declare Function Dum2 Lib "Testing.dll" Alias "Dummy2" () As String
Declare Function Dum3 Lib "Testing.dll" Alias "Dummy3" (ByRef w1 As
String, ByRef w2 As String) As Integer
Declare Function Dum1 Lib "Testing.dll" Alias "Dummy" () As Integer
Besides Dum1. All the other have failed and turn the VB down
immediate.
I have tried many method and done many research on web. Still cant
found solution.
What is happening?
Thanks for help