Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Determine VB Version of existing project

404 views
Skip to first unread message

Ken Halter

unread,
Jun 2, 2004, 5:20:43 PM6/2/04
to
BobH wrote:
> Hi,
> I was hired to modify a client's Visual Basic application.
> But, i don't have much information on which VERSION of visual basic was used to develop
> the application.
>
> Does anyone know how i can read the .VBP file (or any other file) to determine which
> version of Visual Basic can be used to read and modify the application?
>
> --
> Attached are the first few lines from the .VBP file
>
> Type=Exe
> Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#C:\WINNT\System32\stdole2.tlb#OLE Automation
> Reference=*\G{00000205-0000-0010-8000-00AA006D2EA4}#2.5#0#C:\Program Files\Common Files\System\ADO\msado25.tlb#Microsoft ActiveX Data Objects 2.5 Library
>
> Reference=*\G{56BF9020-7A2F-11D0-9482-00A0C91110ED}#1.0#0#C:\Program Files\Microsoft Visual Studio .NET\Common7\Controls\msbind.dll#Microsoft Data Binding Collection VB 6.0 (SP4)
>
> Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0; Mscomctl.ocx
> Object={BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0; TABCTL32.OCX
> Object={F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0; COMDLG32.OCX
>
>
> thanks,
> Bob

If I had to guess (which I do <g>) I'd say that's a VB6 project.

fwiw, you can easily edit the project in VB5 or VB6. VB6 will add a
couple of lines to the code modules that VB5 won't recognize but they're
easy to remove with notepad if you need to.

If the project has any VB6 specific syntax (like Controls.Add, Split,
Replace and a few others), VB5 will let you know immediately. fwiw, the
first line in a VB6 form still says "VERSION 5.00" so you can't go by
that either.

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep all discussions in the groups..

Björn Holmgren

unread,
Jun 3, 2004, 11:08:01 AM6/3/04
to
"BobH" <anon...@discussions.microsoft.com> wrote in message
news:925C95BC-CE48-4153...@microsoft.com...

> Hi,
> I was hired to modify a client's Visual Basic application.
> But, i don't have much information on which VERSION of visual basic was
used to develop
> the application.
>
> Does anyone know how i can read the .VBP file (or any other file) to
determine which
> version of Visual Basic can be used to read and modify the application?
>
> --
> Attached are the first few lines from the .VBP file
>
> Type=Exe
>
Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#C:\WINNT\System32\
stdole2.tlb#OLE Automation
> Reference=*\G{00000205-0000-0010-8000-00AA006D2EA4}#2.5#0#C:\Program
Files\Common Files\System\ADO\msado25.tlb#Microsoft ActiveX Data Objects 2.5
Library
>
> Reference=*\G{56BF9020-7A2F-11D0-9482-00A0C91110ED}#1.0#0#C:\Program
Files\Microsoft Visual Studio .NET\Common7\Controls\msbind.dll#Microsoft
Data Binding Collection VB 6.0 (SP4)
>
> Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0; Mscomctl.ocx
> Object={BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0; TABCTL32.OCX
> Object={F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0; COMDLG32.OCX
>
>
> thanks,
> Bob


Do you have the compiled exe file?

If you do, you can use the dependency walker to check what runtime library
is used. For VB6 it's MSVBVM60.DLL. For VB5 it's MSVBVM50.DLL. IIRC, earlier
versions used a dll named something like VBRUN - hopefully with a version
number in the name.


--
Björn Holmgren
Guide Konsult AB


Bob O`Bob

unread,
Jun 3, 2004, 1:06:54 PM6/3/04
to
=?Utf-8?B?Qm9iSA==?= wrote:
>
> Does anyone know how i can read the .VBP file (or any other file) to determine which
> version of Visual Basic can be used to read and modify the application?


>

> Reference=*\G{56BF9020-7A2F-11D0-9482-00A0C91110ED}#1.0#0#C:\Program Files\Microsoft Visual Studio .NET\Common7\Controls\msbind.dll#Microsoft Data Binding Collection VB 6.0 (SP4)
>


Based on this line, obviously at least some portion of VB 6.0 was installed
on some machine which edited this vbp file at some time.
It seems most likely that's your answer. Mixing components is rare.


Bob

BobH

unread,
Jun 8, 2004, 11:36:14 AM6/8/04
to
Thanks Ken, Bjorn and Bob for your replies.
That's exactly what I needed.
0 new messages