What is the order to export procs for DLLs? When I export more than one proc there is a certain order that they have to be in or else the other language won't recongnize the function. I've tried this over and over again but I can't figure out what the particular order is that the DLL. I know there's an order because when I try all the combinations of the order to export the functions I eventually find one that works.
Posted on 2002-12-30 18:15:01 by CyberGuy
I think it depends on the language you are tring to interface with. If I remeber right C prefixes a underscore(_) to it's functions for example.

Have you tried usiung LoadLibrary and GetProcAddress?
Posted on 2002-12-31 01:33:21 by jInuQ
No, the language doesn't matter. In every language it doesn't recongnize the functions unless its in a certain order, but I just don't know what the certain order of exportation is..........
Posted on 2002-12-31 14:40:56 by CyberGuy
Have a look at Privalov's ASMEDIT control. In his dll that he uses, it has no exports? It works tho'. I will look in to it more.
Do you have any example code?
Posted on 2002-12-31 15:17:44 by jInuQ
If you look in the fasm1.44 pack at the dll example it says:


; functions have to be sorted alphabetically


Hope this helps.
Posted on 2003-01-21 04:59:16 by jInuQ

If you look in the fasm1.44 pack at the dll example it says:


; functions have to be sorted alphabetically


Hope this helps.


That's %100 right.:alright:

Regards,

Vortex
Posted on 2003-01-21 09:55:58 by Vortex
So that means that all your C/C++/HLL compilers are doing this? Is this the same for shared object files under *nix?
Posted on 2003-01-21 15:56:42 by jInuQ
Alphabetical order,Iczelion's PE Tutorial number 7(exports):
Posted on 2003-01-22 11:33:30 by Vortex
Thanks, thanks alot!!! :alright:
Posted on 2003-01-23 06:17:00 by CyberGuy