Page 1 of 1

AX and vs 2005

Posted: Tue Mar 06, 2007 8:35 am
by 6923304
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 !!!!

Posted: Mon Mar 19, 2007 3:32 pm
by Pep
Hi,
it works - but, there is a better way ?
Not, that I know of. Another way would be to open the vc6 project with vc Net and convert it automatically.
when i remove the TChart object from the dialog, it does create .
how can i resolve this problem ?
It's difficult to know where the problem is without seeing the code. Could you please send me a simple example with which I can reproduce the problem here ? You can send me it directly to pep@steema.com