![]() |
【转帖】odamfcapp executing
odamfcapp executing.
odamfcapp executing. i've rebuild odamfcapp example with dwgdirect 1.06. with previous dwgdirect version, this example worked perfectly. now, the application doesn't work, i've located the reason: into your void codamfcappapp: nfileopen() there is this line of code: fpdlgproc = (oda_dlgproc)getprocaddress(hinstlib, "createopenwithpreviewdlg"); after this call fpdlgproc is null and then the dialog doesn't appear. which could be a possible reason? hm, it is looks like odadlgext.dll does not export this function. could you check with dependency walker tool (from msvc tools) what is in export section for this dll? when i open odamfcapplib.exe with dependendency walker, odadlgext.dll doesn't even appear as a loaded dll. i've got odamfcappl.exe, the executable built with dwgdirect 1.04, and it works perfectly, and odadlgext.dll appears when i run dependendency walker on it. starting from version 1.05 the odadlgext.dll is loaded via loadlibrary call that is why odamfcapplib.exe does not depend on it. but i asked you to check odadlgext.dll for export function name i understood now, the function name is: ?createopenwithpreviewdlg@@ya_npavcabstractpreview @@pauhwnd__@@pbd2kpapavopenwithpreviewdlg@@@z. also i would like to say that when linking odamdiapp in debug version there is a linking error: jpeglib.lib(jidctred.obj) : fatal error lnk1202: "c:\dwgdirect\odamdiapp\odt_demo_debug\vc60.pd b" is missing debugging information for referencing module it is strange. it should be exports ordinal name 1 _createopenwithpreviewdlg exported name: createopenwithpreviewdlg in order to run the application you can remove this dll and you will have standard windows dialog for "open file" |
所有的时间均为北京时间。 现在的时间是 02:59 AM. |