473,395 Members | 1,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

aximp usage

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
Sep 24 '07 #1
4 3658
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
---------


"jonpb" <no****@nospam.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
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

Sep 25 '07 #2
G Himangi wrote:
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.
Sep 25 '07 #3
Cross-posting windowsforms group

jonpb wrote:
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.
Sep 25 '07 #4
jonpb wrote:
Cross-posting windowsforms group

jonpb wrote:
>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.
Sep 25 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Brewman | last post by:
When I run aximp /delay /public:..\G10PublicKey.snk /verbose c:\Windows\System32\SHDocVw.dl I get the following Microsoft (R) .NET ActiveX Control to Windows Forms Assembly Generato...
1
by: Moi | last post by:
Hello, I used AxImp on one ActiveX I've written (VC++6), and I'm trying to use the generated assemblies in VB. Net. it seems that the underlying ocx is not created when I'm calling the...
3
by: Wiktor Zychla | last post by:
I have a problem I cannot solve. My application hosts IE activex control. I follow the standard procedure: I just aximp shdocvw.dll. Note that this gives you two files: axshdocvw.dll and...
2
by: Or Lavy | last post by:
Hi there, As mentioned in message "aximp of shdocvw.dll -> problem with ShellExecute" posted before, aximp creates two files: AxSHDocVW.dll SHDocVW.dll The second has the same name as the...
0
by: John Olbert | last post by:
I am trying to use a number of Vb6 and Vcp6 ActiveX controls in various Vs2005 C# Windows Form programs. I am trying to use Aximp.exe on the Ocx file and to take the generated Dll's and add them...
9
by: madushan | last post by:
hi all , I try to generate .cs file from AxInterop.SHDocVw.dll by using the bellow command C:\Documents and Settings\malik\Desktop\Debug>aximp out:AxInterop.SHDocVw.dll /source but then bellow...
1
by: madushan | last post by:
hi all, once i try to generate .cs file by using the aximp.exe tool it gives the error the command I used: C:\Documents and Settings\malik\Desktop\tt>aximp SHDocVw.dll...
0
by: Christian | last post by:
Hi to all,this is my first post. Im' learning C# by reading "C# fro java programmers". In the book there's a program that needs two libraries to be generated with AxImp. So,as the book shows,I...
0
by: DKn | last post by:
Hi all, I am having a VC++ 6.0 ocx control. I want to use that control in C#.Net windows aplication. I registered that ocx control with the command regsvr32 . It is registered successfully....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.