hi there,thanks for everyone,i have another question...
i have a function in a dll( i wrote the dll using c++),and i need to call this function from VB program..
the function in the dll is:
char pppp[]="abcd";
_declspec (dllexport) char *buff()
{
return pppp;
}
i used this in the vb module:
Declare Function buff Lib "d:\dddd.dll" Alias "?buff@@YAPADXZ" () As long
and this in the project:
Private Sub Command3_Click()
k = buff
Print "k=" &k
but i got the folowing strange result
k=43657896
what is wrong