查看单个帖子
旧 2009-05-05, 11:32 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】getting run time error while linking to dlls

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 ?
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)