Using Ms Visual Studio 2010, i've extracted COM interface (classes) from acadx19.tlb (Autocad 2013).
The strange think is that some of the classed generated are derived from CWnd and not from COleDispatchDriver as in older versions of Autocad.
For example, the class extracted from TBL file for Autocad application is:
class IAcad19Application : public COleDispatchDriver
and the class extracted for AcadState is like:
class IAcad19State : public CWnd
In older versions of autocad IAcadXXState was a COleDispatchDriver, not a CWnd derived class.
How is it possible to "cast" the return value of GetAcadState to a IAcad19State object?
In older version of autocad it was easy:
Why AcadState is generated by Visual Studio as CWnd and not COleDispatchDriver derived class??? Any idea?
Access a broad range of knowledge to help get the most out of your products and services.