Click to See Complete Forum and Search --> : Converting ActiveX controls to .net framework


UltraTrunks
August 25th, 2002, 12:05 PM
I am going thru some code conversion and having bad time with MC++.

Can anyyou help me with this?

There is an activeX control which is to be converted for .net.

__gc class Rinex{
}

class CRinex_ControlCtrl : public COleControl
{
Rinex *x; // This is an error as CRinex_controlctl is unmanaged class.
}

I thought all comp generated classes are managed. But if i make it managed with __gc, all the code (comp generated) has to be changed. Do you know how to avert this problem?

One other problem is converting from a variable from char [] to string? How do you convert? There is a sample code below.
char x __gc[];
x[]=new x __gc[10];
int i= strlen(x); // This gives an error.

Even a type-cast does not work.Thanks for you help.

Yogi