几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】how to make opopengl sample work (http://www.dimcax.com/hust/showthread.php?t=16730)

yang686526 2009-05-06 02:59 PM

【转帖】how to make opopengl sample work
 
how to make opopengl sample work ?
how to make opopengl sample work ?
hello there,
i'm trying to test this sample, but even if i can compile it, it is not working (i'm not using the jam file in the directory : i just created a simple visual studio project importing all the needed sources).
apparently the problem comes from the "genericopenglmodule" stuff... : it seems that there is a problem with the lines :
odgsmoduleptr m = odrxdynamiclinker()->loadapp("genericopenglmodule");
g_pdevice = m->createdevice();
--> each time i try to load a file i get an "unknown exception caught"... :-(
by the way in linking against the dynamic version of the libraries...
it seems to me that this "genericopenglmodule" has the same status that the "modelergeometry" module... but i have a "modelergeometry_2.04_7.drx" file somewhere whereas there is no "genericopenglmodule_2.04_7.drx" anywhere... is this normal ?
any help or explanation would truly be appreciated... thank :-)
emmanuel.
unfortunately odopengl sample is written in such manner that it works only in static (not in dll) configuration. this is because implementation for genericopenglmodule is inside the odopengl.cpp - the sample code.
if you want to get it working in dll configuration you need to separate the genericopenglmodule implementation from other sample code and make a project for genericopenglmodule_2.04_7.drx
sergey slezkin


所有的时间均为北京时间。 现在的时间是 05:33 AM.