I have several ActiveX components that needed to be accessed from a C# project.
I can import them via Visual Studio's add reference dialog, which will also automatically generate wrappers class. (i.e. ABCLib
and AxABCLib
)
I know that I can generate the primary interop assembly manually by running TLBIMP /primary
on each individual OCX file but I could not find a way to generate the ActiveX wrapper unless I do it via Visual Studio user interface.
Is there a command-line version that generate the ActiveX wrapper in the .NET SDK?
I want to generate the AxABCLib
version from the PIA I got from TLBIMP manually. (i.e. setting namespaces, output dll filenames etc.) Is it possible?