Any time I tried to to have a dll (explicitly calle with
AfxLoadLibrary) return me a CString or a pointer to it I got a crash.
I've solved the problem making traditional dlls that return a char*, and then, inside the application, I translate the pointer to char into a CString. But it is cumbersome.
Anybody knows the straight answer?
AfxLoadLibrary) return me a CString or a pointer to it I got a crash.
I've solved the problem making traditional dlls that return a char*, and then, inside the application, I translate the pointer to char into a CString. But it is cumbersome.
Anybody knows the straight answer?