I am trying to understand how legacy controls (for example, those created
with Visual Studio C++ 6.0) work in Vs2005.
I have run into some problems.
The legacy control is MfcAxc1.ocx.
After the control is imported into Vs2005 Toolbox and then added to a
Windows Form, two files are generated--
AxInterop.MFCAXC1Lib.dll
Interop.MFCAXC1Lib.dll
The file does load fine into a Form and the App runs fine as well, the
control operates as expected.
But when I tried to get type information using GetType() (please see code
below) it returns a "null"--
string assemblyName ="AxInterop.MFCAXC1Lib, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null";
string typeName = "AxMFCAXC1Lib.AxMfcAxc1";
Type type = Type.GetType(typeName + ", " + assemblyName);
if (type != null)
{toolList.Add(type);
}
Could you tell me why two files are generated and why the Type.GetType()
returns a "null".
Any help or pointers to articles would be appreciated.
Thanks.
--
John Olbert