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

yang686526 2009-05-06 09:44 PM

【转帖】passworded files
 
passworded files
passworded files
is there a limitation to dwgdirect and passworded files, i've called the readfile function with and without the real pass, and with the odpassword() as parameter, and everytime the same result, it wont open the file and will just give me an eexception.
dwgdirect can read password-protected files (assuming password is known). and write them too.
see odamfcapp sample.
note that password must be specified in unicode (2 bytes per character).
sergey slezkin
quote:
...without the real pass, and with the odpassword() as parameter,
btw, in case you do not specify password, the oddbhostappservices::getpassword() function will be called (you could overwrite it in your implementation of host services) and you will have a chance to supply the password. check odamfcapp example for details.
thanks i'll check it out when i have a minute, i've been busy on another project for last few days but i will check this out as soon as i can


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