Home > database > Vc to write their own DLL call has a problem, to solve, thank you
Vc to write their own DLL call has a problem, to solve, thank you
Time:09-23
Himself wrote a vc DLL, the return type is char *, now the problem is that's right, in the vc messagebox display is right string, but spread to pb become garbled, if I am in the vc directly return string "XXX", is no problem in the pb, if char * re=a string, and then return re is garbled, how to return a responsibility?
CodePudding user response:
Char is a single-byte. As a result, PB in statement such function declarations for ANSI, such as: The function string GetStr () library "YourDLL. DLL" alias for "GetStr; ANSI"