Home > database >  Vc DLL function called pb in ref
Vc DLL function called pb in ref

Time:09-16

Vc defined function
Extern "C" int _stdcall cs2014 (char * x, char * y)
{
Y="cs";
return 0;
}
Generate cs. DLL

Pb call
The Function int cs2014 (ref string a, ref string b) LIBRARY "cs. DLL" alias for "cs2014
"
Int ll_z
A string of aa and bb

Ll_z=decode2010 (aa and bb)

Messagebox (" tip ", ll_z)//execution right

Messagebox (" tip ", bb)//bb not return cs character?

CodePudding user response:

His top! Online etc.!

CodePudding user response:

Try this
 aa=space (256) 
Bb=space (256)
Ll_z=decode2010 (aa and bb)

CodePudding user response:

VC function change:
Extern "C" int _stdcall cs2014 (char * x, char * y)
{
Strcpy (y, "cs");
return 0;
}
Pb call also change
Aa=space (256)
Bb=space (256)
Ll_z=decode2010 (aa and bb)
  • Related