Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.visual.misc > #2079
| From | ralph <nt_consulting@yahoo.com> |
|---|---|
| Newsgroups | comp.lang.basic.visual.misc |
| Subject | Re: Visual Basic 5 |
| Message-ID | <954vm9lukk8h6pkfj2riel71f2imvinmjv@4ax.com> (permalink) |
| References | (3 earlier) <20sbm95fdndeum895up5kb276jmjnodeub@4ax.com> <73vbm95bssp5g7cfbb8ujpmarr6rn431va@4ax.com> <bjhmm951ge8cff087cggj7fbuk87ckem6o@4ax.com> <0gvmm9p6usi0t1ec32bj18hmtvehl2bpqu@4ax.com> <at7um95ck6ch9vvb73jqh29dncdvsb4asm@4ax.com> |
| Organization | Forte - www.forteinc.com |
| Date | 2014-05-11 11:29 -0500 |
On Sun, 11 May 2014 16:03:38 +0800, John Mott <johnmott@iinet.net.au>
wrote:
>
>
>1) I have V5.0.37.24 installed on win7 64 bit
>
>2) I do not get errors when opening VB5.
>
>3) I do not get errrors opening a simple VB project but do get errors
>trying to open a more complex project.
>
>>
>>Try this:
>>Close the VBIDE.
>>Open the .vbp file of a troubled project in a text editor and delete
>>the lines that reference comctl32.ocx and comdlg32.ocx. (Or any .oca
>>reference that may have slipped in.)
>>Save the file.
>>Then open the project in VB, open project references, and add the
>>common control components back. (Again, make sure you do not
>>accidently select an '.oca'.)
>>Save the changes to the vbp file and close.
>>Re-open the project and test.
>>
>>Let us know the exact error/s you get, if any.
>>
>>-ralph
>
>I used a text editor to delete lines refering to comctl32.ocx,
>comdlg32.ocx and msflxgrd.ocx and the project then opened in VB but
>showed error messages Error Loading refer to The numerous Frm.logs.
>Log entries refer to invalid properties.
>When I tied to run it I got I got compile error:
>user defined type not defined
>Dim pn11 as Panel.
>
Perhaps my fault, should have been more clear about how to reconfigure
a project by editing the .VBP file directly:
After deleting the references:
1) open the project with the VBIDE
2) ignore any complaints, errors, warnings, etc.
3) avoid "touching" any vb modules that may be automatically opened in
the editor
4) go immediately to Project References and make your changes.
5) then close the project/VBIDE to save the change
(If it asks you to save anything other than the project -
Select 'NO')
6) then reopen the VBIDE
To insure a competely 'blank' project - no files opened in the VBIDE -
thus no "load errors", you can edit or delete the .VBW (project
workspace) file. It will be recreated when you open the project.
If you did not do this, ie, continue to fiddle in the Project, then
I'm not sure what may or may not have happened as a consequence.
If you still have the original project files, you might replace your
current files and start-over.
For example of why this may be an issue:
Say you have a project that has one Form with a "missing" control. We
will call it MyControl. When the Form is loaded, so to at least
maintain all the code/events behind, VB will replace MyControl with a
PictureBox. At this point it is just a "placeholder". Go to Project
References add the missing control. Then immediately close the
project. When it is reopened MyControl will have been found. However,
if you in any way cause the Form with the PictureBox placeholder to be
*saved* - then the change is permanent.
The latter is an undesirable outcome as the repair is to manually go
back into each module with a text editor and replace all instances of
'PictureBox' with MyControl. For a large project you can use the load
error file to discover those modules that need to be edited. Narrows
the work down a bit, but still a PITA.
However, I'm not sure at this point if any of this is your problem.
Just wanted to let you know for future reference.
>I then attempted to add the common control properties back in.
>They showed as being referenced in the text file.
>Succeeded with the three above mentioned ocx's, but I cannot fathom
>how to add the Panel property back in.
>
>When I try to run the project I get error message saying
>cant add Panels - method or data member not found.
>
As for the Panel control it would help if someone who is currently
using VB5 or has a better memory would enter this discussion.
The Panel was replaced by Frames with VB6, so not availble. I remember
various howls and complaints when porting to VB6, but wouldn't think
it would be an issue if you are still using VB5 Common Controls. Even
if you screwed up existing panels - I think you should be able to at
least add a new one. Unless of course MS actually removed it from the
updated VB5 control???? (Don't panic just mulling it over. <g>)
I will ponder a bit more.
hth
-ralph
Back to comp.lang.basic.visual.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Visual Basic 5 John Mott <johnmott@iinet.net.au> - 2014-04-25 16:21 +0800
Re: Visual Basic 5 ralph <nt_consulting@yahoo.com> - 2014-04-25 07:46 -0500
Re: Visual Basic 5 ralph <nt_consulting@yahoo.com> - 2014-04-25 10:47 -0500
Re: Visual Basic 5 John Mott <johnmott@iinet.net.au> - 2014-04-26 10:43 +0800
Re: Visual Basic 5 GS <gs@somewhere.net> - 2014-04-26 11:59 -0400
Re: Visual Basic 5 ralph <nt_consulting@yahoo.com> - 2014-04-26 13:48 -0500
Re: Visual Basic 5 John Mott <johnmott@iinet.net.au> - 2014-05-02 17:02 +0800
Re: Visual Basic 5 Deanna Earley <dee.earley@icode.co.uk> - 2014-05-02 10:29 +0100
Re: Visual Basic 5 John Mott <johnmott@iinet.net.au> - 2014-05-04 15:44 +0800
Re: Visual Basic 5 GS <gs@somewhere.net> - 2014-05-02 14:21 -0400
Re: Visual Basic 5 RW <RonW@no_domain.invalid> - 2014-05-02 15:27 -0400
Re: Visual Basic 5 John Mott <johnmott@iinet.net.au> - 2014-05-04 15:48 +0800
Re: Visual Basic 5 ralph <nt_consulting@yahoo.com> - 2014-05-04 04:03 -0500
Re: Visual Basic 5 John Mott <johnmott@iinet.net.au> - 2014-05-08 17:30 +0800
Re: Visual Basic 5 John Mott <johnmott@iinet.net.au> - 2014-05-08 17:58 +0800
Re: Visual Basic 5 ralph <nt_consulting@yahoo.com> - 2014-05-08 08:52 -0500
Re: Visual Basic 5 ralph <nt_consulting@yahoo.com> - 2014-05-08 09:47 -0500
Re: Visual Basic 5 ralph <nt_consulting@yahoo.com> - 2014-05-08 11:38 -0500
Re: Visual Basic 5 RW <RonW@no_domain.invalid> - 2014-05-08 15:20 -0400
Re: Visual Basic 5 John Mott <johnmott@iinet.net.au> - 2014-05-09 15:32 +0800
Re: Visual Basic 5 John Mott <johnmott@iinet.net.au> - 2014-05-11 16:03 +0800
Re: Visual Basic 5 ralph <nt_consulting@yahoo.com> - 2014-05-11 11:29 -0500
Re: Visual Basic 5 GS <gs@somewhere.net> - 2014-05-11 14:28 -0400
Re: Visual Basic 5 ralph <nt_consulting@yahoo.com> - 2014-05-11 12:59 -0500
Re: Visual Basic 5 ralph <nt_consulting@yahoo.com> - 2014-05-11 14:04 -0500
Re: Visual Basic 5 ralph <nt_consulting@yahoo.com> - 2014-05-11 14:32 -0500
Re: Visual Basic 5 John Mott <johnmott@iinet.net.au> - 2014-05-12 16:49 +0800
Re: Visual Basic 5 ralph <nt_consulting@yahoo.com> - 2014-05-12 22:34 -0500
Re: Visual Basic 5 John Mott <johnmott@iinet.net.au> - 2014-05-13 14:51 +0800
Re: Visual Basic 5 John Mott <johnmott@iinet.net.au> - 2014-05-13 17:12 +0800
Re: Visual Basic 5 ralph <nt_consulting@yahoo.com> - 2014-05-13 08:01 -0500
Re: Visual Basic 5 ralph <nt_consulting@yahoo.com> - 2014-05-13 09:36 -0500
Re: Visual Basic 5 ralph <nt_consulting@yahoo.com> - 2014-05-13 09:43 -0500
Re: Visual Basic 5 ralph <nt_consulting@yahoo.com> - 2014-05-13 09:55 -0500
Re: Visual Basic 5 ralph <nt_consulting@yahoo.com> - 2014-05-13 10:16 -0500
Re: Visual Basic 5 ralph <nt_consulting@yahoo.com> - 2014-05-13 13:24 -0500
Re: Visual Basic 5 John Mott <johnmott@iinet.net.au> - 2014-05-14 17:30 +0800
Re: Visual Basic 5 ralph <nt_consulting@yahoo.com> - 2014-05-14 07:05 -0500
Re: Visual Basic 5 John Mott <johnmott@iinet.net.au> - 2014-05-15 16:58 +0800
Re: Visual Basic 5 ralph <nt_consulting@yahoo.com> - 2014-05-15 07:37 -0500
Re: Visual Basic 5 John Mott <johnmott@iinet.net.au> - 2014-05-16 17:24 +0800
Re: Visual Basic 5 Deanna Earley <dee.earley@icode.co.uk> - 2014-05-16 13:58 +0100
Re: Visual Basic 5 John Mott <johnmott@iinet.net.au> - 2014-05-17 17:13 +0800
Re: Visual Basic 5 John Mott <johnmott@iinet.net.au> - 2014-05-18 16:05 +0800
Re: Visual Basic 5 ralph <nt_consulting@yahoo.com> - 2014-05-18 04:14 -0500
Re: Visual Basic 5 John Mott <johnmott@iinet.net.au> - 2014-05-19 17:28 +0800
Re: Visual Basic 5 Deanna Earley <dee.earley@icode.co.uk> - 2014-05-19 10:36 +0100
Re: Visual Basic 5 John Mott <johnmott@iinet.net.au> - 2014-05-20 16:32 +0800
Re: Source control (Was: Visual Basic 5) Deanna Earley <dee.earley@icode.co.uk> - 2014-05-20 10:19 +0100
Re: Source control (Was: Visual Basic 5) ralph <nt_consulting@yahoo.com> - 2014-05-20 11:59 -0500
Re: Visual Basic 5 John Mott <johnmott@iinet.net.au> - 2014-05-20 16:40 +0800
Re: Visual Basic 5 Deanna Earley <dee.earley@icode.co.uk> - 2014-05-19 08:55 +0100
Re: Visual Basic 5 "Henning" <computer_hero@coldmail.com> - 2014-05-16 12:06 +0200
Re: Visual Basic 5 "Mayayana" <mayayana@invalid.nospam> - 2014-05-04 09:32 -0400
Re: Visual Basic 5 "Bill Skaggs" <eaglecrest@att.net> - 2014-05-04 06:34 -0700
csiph-web