查看单个帖子
旧 2009-05-05, 10:51 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)