几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   SolidWorks二次开发 (http://www.dimcax.com/hust/forumdisplay.php?f=111)
-   -   【转帖】propertymanagerpage feedback events (http://www.dimcax.com/hust/showthread.php?t=5656)

yang686526 2009-04-13 01:43 PM

【转帖】propertymanagerpage feedback events
 
propertymanagerpage feedback events
just thought i would double-check here before i set this in stone, as there is no official documentation in sw regarding it;
like the get preview bitmap functions, the handler passed into the createpropertymanagerpage has to be a handle to an in-process class to recieve the event callbacks does it not? i would presume it would have to be for it to work. using an out-of-process .net application i can create a page only by passing nothing in as the handle, but if i pass in a handle to the class i get an invalid cast error, which suggests it is returning -1, which would indicate an invalid address that has been caught. if i create a plugin in-process .net application i can pass in the class fine.
given those two situations i would say the calling function has to be run in-process, and so this is what i am documenting in my book, but i would like your feedback before doing this in-case someone has found a way around this?


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