Click to See Complete Forum and Search --> : Add Class from TypeLib Problem ??


imran_517
January 27th, 2005, 02:02 PM
I am using Visual Studio.Net 2003. The programming language is VC++ and I have to play with SolidWorks API. Also, I am using IDispatch not COM.
SolidWorks provides two typelibraries (sldworks.tlb and swconst.tlb). I am trying to add class in a project from typelib. I am able to convert the first one to a header file but the second one (that contains definition for constants in "enum" type) does not convert to a header file. When the wizard runs it gives an error that no class is present in that typelibrary, which is obvious. Does any one know how to make a header file from this typelibrary ?? Is there any other wizard to do that ??