Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

VB6 update procedure with vb.Net

0 views
Skip to first unread message

Paul Lance

unread,
Jul 2, 2007, 1:16:01 AM7/2/07
to
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

Mattias Sjögren

unread,
Jul 2, 2007, 5:53:30 AM7/2/07
to
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.

Paul Lance

unread,
Jul 2, 2007, 4:44:03 PM7/2/07
to
Hi, binary compatibility is on in the vb6 code.
0 new messages