Click to See Complete Forum and Search --> : Executable Gives a missing exported function that uses CString


Sandmik
June 11th, 2002, 12:46 AM
Hello everybody

I have a Solution of 48 projects. One of the projects has a class that has a virtual method called GetContents that returns a CString object. Out of the 48 projects, 1 of them is an executable project that uses all the other 47 dlls. Everything builds great, and links perfectly with no errors, just some minor warnings (things like converting from long to DWORD ...) (I have cleaned the whole solution several times).

My problem is: Once I try to run the Executable, it tells me missing exported function GetContents within the DLL say X.
Once I open the DLL X (Dependency Viewer) I notice that the function GetContents does exist, however it is decorated in a different manner than the function being asked for when the Executable runs. The DLL X has the GetContents with ATL word in the decorated name, but the Executable asks for another function that has a smaller decorated name without the ATL word in it.

:confused:

Please Help. My Guess is that each one of the dll projects are being linked with a different CString (ATL vs. MFC) but I am not sure how I can force one.

Please any help is greatly appreciated.