AX and vs 2005
Posted: Tue Mar 06, 2007 8:35 am
hi all
i have two question...
first question :
when i used the active x in visual c++ 6 - in each new project the IDE asked me to "extract" the classes from the object to my project.
now, with vs2005, it's not happend. instead of the extraction, i got a class named as my control id. the class has the TChart functions, but it return LDISPATCH instead of class.
i get over this problem by inserting by myself the classes (from the ProgramsFiles\Tchart...\utilities\new vc classes) to my project and changing the type of the member.
it works - but, there is a better way ?
second question:
I'm trying to create a COM object with a dialog in it.
on the dialog i put the AX.
when calling to the function that create and show the dlg, i see that the dialog is not created ( it's hWnd = NULL )
when i remove the TChart object from the dialog, it does create .
how can i resolve this problem ?
i'm using version 5.0.6.0
thanks !!!!
i have two question...
first question :
when i used the active x in visual c++ 6 - in each new project the IDE asked me to "extract" the classes from the object to my project.
now, with vs2005, it's not happend. instead of the extraction, i got a class named as my control id. the class has the TChart functions, but it return LDISPATCH instead of class.
i get over this problem by inserting by myself the classes (from the ProgramsFiles\Tchart...\utilities\new vc classes) to my project and changing the type of the member.
it works - but, there is a better way ?
second question:
I'm trying to create a COM object with a dialog in it.
on the dialog i put the AX.
when calling to the function that create and show the dlg, i see that the dialog is not created ( it's hWnd = NULL )
when i remove the TChart object from the dialog, it does create .
how can i resolve this problem ?
i'm using version 5.0.6.0
thanks !!!!