Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can a dll return a CString?

Status
Not open for further replies.

rbarella

Technical User
Dec 26, 2002
11
IT
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?
 
you could use CString to return from function, only for return in an VisualC++ MFC accplication, in the case if it is compilled in VisualC++.

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top