F
Farmer777
Guest
Hello,
I created a DLL with a function in C++ and one of it's parameters is;
LPTSTR filePath
I want to pass it a string, which will get modified in the function, and then once the function is done I want to use the updated value in the calling program.
I am able to use and modify this parameter within the DLL function but when the function finishes the argument variable in my calling program does not get updated with the new value. It simply retains the original value it passed into the function. The argument I'm using is something like this;
TCHAR filePath[] = L"C:\\temp\\temp.txt";
Any idea why the updated value is not coming back to the caller? Sorry I'm not an experienced Windows C++ programmer. Your help is greatly appreciated.
Continue reading...
I created a DLL with a function in C++ and one of it's parameters is;
LPTSTR filePath
I want to pass it a string, which will get modified in the function, and then once the function is done I want to use the updated value in the calling program.
I am able to use and modify this parameter within the DLL function but when the function finishes the argument variable in my calling program does not get updated with the new value. It simply retains the original value it passed into the function. The argument I'm using is something like this;
TCHAR filePath[] = L"C:\\temp\\temp.txt";
Any idea why the updated value is not coming back to the caller? Sorry I'm not an experienced Windows C++ programmer. Your help is greatly appreciated.
Continue reading...