-
Re: VB6 project load errors
In my sample project used to create a new report, once done, my Project Explorer includes a Header "Designers" in addition to "forms","modules" and "classes". The Designer header containts DataEnvironment and DataReport1. However, on my real Project there is no such information.
Regarding your answers, DataMiser, I don't understand at all your suggestion to remove the .dsr file from the project. In the first place, I don't know how to do that since, as I said, there is no reference to the in the Project Explorer, and they are not listed anywhere else in the project, e.g., references and components. However, the dsr files are referred to in some code modules. If I remove the code that refers to any of the dsr's, I lose much of my functionality????? Can you elaborate please. Thanks.
-
Re: VB6 project load errors
Well when you load a project that is missing files or controls VB will prompt you to continue loading project or not. If you continue then when you close it will ask you if you want to save your changes. If you save the changes then the reference to the missing file is removed from the project file. You can also open the vbp file with notepad and delete the lines that refer to the dsr. Of course it is always a good idea to make a backup copy of your project before you do either just in case something goes wrong.
Beyond that if there is code in your project that calls the report that will have to be removed or commented since the report doesn't exist or else the program will fail to compile.
-
Re: VB6 project load errors
Thanks for the feedback DataMiser.
The issue is no longer about project load file errors and hasn't been for awhile. When I started out with this thread, that WAS the problem, but when I said YES to continue loading, it kept listinug addtitional errors but never asked me if I wanted to save changes.
But the issue is the errors I'm getting on compile. I tried your suggestion about deleting all references to the dsr names (which are considered variable names to the compiler. However, the more I removed from the program, the more errors I received and finally a '429' errors. So I put it all back. As I said earlier, if I remove all these references to .dsr files it clearly changes the functionality of the program.
-
Re: VB6 project load errors
Well I do not know what you are expecting clearly if the file does not exist you can not compile the program with a reference to the missing file.
It should have prompted to to save changes when you closed the project, unless you have that disabled.
-
Re: VB6 project load errors
All the dsr files are present in the source directory for the project. I just don't think they are linked into the project and I really have no idea how. I tried simply adding them in through Project Explorer but that didn't work.Still looking for some solution.
Thanks for your imput DataMiser.
-
Re: VB6 project load errors
If the files are there and correct then you can add them using the add file method under the project explorer. I just tried it and it works just fine. That said I seem to remember you talking about creating some of these files by changing names or something like that and if that is the case I would expect it to fail.
Can you zip up the entire project as it was at the beginning of this thread [code files only, no exe or setup files] and attach it to a post
-
Re: VB6 project load errors
Thanks DataMiser. Conincidently, I did just what you suggested before I logged on here and it did work. When I added the first dsr file, it created a section in Project Explorer called Designers and all the dsr files went there.
I thought it would then compile cleanly, but now I have a 429 error. The online suggestions from corrupted registry of MS Word not be registered or something like that. I'm going to read more about this possibility since my project does use MS Word.
Thanks again.
-
Re: VB6 project load errors
My project uses MS Word and an Access database. I have Word installed but not Access. Would this cause a 429 error.
-
Re: VB6 project load errors
It depends on what you mean by using? If you are making a reference to MS access in your code [early binding] then you have to have that specific version installed. If you are not using a reference but are using create object to create an access object [late binding] then Access must be installed. If you are just talking about using an MDB file then no it does not need to be installed.
As for the actual error you should always post the error message rather than just the number in this case it is can not create object so you you are using either early or late binding to talk with access then not having access would indeed be a problem and may be this error that you would get.
Personally I go out of my way to avoid linking to any office product if at all possible both to avoid such potential issues and so that my customers do not need to buy Office in order to use my software.
That said obviously you must have everything installed before you can work with the software unless you remove all the code related to the missing software/files.
-
Re: VB6 project load errors
Thanks for the info.
"Run Time Error 409. ActiveX component can't create object".
I don't know about the binding. All I know that MSWord is used for the printing functionality and the project uses an .mdb.
-
Re: VB6 project load errors
look at your references for the project if there are any checked items related to word or access then you are using early binding. If not then you are not
Search the code for CreateObject if this is used to refer to word or access then you are using late binding.
Both types of binding require that the software be installed but early binding also requires a specific version where late binding is more flexable.
You do not need Access to work with data in an MDB file. You do need access if you are trying to execute access macros or reports in an mdb
I have never used word for any applications. For printing I either write code to print or use a report in either case it is part of my program an has no requirement for the user to have additional software installed.
Where/When do you get this error?
-
Re: VB6 project load errors
Thanks again for the info Data Miser.
There are no references to Word or Access and 'CreateObject' is not used in the code. This error is the 429 error I referred to a couple of posts ago; 'Run Time Error 429, Activex component can't create object. It occurs during compile and started showing up after I fixed the .dsr file errors during compile.
-
Re: VB6 project load errors
What is the line of code that is highlighted when the error occurs?
-
Re: VB6 project load errors
There is no highlighted line of code accompanying the error message.
-
Re: VB6 project load errors
Hard to even guess then. Without knowing what object it is talking about nor what objects you may be using.
Does it at least take you to a sub or function? A form, module, class. Usually there is a pretty good indicator as to what the problem is
-
Re: VB6 project load errors
I can't believe what is happening. I did nothing, absolutely nothing except recompile repeatedly. But after I got your last post, I compiled again, knowing that there was no reference but the 429 code. However, this time, unbelievable I got the following: Compile Error, Syntax Error, in Sub pAttachMessage(Me, M_hWnd, WM_HSCROLL) in a class. NO 429 error! Don't know what to say or believe at this point.
-
Re: VB6 project load errors
Sounds like maybe you have more than one issue.
Have you tried to run in the program in the IDE with the full compile option?
From the menu Start will full compile or CTRL+F5
-
Re: VB6 project load errors
Full compile results in same error as last post. No 429. I don't understand how consistent results of one error can all of a sudden change to another!
-
Re: VB6 project load errors
And start with full compile does not give you some clue as to where the problem may be?
There really is not much more I can do to help without having at least a clue as to what object may be triggering the error or having access to the code
-
Re: VB6 project load errors
Would you like to see the full project?
-
Re: VB6 project load errors
Yes. If you could zip up all the code files for the project I would take a look and see what I can determine from it.
-
Re: VB6 project load errors
My apologies. My partner was checking through the code and inadvertently placed a '+' sign on the line of code causing the compile error. Once he knew we had an additional error, he went back, corrected it and now we are back to the 429 error with no highlighted line
-
Re: VB6 project load errors
Are you going to post the source?
-
Re: VB6 project load errors
My project folder is too large for uploading in CodeGuru. I'll think of some other way. Thanks
-
Re: VB6 project load errors
DataMiser. You can get the file from my ftp site at 'ftp://97.74.144.112'. Username: corvette92, Password: Password1#, folder name IDBase052113.zip. This is the only file available to you in the only directory you will see.
Thanks again.
-
Re: VB6 project load errors
Tried but the archive looks no good get a message related to unexpected end of archive when I try to open it and only see one file within name aboutbox.ctl so no go
-
Re: VB6 project load errors
Interesting. I downloaded and opened with no problem. I uploaded another copy in case you want to try again.
-
Re: VB6 project load errors
I managed to get it downloaded that time correctly using CuteFTP not sure why the command line FTP would not get it correctly, can not load the project fully though
Complains about Missing DLL and Resources and shows 2 missing references
Reference=*\G{C13FD026-D819-4EBD-8C01-70E2AA3A219C}#2.0#0#\\tsclient\C\IDDBProWord\IDVerifier.dll#IDVerifier
Reference=*\G{64674040-3A82-101B-8181-00AA003743D3}#1.1#0#..\WINDOWS\system32\Win.tlb#Windows API (ANSI)
Reference=*\G{5F7C62D4-9130-11D1-8E21-E08C04C10000}#8.2#0#..\WINDOWS\system32\SSubTmr.dll#Subclassing and Timer Assistant (with configurable message response, multi-control support + timer bug fix)
-
Re: VB6 project load errors
Subclassing and Timer Assistant was an issue at one time, but adding a reference cured that. I don't know about the other two. Perhaps your pc's environment? I don't know. But I think I've imposed upon you enough. This issue just seems to cause more and more problems with no end in sight. Perhaps I should look at some sort of work-around. However, you can answer one more question for me; I want to create a project that contains all the modules and classes from project A and nothing else (it's a dll). If I create a new project and copy all the modules and classes from from project A, should it work okay? Thanks.
-
Re: VB6 project load errors
My problem has been solved. I had a couple of MISSING in my references and a couple of other seemingly unrelated erros. Once corrected, the project compiled correctly. One of the MISSING references was Subclassing and Timer... if that's of any value. My only regret is that I haven't learned a thing during this debugging process except to make sure you check to make sure you have all the necessary references and components.
Thank you all for your time, comments and suggestions.
-
Re: VB6 project load errors
that is NOT the way to do that. split it up into folders, and post. Nobody want's to take a chance