HighTechTalks DotNet Forums  

VB6 update procedure with vb.Net

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss VB6 update procedure with vb.Net in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
=?Utf-8?B?UGF1bCBMYW5jZQ==?=
 
Posts: n/a

Default VB6 update procedure with vb.Net - 07-02-2007 , 01:16 AM






OK My vb.net (.Net 2.0) code crashes when I update a vb6 dll.
I’m using interop com to communicate to the vb6 dll.

So to start with all is well as in the .Net app is working just fine with
the vb6 dll. But then I update the vb6 dll and the my app crashes.

Update method.
First I regsvr32.exe /u ecode4.dll
Then I replace the dll with the new one (in system32) and then I
regsvr32.exe ecode4.dll

That will cause my .Net app to crash. Now interestingly if in my vb.Net code
I turn option strict Off and then run up the dll like this: Dim eo = New
ecode4.order
Then It will be happy accept the me updating the vb6 dll to the new version
but if I run up the dll like this:
Dim eo As ecode4.eorder = New ecode4.eorder
then the app will not allow me to update the vb6 dll.

Any ideas please!!

Kind regards
Paul


Reply With Quote
  #2  
Old   
=?Utf-8?B?UGF1bCBMYW5jZQ==?=
 
Posts: n/a

Default Re: VB6 update procedure with vb.Net - 07-02-2007 , 04:44 PM






Hi, binary compatibility is on in the vb6 code.

"Mattias Sjögren" wrote:

Quote:
Paul,

Any ideas please!!

Sounds like you haven't turned on Binary Compatibility in the VB6
project.


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.