aximp usage

  • Thread starter Thread starter jonpb
  • Start date Start date
J

jonpb

Hi, I used to AxImp.exe to generate the wrappers for an ActiveX control.
Now how do I import the wrapper into my project? I tried "Add
Reference..." and browsed to the .dlls but I still don't see it in my
Toolbox.

Thanks
 
Try dragging and dropping the wrapper dll from Windows Explorer onto the
toolbox.

---------
- G Himangi, Sky Software http://www.ssware.com
Shell MegaPack : GUI Controls For Drop-In Windows Explorer like Shell
Browsing Functionality For Your App (.Net & ActiveX Editions).
EZNamespaceExtensions.Net : Develop namespace extensions rapidly in .Net
EZShellExtensions.Net : Develop all shell extensions,explorer bars and BHOs
rapidly in .Net
 
G said:
Try dragging and dropping the wrapper dll from Windows Explorer onto the
toolbox.

Thanks, but that doesn't work either. I am now trying to do it with
code. I generated the source with AxImp.exe, added the two dlls and the
..cs file to my project and now I get the error:

Error 19 Duplicate 'AssemblyVersion' attribute
C:\Code\ModelMaker\Properties\AssemblyInfo.cs 32

on the line of code:
[assembly: AssemblyVersion("1.0.0.0")]

Any ideas? Thanks.

I have another question. This ActiveX control communicates to the
application through Events. Does the ComVisible attribute need to be set
to true for Events to work? Thanks again.
 
Cross-posting windowsforms group
Hi, I used to AxImp.exe to generate the wrappers for an ActiveX control.
Now how do I import the wrapper into my project? I tried "Add
Reference..." and browsed to the .dlls but I still don't see it in my
Toolbox.

Thanks


I tried dragging and dropping the control onto the toolbox in C# IDE but
that did not work.

I am now trying to do it with code. I generated the source with
AxImp.exe, added the two dlls as References and the .cs file to my
project and now I get the error:

Error 19 Duplicate 'AssemblyVersion' attribute
C:\Code\ModelMaker\Properties\AssemblyInfo.cs 32

on the line of code:
[assembly: AssemblyVersion("1.0.0.0")]

Any ideas? Thanks.

I have another question. This ActiveX control communicates to the
application through Events. Does the ComVisible attribute need to be set
to true for Events to work? Thanks again.
 
jonpb said:
Cross-posting windowsforms group
Hi, I used to AxImp.exe to generate the wrappers for an ActiveX
control. Now how do I import the wrapper into my project? I tried "Add
Reference..." and browsed to the .dlls but I still don't see it in my
Toolbox.

Thanks


I tried dragging and dropping the control onto the toolbox in C# IDE but
that did not work.

I am now trying to do it with code. I generated the source with
AxImp.exe, added the two dlls as References and the .cs file to my
project and now I get the error:

Error 19 Duplicate 'AssemblyVersion' attribute
C:\Code\ModelMaker\Properties\AssemblyInfo.cs 32

on the line of code:
[assembly: AssemblyVersion("1.0.0.0")]

Any ideas? Thanks.

I have another question. This ActiveX control communicates to the
application through Events. Does the ComVisible attribute need to be set
to true for Events to work? Thanks again.

Ok, adding the control with your own code works, just the .cs file
generated generated by aximp doesn't compile and the control doesn't
show up in the Toolbox. At least there seem to be a way to add it, though.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top