J
James Bradley
Hi Folks,
I am coming up to speed with C# and I have run into an interesting
issue.
I have an old VB COM library that I need to access with a ProgId ==
'xyz'
I also have a C# class that is in a namespace like this:
"A.xyz.abc..."
I have added the COM library as a reference, but when I try to
reference out of the COM library, the compiler and Intellisense don't
see it:
xyz.objectname Temp = new xyz.objectname();
This fails, because it is looking in the namespace a.xyz for
objectname, not in the COM object.
Is there a way I can explicitly reference the object in the COM
library, or is there a way to alias the COM library?
Thanks!
Jami Bradley
reverse 2nd level domain: (e-mail address removed)
I am coming up to speed with C# and I have run into an interesting
issue.
I have an old VB COM library that I need to access with a ProgId ==
'xyz'
I also have a C# class that is in a namespace like this:
"A.xyz.abc..."
I have added the COM library as a reference, but when I try to
reference out of the COM library, the compiler and Intellisense don't
see it:
xyz.objectname Temp = new xyz.objectname();
This fails, because it is looking in the namespace a.xyz for
objectname, not in the COM object.
Is there a way I can explicitly reference the object in the COM
library, or is there a way to alias the COM library?
Thanks!
Jami Bradley
reverse 2nd level domain: (e-mail address removed)