Discussion Locked

Binaries in VB?

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
We have a visual basic program running our meal service (college). It was written some years ago, and the original programmer is gone, but the program itself runs off our server. We recently tried to move this program, only to find that it points to itself (hardcoded), rather than assuming the default directory. When trying to open it in modern VB (4+) it states that it cannot open the binary file. I'm pulling my hair out, any suggestions?

7 replies

by sankulpune

Hello,

It seems to me that you are trying to open a .exe file. This would not open in any type of software either for viewing or for editing.

What you need to do is to locate the source code (probably lying somewhere in back-ups) with all those files with .bas, .vbp & .frm extensions. They will open and and then you can review and edit the code.

with regards,

SanganakSakha,
Simple And Effective Solutions To Small Problems, No QuickFixes.

by peyison

Older versions of VB had the option of saving source code files as text, or binary. What you probably have to do is get a copy of the version of VB that the program was written in, open the source files and then save them as text. I think VB3 was the last version with that option.

by gbworld

You really need to get the source code and not the binary file itself. If this is impossible, you will either have to decompile the binary or rewrite it.

If this is a version that compiled down to P-code, like VB3, you can decompile the software. I know that Dodi has a VB3 decompiler. His site is down, but there should still be a link at http://www.raulken.it/pirateria/utility.htm.

This program should only work on VB3. There is a utility to find if your program is written in VB 3 at http://www.decompiler.net/na_vb.html.

The program hardcode location is a bit more common in earlier versions of VB.

Gregory A. Beamer
MCP: +I, SE, SD, DBA

This discussion is closed to new replies.