Groups | Blog | Home
all groups > visual c > october 2004 >

visual c : exporting CStrings from DLL's



JackHWarner
10/29/2004 7:38:02 AM
I'm porting an app from vc++6 to vc++ 7.1, and am having some trouble
exporting functions. I can export simple functions from a DLL by simply
putting __declspec(dllexport) in front of them, and I can then use them just
fine in my app. When I try to export a function with a CString argument,
though, I can't seem to get anything to work. I can get the DLL to link, but
I always get a link error on my app. I've tried the __declspec(dllexport),
and every type of name-mangling I can think of in the .def exports. I must be
overlooking something simple.

brckcc
11/1/2004 7:43:06 AM
AddThis Social Bookmark Button