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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Name mangling

Status
Not open for further replies.

joeGrammar

Programmer
Jun 4, 2001
162
CA
Hello dudes,

I'm trying to export/import dll classes and functions, but it doesn't seem to be working properly. These are some of the unresolved symbols I'm getting:

__imp__GetAppName@0

GetPyblUsingPymntId@24

My question is, is the @24 a name mangling thing, will this not resolve? If so how do you eliminate this type of thing

Also what is the __imp__? I'm assuming it means import, but why is it part of the symbol?

 
it means you should update the lib file (ie to remove the old and to put the newest) John Fill
1c.bmp


ivfmd@mail.md
 
what do you mean update the lib file? I'm building a console application and am including the location of the lib file of the dll which is built new before each build of the console application
 
In this case this error means you didn't implement this function. John Fill
1c.bmp


ivfmd@mail.md
 
sigh, its implemented and exported, but for some reason MSVC++ doesn't wanna resolve it
 
your problem have nothing to do with name mangling. Something you did wrong. John Fill
1c.bmp


ivfmd@mail.md
 
LOL since you do not use other languages and/or other C++ compillers, you'll never have this problem. Many beginners say what it is because of name mangling or of viruses or something like that till they find the error. Only problem is when you're using templates. DLL can't export template of classes/functions. But you can use template objects, if you're using the same template in both dll and exe. John Fill
1c.bmp


ivfmd@mail.md
 
by the way, try to click "rebuild all" in menu build in your dll project. Sometimes it help is such kind of problems. John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top