Automation
-
I used an ActiveX Object in my VB6 project like this: obj = CreateObject("AAA.BBB"); When I tried to do the same thing in C# .Net project, I can't not find this object in "Add reference" dialog. Does anyone know why? Thanks in advance!
Assuming you already looked under the "COM" tab of the add reference dialog box, the Component name used when creating a late bound control in VB6 using CreateObject often differs from the name displayed in the add reference dialog box. As an example, to create an Excel application reference in VB6, you could do this: xl = CreateObject("Excel.Application") but when you look in the VS.NET add reference dialog box, it is described as the "Microsoft Excel 9.0 Object Library". What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.