Hi, I am using Dev-C++ and I made my first DLL. The DLL added two numbers together and returned the sum. I tried to send a string and have it send it back but for some reason it just sends back nothing. Here's my code...
dll.cpp
dllclient.cppCode:char* DllClass::String(char* string) {string = "Hello World"; return string;}
Keep in mind the DLL works when dealing with numbers, so I'm not sure what the problem here is... Thanks anyways.Code:int main() { char* iValue; char* vReturn; DllClass Value; cin >> iValue; vReturn = Value.Encrypt(iValue); cout << vReturn; system("PAUSE"); }