Click here to Skip to main content
15,891,653 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I got a "Blast from the Past" project request.

The project was originally developed in VB6 and later ported to VB.Net. The last time it ran in the IDE it was on a Win XP Machine running VB.Net 2003.

I have been asked to dust off the source and make some minor modifications (plus bring it into the latest VB.Net, 2010). Current development platform is Windows 7, running VB.Net 2010 Express. I also installed VB6, dispite complaints from Windows 7 stating there were known issues.

The source code loads, but will not run. The warnings displayed are as follows:
Cannot load type library for reference "StdType". Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
Cannot load type library for reference "MSXML2". Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))


The reference list in the solution explorer shows warning notices on "MSXML2", "StdFormat", and "StdType"

Any ideas on how to fix these missing references?

TIA
Posted

you have to register activeX components using regsrv32 (for 32 bit components) or regserver (16 bit components)

You do that from the command prompt:

C:>regsrv32 mycomponent.dll

Edit:
Of course you need to know what dll's to register. Can't help you with that, but you might find that information in your project?!?!

And last: It's not even sure that old ActiveX components will run on Windows 7 - I think that the support for 16 bit components have been removed, but I'm not sure. So you have to hope that your components ar 32 bit...
 
Share this answer
 
v2
I tried registering the msxml2 (both the msxml2.dll and the interop.msxml2.dll) and they returned an error. Something about the module was loaded but an entry point could not be found.

I did not find a direct dll for stdFormat and stdType, but the interop versions both throw errors when attemping to register.

Perhaps this is a hopeless cause?
 
Share this answer
 
Comments
Johnny J. 17-Sep-10 8:17am    
You might have to properly install the components using their own installer (which could be a problem if you don't have it anymore or if it's no longer available from the manufacturer).

This is a learning experience. Teaches you to always keep the referenced 3rd party controls and their installers together with the project - and preferable with a written instruction as to how you set up the development environment properly. For others - and your own - sake. Don't assume that you remember it after some time (varies from person to person, but I normally forget what I did yesterday).

That won't help your current problem, but it might help one of your collegues in the future...
Johnny J. 17-Sep-10 8:19am    
Another thought: Are the components vital or only a small part of the application??? If vital then you're up the creek. If it's only a small part of it you might be better off simply rewriting that particular code...
Clif007 17-Sep-10 8:37am    
I now see there's a difference between "Add Answer" and "Add a Comment". :)

I'm really not sure what they are doing there. I don't use XML in the code, and I'm not sure what stdFormat and stdType do or are for.

The application is fairly large, so rewriting will definitely be a pain. I have a similar post like this on the MSDN site. If I get no solution, that may be my only choice.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900