Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 86,257 VB Programmers. There are 2,070 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a VB Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

convert vb6.0 exe to source code

 
Reply to this topicStart new topic

convert vb6.0 exe to source code

annmaria
post 9 May, 2008 - 12:11 PM
Post #1


New D.I.C Head

*
Joined: 9 May, 2008
Posts: 1



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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


Zhalix
post 9 May, 2008 - 12:34 PM
Post #2


New D.I.C Head

*
Joined: 7 May, 2008
Posts: 35

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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Martyr2
post 9 May, 2008 - 12:38 PM
Post #3


Programming Theoretician

Group Icon
Joined: 18 Apr, 2007
Posts: 3,561

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.

smile.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

sno
post 9 May, 2008 - 06:35 PM
Post #4


New D.I.C Head

*
Joined: 4 May, 2008
Posts: 15

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....
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

born2c0de
post 10 May, 2008 - 12:23 AM
Post #5


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

Group Icon
Joined: 26 Nov, 2004
Posts: 3,298

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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 5/16/08 09:39AM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month