DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Sun, 1 Jul 2007 22:16:01 -0700,    posted on: microsoft.public.dotnet.framework.interop        back       

Thread Index
  1    Paul Lance
          2    Mattias Sjgren
                 3    Paul Lance


VB6 update procedure with vb.Net   
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
Date:Sun, 1 Jul 2007 22:16:01 -0700   Author:  

Re: VB6 update procedure with vb.Net   
Paul,


>Any ideas please!!


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


Mattias

-- 
Mattias Sjgren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Date:Mon, 02 Jul 2007 11:53:30 +0200   Author:  

Re: VB6 update procedure with vb.Net   
Hi, binary compatibility is on in the vb6 code.

"Mattias Sjögren" wrote:


> 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.
> 
Date:Mon, 2 Jul 2007 13:44:03 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us