-
VB6 project load errors
I have three pc's with my copy of vb6 installed. On each of them I get errors upon loading my projects. These projects have worked on other pc's. The errors are recorded in each module's .log file. For example, my frmMain.log file looks like this after the load errors:
Line 36: Class MSComctlLib.ImageList of control imlToolbarIcons was not a loaded control class.
Line 94: Class MSComctlLib.Toolbar of control tbrToolBar was not a loaded control class.
Line 159: Class MSComctlLib.StatusBar of control sbrStatus was not a loaded control class.
Line 617: Class MSCommLib.MSComm of control MSComm1 was not a loaded control class.
All of the errors in each of the frm*.log files appear to be related to either .ocx or .dll files. Any help would be appreciated.
-
Re: VB6 project load errors
Send some of the EVENT LOGS. Pretty hard to guess
-
Re: VB6 project load errors
I am guessing that these are windows 7 pcs?
I have not ran into it myself but have saw several posts related to issues with MSComctlLib after a Windows update.
Not sure about the MSComm.
When you installed VB did you execute the install using run as administrator? If not then I would suggest you try that first.
-
4 Attachment(s)
Re: VB6 project load errors
Thanks to dglienna and DataMiser for their replies.
I have attached four of the log files (with .doc extensions).
The three pc's I installed with vb6 were all xp pro sp6 machines. Sorry I didn't mention that in my original post. I only mentioned that there were three as perhaps useful information. I'm only interested in getting one working. Thanks again for your help.
-
Re: VB6 project load errors
Could be an issue with the project file *.vbp or could be that these controls are not registered on the system.
What did you use to install VB? Factory CD of VB or VS, Downloaded image from MS? Copy of factory CD on HD? Downloaded version from elsewhere?
Does the account you used to install under have admin access?
-
Re: VB6 project load errors
Also, SP6 should be installed...
-
Re: VB6 project load errors
Thanks again for the reply.
My vb6 install is from a factory cd of Visual Basic 6.
Yes, I have admin priv. It's a standalone pc and I'm the only user.
I look at the project to see if I can find something along with checking status of the .ocx/.dll files.
-
Re: VB6 project load errors
I've found that I have none of these on my system; msmask.dll, mscomctlLIB.ocx, mscommlib.ocx, mswinsocklib.dll and shdocvwch.dll. I assume this is the problem? Unfortunately, I have not been able to find any of these files online. Found similarly named files: msmask32, mscomctl, mswsock.dll and shdocvw.dll. Any ideas where I might find these. Thanks again.
-
Re: VB6 project load errors
They should be installed as part of the VB install.
Also you should have service pack 6 for VB installed but those files should be there with or without the service pack applied.
What version of VB6 are you working with. i.e. Learning edition, Professional, Enterprise?
Those controls may not be included with the Learning Edition
http://msdn.microsoft.com/en-us/libr...=vs.60%29.aspx
-
Re: VB6 project load errors
Thanks. I'll check this out and reply tomorrow.
-
Re: VB6 project load errors
I bought VB6 so long ago, I don't recall the circumstance, but I have a VB 6 Pro cd box with only the VB6 Learning Edition inside and that's what I have installed. I did find Visual Studio 6.0 but I don't believe that's the same as VB6?
Yes, I have sp6 installed. Thanks again.
-
Re: VB6 project load errors
-
Re: VB6 project load errors
Thanks dglienna, but DataMiser sent that link to me the other day. I read it and based on the fact that I evidently have Learning Edition installed and the information in the article you linked, I somehow need to either upgrade vb6 or find a source for the ocx and dll files necessary. However, vb6 is no longer available. I've read several articles about converting from vb6 to visual studio and found all of them negative. Any ideas would be appreciated. Thanks again.
-
Re: VB6 project load errors
Visual Studio 6 includes VB6 as well as VC 6 and a few other goodies.
I was unable to install VB6 from the VS6 CDs under Windows 7 though, there was/is some issue with the setup menu and java run time that prevented it from running under Windows 7. There is probably a way around it but for me I just used the Vb6 Enterprise CD image to install under Windows 7
Under XP the VS6 cds should work fine.
As for upgrading a project from VB6 to any of the VB.Net versions that is not recommended and the conversion utility is no longer included as of VB 2010.
VB6 is still available to download from Microsoft to MSDN subscribers and there may be a few copies out there in web land, e-bay maybe
-
Re: VB6 project load errors
Yes DataMiser, I too had problems installing vb6 on Win 7. I'm using Virtual PC/ XP Mode on Win 7 and it installs okay. But as I have said, looking at all the information from you and dglienna, I think I need to either find all these .ocs and .dll files from another source or find a copy of Pro Edition. Thanks for your help.
-
Re: VB6 project load errors
Download the newest version of Visual Studio Express, and it will include all the files you need. It's FREE
-
Re: VB6 project load errors
VB6 will install under win7. You have to execute the setup using run as administrator.
It is the VS5 discs that seem to have the issue. I have tried both the VS6 pro edition which failed and the VB6 Enterprise edition which worked like a charm under Windows 7 when installed as admin and executed as admin.
It would be hard to find all the controls you need and I think it would not be legal to distribute programs made with them if you do not have the proper version licensed.
-
Re: VB6 project load errors
Quote:
Originally Posted by
dglienna
Download the newest version of Visual Studio Express, and it will include all the files you need. It's FREE
That won't help much with a VB6 project. He would basically have to start over.
-
Re: VB6 project load errors
Thanks David. Does this mean I can use Visual Studio Express directly instead of VB6 or I need to pull the necessary into the vb6 environment and use vb6?
Thanks again.
-
Re: VB6 project load errors
Thanks David. Does this mean I can simply use Visual Studio Express instead of vb6 or pull the necessary files into the vb6 project and use that? Download Express now! Thanks again.
-
Re: VB6 project load errors
You would use it directly, it still supports much of the syntax that was used in VB6 but is much different. Basically you would need to rewrite any VB6 projects when moving to VB.Net ( all vb versions after 6 [1998] are Vb.Net)
-
Re: VB6 project load errors
I've installed Visual Studio 2010 Express and looked in my windows/system32 folder but none of the .ocx and .dll files were added there? Any ideas? Thanks.
-
Re: VB6 project load errors
Visual Studio .Net does not use OCX files. It can but not recommended and are not included.
If you want the OCX and DLL files used by VB6 then you need to install VB6 pro or enterprise or VS6 pro or enterprise
If you want to work with VB.Net then VS or VB 2010 would install everything you need but this is a separate product from VB6 and uses different files.
-
Re: VB6 project load errors
VS2005 tried to include an upgrade assistant (that did about 10% as I explained earlier), but it was cut after we realized it didn't perform MAGIC!
-
Re: VB6 project load errors
There was a converter in VS2003, VS 2005 and VS2008 was no longer included with 2010 and 2012 and in any case would not solve the issues in this thread.
The choice is simple either get the correct version of VB and install it or rewrite the code in VB.Net or other language.
Even the upgrade/conversion process requires that you have the OCX files already installed on the system, without those it could not convert the app.
The only other software that may install these OCX files would be VB5 pro or enterprise edition and those controls would be older versions but may actually work. In any case VB5 is harder to find than VB6 so unless you have a copy on hand ....
MSAccess 97 - 2003 would install some of the required files as well
-
Re: VB6 project load errors
Thanks to you all for assisting me with this problem. At this point it looks like I need to find a legitimate copy of vb6 pro or above. Thanks again.
-
Re: VB6 project load errors
I finally found my copy of VB6 pro and installed it over vb6 learning edition. I was full of hope that this would solve my project load errors. But alas, it didn't change a thing. All of the .ocx and .dll files that were missing during the vb6 load are also missing when I load the project using vb6 pro. If anyone has any further ideas, they would be greatly appreciated.
-
Re: VB6 project load errors
Can you attach a copy of the vbp file?
-
Re: VB6 project load errors
I just received an email from CodeGuru indicating there was a new post here. But looking through all the posts, none are new? Any ideas?
-
Re: VB6 project load errors
-
Re: VB6 project load errors
I have been able to eliminate all of the missing .ocx and .dll errors. It wasn't very scientific as I simply added components of files with similar names to those .ocs and .dll files that were missing.
Not sure if I should start a new thread, but now when I try to compile, I am again getting strange errors of missing variables. Here is the log file of one of those errors:
Line 2: Class {78E93846-85FD-11D0-8487-00A0C90DC8A9} of control DRBirthday was not a loaded control class.
Line 0: The file C:\IDDBProWord\DRBirthday.Dsr could not be loaded.
Any help would be greatly appreciated.
-
Re: VB6 project load errors
by the way, these undefined variable names are the names of .dsr files. I've tried to add them a number of ways with no luck
-
Re: VB6 project load errors
dsr files are usually report design files
-
1 Attachment(s)
Re: VB6 project load errors
I just saw a post from DataMiser requesting the project file three days ago! So sorry. I'm also getting emails alerting me to posts that aren't there! Anyway, I've attached the vbp file. ThanksAttachment 31421Attachment 31421
-
Re: VB6 project load errors
Yes, DataMiser. I have learned that the .dsr files are 'designer' files associated with reports. But I cannot find a way of making them part of the project. During compile, I get "(some dsr file name) not defined". It refers me to the log file, one of which is:
Line 2: Class {78E93846-85FD-11D0-8487-00A0C90DC8A9} of control DRBirthday was not a loaded control class.
Line 0: The file C:\IDDBProWord\DRBirthday.Dsr could not be loaded.
Help! Please.
-
Re: VB6 project load errors
While searching for possible solutions to this problem, I found a post from MissionSuccess in 2009 with basically the same question about loading dsr files in a project. At that time danasegarane suggested right-click on Project Explorer, select AddFile and simply add the dsr file. A contributor to my thread here, dglienna also posted that this should be tried. However, that process doesn't work. But there were no more posts to that thread. Basically, if I right-click on Project Explorer, select Add, then select AddFile and open the dsr file I want to include, it still gives this error:
Line 2: Class {78E93846-85FD-11D0-8487-00A0C90DC8A9} of control DRBirthday was not a loaded control class.
Line 0: The file C:\IDDBProWord\DRBirthday.Dsr could not be loaded.
Any help would be appreciated. Google hasn't helped in the four days I've attempted to find a solution. Thanks in advance for your help.
-
Re: VB6 project load errors
I have actually never used the MS report designer so I am in the dark here. I have been using a 3rd party report tool since VB5 which is quite a bit better than the one in VB6 so never really had a reason to look into how the VB report engine works.
Could be a missing reference, a corrupted file or registry entry causing the problem
Try starting a new project and then try to add a data report to it and see if that works.
-
Re: VB6 project load errors
Thanks for the additional information DataMiser. Per your suggestion, I created a new vb6 project and attempted to add one of the dsr files. Unfortunately, I got the exact same errors.
This project worked completely error free on another PC. I don't know if that means the environment on the current pc is missing something or what. Before this, I didn't even know what a dsr file was and I have no idea how to get them included in this project.
Thanks again.
-
Re: VB6 project load errors
I thought this additional information might be helpful in jogging someone's memory regarding a solution to the .dsr errors I"m experiencing.
I found from additional searching that in addition to a .dca file corresponding with a .dsr file, there is also a .dsx file which is the binary executable of the .dsr. In my project folder I have no .dsx files corresponding to my .dsr files.
Any information anyone may have on how to create a .dsx file would be appreciated. Thanks in advance.
-
Re: VB6 project load errors
Did you try adding a new data report? I did not mean adding existing dsr files but a new report to see if that worked. If it does not work then that would point to an issue with the report engine part or something related. Adding an existing dsr file could mean a problem with the actual dsr file or it could be the engine the point was to narrow down the possible problems.
The dsx files may be to hold binary data when needed, like a form will have an .frx file but is not always the case. depends on content. If the binary file is needed and not present then that would be an issue
-
Re: VB6 project load errors
Not knowing how to create a data report, I found instructions online which said simply, Project>Add Data Report.
Unfortunately, when I followed that instruction, I got the following error:
"Class Not Registered - Looking for object with CLSID:{642AC766-AAB4-11D0-8494-00A0C90DC8A9}.
This just keeps getting better and better!
Does anyone know what class this may be referring to? Thanks in advance for your help.
-
Re: VB6 project load errors
If I add a data report I see 2 references are added
Microsoft Data Formatting Object Library 6.0 (SP6)
c;\Windows\System32\msstdfmt.dll
Microsoft Data Report Designer 6.0 (SP4)
c;\Windows\System32\msdbrptr.dll
Maybe that will help, check your references to see if those are available or can be added. Check to see if those files exist
-
Re: VB6 project load errors
I installed Crystal Reports which I learned comes with VB6 Pro but isn't automatically installed. My project was written at least ten years ago so I don't know if Crystal Reports was used or the MS Report Designer, but I'm going to try both. I'm hoping that one or the other will generate the three necessary files, .dsr, .dca and .dcx. This will give me some idea how to generate the missing .dcx files in my project.
Thanks much for your input, DataMiser. I'll give it a try.
-
Re: VB6 project load errors
Well, even though I installed Crystal Reports, it is clear now that it generates an .rpt file, not.dsr, .dca and .dcx files.
So that's useless. I can see now that the reports in my project (.dsr files missing .dcx files) were generated by the MS Report Designer.
However, attempting to use MS Report Designer, I get the following
Project>Add Data Report--> "Class not registered (includes a long number). I detailed this error a few posts ago.
Help! Please!
-
Re: VB6 project load errors
For any of you out there who might be trying to think of a solution to my problem, please same yourself some work.
I found a four year old copy of my project. Approximately 100 modifications have been made since that time and many of them by another programmer who is no longer available. So recreating the new from the old is out of the question. However, an important point was revealed. This old copy of the project loads and compiles fine on my old XP desktop pc. However, it will not compile on my win 7/Virutal PC-XP mode pc. Plus, the old project is also missing the elusive .dcx files I've read about and that are also missing on the newest project. So evidently, they aren't necessary for proper operation! But why do the dsr files throw an error when compiling is still an issue. Initially, I thought there must be something missing in the environment of by production laptop since the old project compiled well on the old pc. But since the old pc couldn't compile the new project, that would not necessarily be the case.
The bottom line is I don't think this thread is any longer germane to the latest problem. Thanks to everyone for their help.
-
Re: VB6 project load errors
.dcx files are not always generated and if your report file requires a dcx file that is not present then you only option is to create a new report.
Did you look at the references I mentioned? Are they there? Were they selectable?
If not then did you check for the files I mentioned?
Sounds like one or both of those dlls is not installed/registered properly or has became corrupted or registry corruption on the trouble pc
If the files are present I would suggest that you try to register them and see if that helps.
-
Re: VB6 project load errors
Sorry DataMiser. I overlooked responding to your query about the two .dll files; msdbrptr and msstdfmt. I registered them both, but there was no change in the result. However, there was one strange thing that happened. I registered those files again today and the project compiled passed the .dsr errors to a 429 error. I rebooted and tried compiling and the .dsr errors came back!
Regarding the Report Designer again, I cannot get it to work. I listed the things I tried in a post yesterday.
As always, thanks very much for your assistance. Actually, you are the only person still responding to this thread or the same thread I have on other forums. For most folks the first question they ask is what is a .dsr file. In my search for a solution, I've found that many if not most links listed for a particular search are either way out of date, simply wrong or they eluded to the problem without any suggestions or solutions -Thanks again.
-
Re: VB6 project load errors
For whatever reason, the report manager now appears to be working. Since I don't know how to use it I'll have to find some instructions. But I was hoping that if the Report Designer worked, that the project would compile without the .dsr errors. No such luck.
-
Re: VB6 project load errors
You would need to remove the dsr from the project
-
Re: VB6 project load errors
Hmm. For some reason I am unable to edit the post above today.
Anyway in addition to removing the dsr fromt he project you would need to remove or comment any code that refers to it