473,394 Members | 1,752 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,394 software developers and data experts.

aximp of SHDocVW.dll problem

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 original dll, and that makes
problems with internet explorer.

The offered solution was disassembly the interops using the ildasm
tool and recompile it using ilasm with new name. What I could not
understand is how I change the refernce of the AxSHDocVW.dll to point
to the new interop I created.

I also tried using the /source option when importing the library and
get a .cs file, but I could not find the refernce directive in the
code, so I created an empty project, added the source code and
referenced to the new assembly I created. Still the refernce remained
the same (looked in the manifest button of ildasm).

Help.... PPPPPLLLLEEEAAAASSEE.....

Regards,
Or Lavy
Nov 15 '05 #1
2 2729
Or,

In the IL file, you should see something like this:

..assembly extern /*23000002*/ 'System'
{
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) //
..z\V.4..
.ver 1:0:5000:0
}

This analagous to a reference. You will have to replace 'System' with
the assembly you are referencing as well as any public key information and
version number, etc, etc.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Or Lavy" <or*****@hotmail.com> wrote in message
news:36**************************@posting.google.c om...
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 original dll, and that makes
problems with internet explorer.

The offered solution was disassembly the interops using the ildasm
tool and recompile it using ilasm with new name. What I could not
understand is how I change the refernce of the AxSHDocVW.dll to point
to the new interop I created.

I also tried using the /source option when importing the library and
get a .cs file, but I could not find the refernce directive in the
code, so I created an empty project, added the source code and
referenced to the new assembly I created. Still the refernce remained
the same (looked in the manifest button of ildasm).

Help.... PPPPPLLLLEEEAAAASSEE.....

Regards,
Or Lavy

Nov 15 '05 #2
> In the IL file, you should see something like this:

.assembly extern /*23000002*/ 'System'
{
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) //
.z\V.4..
.ver 1:0:5000:0
}


the correct solution would be to ildasm both shdocvw.dll and axshdocvw.dll
and then

1. recompile shdocvw.il to MyAssembly.dll but remember to change

..assembly SHDocVw
to
..assembly MyAssembly

and

..module Shdocvw.dll
to
..module MyAssembly.dll

(but! you do not need to change the namespace Shdocvw to other name)

2. recompile axshdocvw.il to AxMyAssembly.dll but change the reference

..assembly extern SHDocVw
{
.ver 1:1:0:0
}

to

..assembly extern MyAssembly
{
.ver 1:1:0:0
}

(also add the .publickeytoken directive if you use strong signing).

and change the

..assembly AxSHDocVw
to
..assembly AxMyAssembly

and

..module AxShdocvw.dll
to
..module AxMyAssembly.dll

then everything will work correctly. you'll have to libraries:
MyAssembly.dll and AxMyAssembly.dll. the axmyassembly.dll will use
myassembly.dll instead of shdocvw.dll and, in your application, use
axmyassembly instead of axshdocvw.dll.

Regards,
Wiktor
Nov 15 '05 #3

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

Similar topics

10
by: Hautzendorfer | last post by:
Hello, I'm currently working on some printing stuff: I have to print out several .xml files using a stylesheet. Therefor I choose the Internetexplorer PlugIn via SHDocVW. My problem: After...
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...
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...
4
by: Lars-Erik Aabech | last post by:
Hi! I've been walking in extacy since reading the article about test automation with IE in the latest MSDN mag. (http://msdn.microsoft.com/msdnmag/issues/05/10/TestRun/default.aspx) After a...
4
by: Dick Sutton | last post by:
I am so close, yet oh so far! Here's the problem: I want to load a string variable that contains HTML into an instance of SHDocVw.InternetExplorer. Here's what I have so far: Function...
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...
4
by: jonpb | last post by:
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.