G
Guest
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.
Ideas?
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.
Ideas?