getting run time error while linking to dlls
getting run time error while linking to dlls
hello,
i am using dwgdirect 1.12 for developing mfc activex control with vc++ 6.0.
i tried to link the library dynamically, but it shows the error "unable to load wingdi
module" at run time.
what will be the problem?.
i have copied all dlls and the "gs" files to the folder where the ocx file resides.
the code snippet from where the messagebox triggers with the message "unable to load wingdi
module" is given below.
//////////////////////////////////////////////////////////////////////
odgsdeviceptr ccadlightctrl::getrendererdevice()
{
g_objoduint32 = :

drxdynamiclinker()->loadmodule("wingdi.gs");
if (g_objoduint32 == null)
afxmessagebox ("unable to load wingdi module"); g_objodgsmoduleptr = :

drxdynamiclinker()->module(g_objoduint32);
return g_objodgsmoduleptr->createdevice();
}
//////////////////////////////////////////////////////////////////////
ccadlightctrl is the name of control class.
hoping to get a reply soon,
with thanks in advance,
jahfer.
last edited by jahfer; 28th december 2004 at 03:39 amfff">.
hi,
what does getlasterror() say after :

drxdynamiclinker()->loadmodule("wingdi.gs") is executed ?