![]() |
【转帖】edecryptionerror thrown while attempting to read password-pr
edecryptionerror thrown while attempting to read password-pr
edecryptionerror thrown while attempting to read password-protected file my application is attempting to read an acad 2004 password-protected file. in doing so, dwgdirect is throwing an edecryptionerror. i have provided a virtual implementation of 'getpassword()' in my host app services class ('myservices',derived from the example exhostappservices, which is derived from oddbhostappservices). however, my implementation of 'getpassword()' doesn't get called before the exception is thrown as a result of a call to myservices::readfile() (note that 'myservices' is also derived from exsystemservices). i know that 'myservices' is correctly registered since my implementation of newprogressmeter() and other progress meter-related functions are being called properly. any suggestions on why this exception is being thrown? is it being thrown before dwgdirect even attempts to call getpassword()? do i have to provide some sort of decryption support just to read the password-protected file? your application must register some implementation of crypting service. examples contain 2 implementations: for winnt and cross-platform. see odamfcappapp::initinstance() - search for _use_cryptlib. sergey slezkin |
所有的时间均为北京时间。 现在的时间是 04:22 PM. |