Link to home
Start Free TrialLog in
Avatar of martythegreat
martythegreat

asked on

Linking Dlls to an exe

In this project that I am involved in there is a number of Dlls going to be linked to the main exe.
1/ I have just being told that load time of the application is not important (not too sure why). So does it matter if all the dlls are linked to the exe by implicit linking. Seen as the time taken to map and load all the dlls at load time is not important. What I am wondering is that if all the dlls are linked by implicit linking, does this effect the efficiency of the whole application at run time, and if so a quick  explanation please.
2/ The login in Dialog/ User administrator list of the application are in one Dll. Should this be linked via implicit linking (even if explicit is used for the other Dlls). This may be quite a stupid question.
3/ When using the

lpfnDllFunc1 = (LPFNDLLFUNC1)GetProcAddress(hDLL,
                                           "DLLFunc1");
in the exe to explicitly link, how do you pass the function ID as the ordinal value in the def file of the dll.
lpfnDllFunc1 = (LPFNDLLFUNC1)GetProcAddress(hDLL, 2);
doesn`t work!
ASKER CERTIFIED SOLUTION
Avatar of polimetla
polimetla

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial