Administrator

Administrator

  • Tech Writer
  • 2.2k
  • 1.5m

Using C# with an old API object

Mar 18 2003 3:41 PM
I am trying to do some coding in C# against an API object that has not been updated to be fully COM compliant. It does not appear to have a valid type library in the dll. My problem is that I can get everything to work in VB6 and VB.Net without having any reference to the API object. Obviously, Intellisense does not work, but the programs will compile and run with no problem. All calls into the API work just as documented in the API documentation. In C#, I can't compile anything without a reference to the object. I can't set up a reference, since there is no type library. Is there a way to get C# to compile without the reference? All I get is the compiler error "The type or namespace name 'OfficeTalk' could not be found (are you missing a using directive or an assembly reference?)" Am I missing something here? Thanks, Trent

Answers (4)