In VB6 we had the API Viewer, In VB .NET you get the P/Invoke Interop Assistant

VB6 programmers will remember a useful little utility called the API Viewer, the helped out when you needed to make a Windows API call. There is now an equivalent tool for .NET, the P/Invoke Interop Assistant (http://www.codeplex.com/clrinterop ). Not surprisingly it does a little bit more, so as well as enabling you to look up…

1

Enhancing your VB6 Application with Interop

I’ve been having a look at some of the samples on the Visual Basic Resource Center to see what’s possible when we start using interop between VB6 and .NET. Here are some of my favourites. This article, “Sharing ADO Recordsets Between Visual Basic 6 and Visual Basic 2005”, looks at approaches to sharing data between…

1

Adding to the My namespace in VB .NET

Just as an aside – after experimenting with the Interop Forms Toolkit earlier this year I wondered how InteropToolbox ended up in the My namespace – it seems like a useful thing to be able to do. I didn’t have to look far, the answer was in the ActiveXControlHelpers.vb file in my Usercontrol project: 1:…

1

That old friend Binary Compatibility – and a FREE eBook on COM Interop

A favourite topic for VB6 programmers! Adding a reference to a COM component in Visual Studio adds a reference to a specific version of the VB6 component, so rebuilding the VB6 component without binary compatibility will break the .NET project (you’ll have to re-add the reference to fix it). Switching on binary compatibility in the…

1

Screencasts on the Interop Forms Toolkit 2.0

[This is a short post to accompany the UK Secure your Visual Basic 6.0 investment with Microsoft .NET initiative and is sourced from the main VB site] This how-to video series is focused on the Interop Forms Toolkit and working with Visual Basic .NET and Visual Basic 6 together. The Interop Forms Toolkit allows Visual…

0

New article on extending VB6.0 applications with the Interop Forms Toolkit 2.0

I just wanted to swiftly share some useful links if you choose to extend a Visual Basic 6.0 application including a new article I commissioned in the UK – which turned out rather good. Firstly links to the toolkit download and some of the best existing articles. The Interop Forms Toolkit 2.0 which you need…

0

Secure your Visual Basic 6.0 investment with Microsoft .NET

[This is currently a UK only initiative but you will still find a lot of useful information on the new site and I know our partners are happy to engage worldwide] Over the last couple of months I have been working with Sarah in my group to pull together something which hopefully will help the…

1

VB6 Interop and TlbImp vs AddRef

I’d always assumed that creating a Runtime Callable Wrapper by adding a reference to the COM component in Visual Studio would generate the same interop code as was generated by using the command line tool TlbImp. That would seem not to be true in at least one case that I’ve discovered, take this VB6 method…

0

Heads up – The VB6 upgrade guide was written before we released the Interop Forms Toolkit

I have been re-reading the ”Upgrading Visual Basic 6.0 Applications to Visual Basic .NET and Visual Basic 2005” guide lately which discusses phased migrations where individual application components are upgraded independently (which I prefer to call “Extending with .NET”). This approach relies on COM Interop to get the old VB6 components talking to the new…

0

Feedback appreciated on draft screencast on VB6 and the options to move to .NET

I am working with partners to pull together guidelines, resources and special promotions on tools to help UK companies with VB6 make the right choice around moving (or not) to .NET. This will happen early in 2009. There will be a new landing page with the information and on that page will be a link…

0