Turning Option Strict On and Off ?

G

Guest

Hi!

I have a system made of several DLLs, some in VB. Net, some in VB6. While
the VB6 part is not written in VB .Net we still use them and it's working
fine.

The problem is that we need to handle an operation that is fired in the .Net
part of the system and will end in a part that is in VB6 of the system and we
don't have enough time to re-write it...

To minize the impact of the adaptation and ease a "close" migration, I was
thinking about instantiate the VB6 DLL in .Net using Late Binding, but we use
OPTION STRICT set to ON and the rest you all know...

Is there a pre-processing directive that can turn off option strict just for
this method (and turn it on after it) or shoud I write an isolated class in
VB .Net with option strict Off with only one method used as a wrapper to the
VB6 DLL?

Thanks a lot,
 
G

Guest

I would rather add a reference to Microsoft.VisualBasic.Compatibility.VB6,
that way I could used the "old" function in .NET. In fact this library exist
to make easer the porting process

Using the vb6 dll is not a good way to go.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

option strict 5
Strict On/Off 6
Option Strict Off/On 12
option strict 18
Option Strict Off 8
Option Strict On -help 3
Option Strict On/Off 8
Error: Option strict disallows late binding 1

Top