-
September 29th, 2011, 10:16 AM
#1
find version of vb forms
How to identify in which version the vb 6.0 forms and class modules were built.
I have visual studio 6.0 installed in my PC and have a vb application with lot of .frm files and .bas files ,may be build in older version .. how can i be sure of that ???
Thanks in Advance
-
September 29th, 2011, 01:52 PM
#2
Re: find version of vb forms
By older version you mean VB5,4,3 or are you talking VB6 SP5 compared to VB6 SP6?
If they were written in VB6 then it should not matter which SP was in use.
If they were written in VB5 then they should work fine so long as you have the proper controls registered on your system
If they are older than this then they may or may not be readable. Older versions had the option to save as text or binary VB 6 works only with text files.
Also older versions used .MAK files rather than .VBP files
Load your project and try to build an exe. If the project loads and builds the exe then you should be fine.
Always use [code][/code] tags when posting code.
-
September 29th, 2011, 01:54 PM
#3
Re: find version of vb forms
btw if you open your frm files with a text editor the first line is "Version"
Ufortunately VB 6 forms say Version 5 just like VB 5
Always use [code][/code] tags when posting code.
-
September 30th, 2011, 06:01 AM
#4
Re: find version of vb forms
The appllication was wriiten in VB 4 and then migrated to vb 6. May be it need some dependency controls of vb 4 for the forms to work fine in vb 6 . I also have SP6 installed in my system.
when i open the forms in text editor it displays Version 5. its really shocking to see even the form of vb 6.0 displays as version 5 in its 1st line when opened in text editor.
I am Not able to build the application as I cant load any .frm file when i open a project its displays the below error in the log file
"" '0' could not be loaded
Line 0: The file E:\Client\vb\utlity\detail.frm could not be loaded. ""
If I directly open the forms (.frm files) the screen of the form is not displayed and .frm files are opened in the branch of Modules, which is not correct it should open the .frm files only in the form branch
Thanks in Advance... Please throw some light on my above queries.
-
September 30th, 2011, 06:29 AM
#5
Re: find version of vb forms
If your form was not load, the details about that failure would have been written into a log file.
If Form1.frm could not be loaded, you will find a text file Form1.log which contains a detailed error message.
Please look this up and tell us what's in there.
Also it could be helpful to append one of these failing forms for us to inspect.
In some cases a control or a reference is missing or not available on your computer. Then you could do some editing with a text editor to avoid those.
Edit: If a form file appears in the module section, VB6 seems not to recognize that it is a form file. All other (except .cls and .ctl_ files containing code are treated like modules.
So there is something missing which identifies the file as a form file.
Also, sometimes if there are graphical elements associated with the form, they are stored in a file like Form1.frx. Maybe there are some of those and they are not compatible with VB6...
Last edited by WoF; September 30th, 2011 at 06:33 AM.
-
September 30th, 2011, 08:02 AM
#6
Re: find version of vb forms
You can also open your vbp file with a text editor and get an idea what controls may be required to load the project. There were controls in vb5 that do not exist in vb6. VB4 was both 32 and 16 bit and contained VBX files as well as OCX files. This was for backward compatability with vb3. VB5 done away with these vbx files but included a way to replace many of them with OCX files. VB6 does not and some of those cross over controls are only on the VB5 cd.
Always use [code][/code] tags when posting code.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|