几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】file extensions in openwithpreviewdlg (http://www.dimcax.com/hust/showthread.php?t=16299)

yang686526 2009-05-05 10:51 AM

【转帖】file extensions in openwithpreviewdlg
 
file extensions in openwithpreviewdlg
file extensions in openwithpreviewdlg
i磛e got a problem concerning the "createopenwithpreviewdlg" call.
the filter for the file extensions is like those in the examples:
lpctstr cafilter = _t("dwg files (*.dwg)|*.dwg|dxf files (*.dxf)|*.dxf|all files (*.*)|*.*||");
the dialog shows cryptic signs and all files in the directory are shown, no selection is possible.
what do i have to do to make the selection work?
by the way: i don磘 load the "odadlgext.dll" dynamically, i put "odadlgext.lib" to my libraries and copied the "exe\..\odadlgext_2.03_6.dll" renamed as "odadlgext.dll" into my working space - otherwise the dll would not be found. what is the reason for the difference between the name contained in the lib and the name of the dll?
regards
hermine alias susanne
is your application unicode or not?
odadlgext should be built in the same configuration as the application.
it is strange that you had to rename the library. all the other libraries have similar naming conventions.
vladimir
sorry for the delay of my answer, i had a holiday.
no, my application is not unicode.
does this mean, i have to use the odadlgext.dll from a former version of your software?
i tried it this way some time ago, and i believe to remember that it works.
regards,
susanne
you may just undefine unicode, _unicode symbols in odadlgext project, and rebuild it.
vladimir


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