Skip to main content
gamedev.net
🔒 Locked

export function in dll file problem.

Started by wah_on_2 0 replies 300+ views
Original Post
wah_on_2
wah_on_2
I know i need create a .def file for dll to define what functions can export. However, if i have 2 functions and its have same function names and difficult parameters. How can i do that? .def file seem cannot solve this problem. Pls teach me. Thanks
niyaw
niyaw
give them different names in the def file:

SimpleFunctionName1=MangledFunction1Name
SimpleFunctionName2=MangledFunction2Name

where SimpleFunctionNameX is something like "DoStuff" and MangledFunctionXName is something like "?add@@YAMMM@Z". you can find out the mangled names using dependency viewer.

wouldn''t it be easier to just name your functions differently?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.