I just want to stop loading of dll before application start.
a link given by
CPallini
help me to get this task. A Delay load option of linker input provide facility to stop dll loading before application start.
so now dlls are load when it called Loadlibrary(DLLNAME) function.
its now so easy to change applcation folder before dlls are load
so called of
SetCurrentDirectory(DLLFILE PATH) function change applcation path.
now dll called load from user define path.
like following coad:
if myApplication folder is C:\\DLLTRIAL\\
void CMainFrame::OnOk()
{
SetCurrentDirecory("C:\\DLLTRIAL\\MYDLL\\"");
HINSANCE TempHandle;
TempHandle=AfxLoadLibrary("Test.dll");
if(TempHandle!=NULL)
{
ShowDialog(); ////Dll function called
}
else
{
AfxMessageBox("failed to load dll");
}
}
to applied Dll loading dynamically
please click following link
DELAY LOAD
Thank all readers that review my question provide such good answers
:-D :-D :rolleyes: :rolleyes: :-\ :cool: