can't register Microsoft.InteropFormTools.dll

Hi all,

I'm probably doing something wrong, but I'm having a problem with the toolkit dll. The VB.net part (of the hello world sample) works fine, but if I open the project in VB6, I'm getting a 'missing reference: toolkit dll" error. If I manually try to add the reference, I get an other error : can't add reference.

What I'm a doing wrong ?

Greetz

Geert

[398 byte] By [KrisG] at [2008-1-25]
# 1

Hi Geert,

Usually this points to a registration problem with the Interop Forms Toolkit DLL or the Hello World sample DLL -- neither should be a problem "out of the box" when you install.

I want to make sure I understand what you're trying. Are you opening the Hello World (VB6) sample from the Start Menu->Program Files->Visual Basic 2005 Power Packs, and then you see the error when you press F5?

Some things to try first:

1) Rebuilding & registering the samples:

a) re-open Hello World (VB.NET) project and do a Project->ReBuild. This step should re-register MyCompany_Helloworld

b) open Hello World (VB6)

c) ensure you have references to MyCompany_Helloworld and Microsoft InteropForm Toolkit Libary (both should be visible in the list without having to Browse...).

d) F5

2) If that does not work, perform an uninstall/reinstall of the toolkit

a) close all instances of VS 2005 and VB6

b) uninstall Interop Forms Toolkit 1.0 from Add/Remove programs

c) inspect your \Program Files\Visual Basic 2005 Power Packs\ folder, and remove any files/folders related to the toolkit

d) run setup.exe (again) for the Interop Forms Toolkit.

If neither works then we might have a deeper issue with your machine and registration and we'll give you an additional set of steps to try. Any additional info about your machine configuration and what you've tried will help.

hope this does the trick, and sorry for the inconvenience.

Best,

Paul, Visual Basic Team

PaulYuk_MS at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic Power Packs...
# 2

Hello Paul,

Thnx for the answer....problem solved.

The real problem was that I use VB.NET on my Laptop, but VB6 runs in a (MS) virtual PC, so I thought I simply have to copy the "hello world.dll" and the "toolkit.dll" to the VPC, but this one failed.....but following your tips, I installed the toolkit (also) in the VPC and now everything works out fine.

So this leads me, however, to an other question: If I want to deploy the VB6 hello world app (or my own apps) to other computers, do I have to build a setup, or can I just build the exe and copy it allong with the dll's (and register them) to an other computer ?

greetz

Geert

KrisG at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic Power Packs...
# 3

Hi Geert,

I'm glad this did the trick.

You can deploy a hybrid app like HelloWorld just by xcopying the vb6 .exe and interop DLLs (registering via Regasm). You can follow the steps outlined in the Interop Forms Toolkit Help called "How To: Deploy a Hybrid Application": ms-help://InteropFormToolkit1.0/InteropFormToolkit1.0/How%20To%20Deploy%20A%20Hybrid%20Application.html

A setup can also be used to automate the steps above. Your choice.

Best,

Paul

PaulYuk_MS at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic Power Packs...
# 4

Hi Paul,

Thnx for the help....now I have all the info I need to create & deploy my app.

greetz

Geert

KrisG at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic Power Packs...
# 5

Cool!

Let me know how it goes.

PaulYuk_MS at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic Power Packs...