4 Replies - 33291 Views - Last Post: 10 May 2008 - 12:23 AM Rate Topic: -----

#1 annmaria  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 1
  • Joined: 09-May 08

convert vb6.0 exe to source code

Posted 09 May 2008 - 12:11 PM

Hi,

I have lost my vb6.0 source code. Could anyone tell if there is a way to convert exe to source code.

Appreciate any help.

Thanks,
Ann
Is This A Good Question/Topic? 1

Replies To: convert vb6.0 exe to source code

#2 Zhalix  Icon User is offline

  • D.I.C Regular

Reputation: 20
  • View blog
  • Posts: 260
  • Joined: 07-May 08

Re: convert vb6.0 exe to source code

Posted 09 May 2008 - 12:34 PM

I think it's possible to slightly decompile a .exe, but it still wouldn't be code you could just look at and modify. It's a complex thing and I'm pretty sure that right now it's currently impossible.
Was This Post Helpful? 1
  • +
  • -

#3 Martyr2  Icon User is offline

  • Programming Theoretician
  • member icon

Reputation: 4337
  • View blog
  • Posts: 12,137
  • Joined: 18-April 07

Re: convert vb6.0 exe to source code

Posted 09 May 2008 - 12:38 PM

You will not be able to to get the exact source code from an exe. However you can decompile a program which will give you an approximation on how the exe was created (this is behind the technology of reverse engineering a program). As you can imagine you don't want such a tool to exist (that can get the exact source) because any program you write could then have its source code stolen from you.

But as for your original source, it is gone I am afraid. Which is why you should always back up your source code for programs.

:)
Was This Post Helpful? 0
  • +
  • -

#4 sno  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 17
  • Joined: 04-May 08

Re: convert vb6.0 exe to source code

Posted 09 May 2008 - 06:35 PM

I think there are programs out there which let you fins the machine code for executable.. but that means a lot of digging through the code to understand it....
Was This Post Helpful? -1
  • +
  • -

#5 born2c0de  Icon User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 180
  • View blog
  • Posts: 4,667
  • Joined: 26-November 04

Re: convert vb6.0 exe to source code

Posted 10 May 2008 - 12:23 AM

It's very very difficult to get your source code back but you can retrieve the Form Design for every form accurately as VB stores the property values for every control of every form (Refer to my VB Disassembling Tutorials) in the executable file.

Many freeware "decompilers" successfully recover the form design.

As for recovering the code, if you know what functions were used in each procedure, then if you're well versed with the VB Runtime Signatures, you can manually recover your code. This can take forever if your program is large.

I'm willing to help in my spare time. Attach the executable file (+screenshots) out here and I'll see what I can do.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1