Sunday, July 02, 2006
How to use COM objects if not using Visual Studio.NETIf you are not using the Visual Studio .NET IDE; use Windows Forms ActiveX Control Importer (Aximp.exe) to convert type definitions in a COM type library for an ActiveX control into a Windows Forms control.For instance: to generate the interop DLL's for the ActiveX browser component using the command line run aximp ..\system32\shdocvw.dll relative to your system32 path. Compilation of a form that uses the AxSHDocVw.AxWebBrowser class would be as follows: csc /r:SHDocVw.dll,AxSHDocVw.dll YourForm.cs. Credits:Alexander Kent |
About Me
LinksPrevious Posts
Archives |
0 Comments:
Post a Comment
<< Home