473,657 Members | 2,430 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Strong Named AxInterop: needs OCX in same directory ?

I decided to strong name the axhost generated when I inserted the an
activex control in my windows form. To this end...

1. Created Interop Interop.MyAnalo gLibrary.dll
tlbimp \winnt\system32 \MyAnalogLibrar y.ocx
/out:Interop.MyA nalogLibrary.dl l /keyfile:..\..\1 .snk

2. Created AxInterop AxInterop.MyAna logLibrary.dll
aximp \winnt\system32 \MyAnalogLibrar y.ocx
/out:AxInterop.M yAnalogLibrary. dll /rcw:Interop.MyA nalogLibrary.dl l
/keyfile:..\..\1 .snk

3. GAC'ed them both by dragging them into \winnt\assembly . They have
assembly version 1.0.0.0

4. Overwrote the weak named references to the above two files in my C#
project. Looked in the reference property window and found that the
new references had strongname property == true and CopyLocal == false.
Code compiled OK.

5. Deleted all local copies of the *AnalogLibrary. dll from my working
directory /CSharp/StrongName/bin/Debug. Double-clicked on the
executable /CSharp/StrongName/bin/Debug/StrongName.exe

Problem
-------
Code crashed with a FileNotFoundExc eption on the following line-
((System.Compon entModel.ISuppo rtInitialize)(t his.axiKnobX1)) .EndInit();

axiKnobX1 was an OCX control

UNLESS

I copy the original OCX (MyAnalogLibrar y.ocx) into the same folder as
StrongName.exe Why ??? I have \winnt\system32 in my environment
variable PATH (typing path at the DOS prompt in the directory shows
\winnt\system32 )

Thanks for taking time to read this. This may have been more
information than you needed to know.

-S-
Nov 15 '05 #1
0 2205

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

Similar topics

1
2584
by: Jason Garland \(Secure Access Pty Ltd\) | last post by:
Hi I am trying to work out how to either create a strong name wrapper for AxInterop.SHDocVw.dll I have researched the following : - 'Wrapper Assembly Key' but this is apparently for c# projects only - i tried tlbimp.exe but i get
0
1071
by: Sameer | last post by:
I decided to strong name the axhost generated when I inserted the an activex control in my windows form. To this end... 1. Created Interop Interop.MyAnalogLibrary.dll tlbimp \winnt\system32\MyAnalogLibrary.ocx /out:Interop.MyAnalogLibrary.dll /keyfile:..\..\1.snk 2. Created AxInterop AxInterop.MyAnalogLibrary.dll aximp \winnt\system32\MyAnalogLibrary.ocx /out:AxInterop.MyAnalogLibrary.dll /rcw:Interop.MyAnalogLibrary.dll
1
1935
by: Jason Garland \(Secure Access Pty Ltd\) | last post by:
Hi I am trying to work out how to either create a strong name wrapper for AxInterop.SHDocVw.dll I have researched the following : - 'Wrapper Assembly Key' but this is apparently for c# projects only - i tried tlbimp.exe but i get
1
382
by: Jason Garland \(Secure Access Pty Ltd\) | last post by:
Hi I am trying to work out how to either create a strong name wrapper for AxInterop.SHDocVw.dll I have researched the following : - 'Wrapper Assembly Key' but this is apparently for c# projects only - i tried tlbimp.exe but i get
0
8829
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8508
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8608
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7341
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6172
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5633
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4164
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4323
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1962
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.