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