char* as return type in dll
-
char
as return type works fine,extern "C" char _declspec(dllimport) Test(); _declspec(dllexport) char Test() { return 't'; }
But why char* doesn't work here as the return type?extern "C" char* _declspec(dllimport) Test(); _declspec(dllexport) char* Test() { return "Test From DLL"; }
---------------------------- 286? WOWW!:-O
-
char
as return type works fine,extern "C" char _declspec(dllimport) Test(); _declspec(dllexport) char Test() { return 't'; }
But why char* doesn't work here as the return type?extern "C" char* _declspec(dllimport) Test(); _declspec(dllexport) char* Test() { return "Test From DLL"; }
---------------------------- 286? WOWW!:-O
_8086 wrote:
But why char* doesn't work here as the return type?
Can you define what you mean by 'doesn't work'?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
_8086 wrote:
But why char* doesn't work here as the return type?
Can you define what you mean by 'doesn't work'?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
_8086 wrote:
But why char* doesn't work here as the return type?
Can you define what you mean by 'doesn't work'?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
By the way, I'm keeping
extern "C" char* _declspec(dllimport) Test();
in a .h file.---------------------------- 286? WOWW!:-O