RE: [GD-Windows] GetProcAddress()
Brought to you by:
vexxed72
From: Scott B. <gas...@nw...> - 2001-10-16 18:15:40
|
Three possibilities: 1. Export as extern "C" which will remove most of the mangling. 2. Use a .def file to name the exports how you like, just like the good old Win3 days. 3. Write a tool that postprocesses an exe to rename the entries in the export table. > -----Original Message----- > From: gam...@li... > [mailto:gam...@li...] On > Behalf Of Erwin de Vries > Sent: Tuesday, October 16, 2001 9:34 AM > To: GDWindows > Subject: [GD-Windows] GetProcAddress() > > > Hi, > > I'm splitting our engine in several parts, and i'd like to > use dll's in some places using dynamic linking. > > Now i've created a function called MyDLLFunc(). If i want to > access this function in my main app using GetProcAddress() i > specify "MyDLLFunc" as function name, but this fails. After > looking into the listing of the dll i gave it a try to use " > ?MyDLLFunc@@YAXXZ " as name. That worked. How on earth am i > supposed to export 20 functions in a decent manner? Look them > up all up in the listing? I must be doing something wrong. > Could anyone help me out? > > Thanks, > Erwin > > > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > |