Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

check the code from a project

Status
Not open for further replies.

singoi

Technical User
Mar 1, 2005
46
DE
is there any way to check the code from a Package which is already been converted to exe file.

i mean after the project is been converted to package through "package and deployment wizard" is there any way to check the code of complate project and forms.

thanks
 
You mean the VB code?

No. An EXE does not contain any VB code. It does contain machine code (or possibly P-Code depending upon the compiler options that you used.) The P&D process doesn't "convert" anything (other than possibly compressing the files in the package). P&D is just a mechanism for putting all the necessary components together and then unpackaging them and registering them on the target machine.
 
I would have said no as well (which is the case, as I'm certain there isn't anything that does what you want), but after a search on the VB6 forum (for decompile) you might want to have a look at Hypetia's post thread222-756653 (and the links within) for a limited de-compilation of a VB6 exe.

As I said, it doesn't do all that you want but could be useful?

Hope this helps

HarleyQuinn
---------------------------------
Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
Thanks HarleyQuinn

I checked out Hypetia's link and the decompiler does provide a definition of the form (i.e. controls on the form, form display properties) but the code that it recovers is Assembler ... not VB (understandably.)

Still ... better than nothing I suppose.
 
Yeah, no VB code (and as you say, this is understandable) [sad]

Golom said:
Still ... better than nothing I suppose.
That's exactly what I was thinking, at least we can get something out of a compiled program (not that I've yet ever come across the need to reverse engineer an exe, but it might happen in the future) [wink]

HarleyQuinn
---------------------------------
Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
singoi, why is it that you are attempting to extract the source code from the finished product? Do you not have the source code available for some reason?

Bob
 
Hallo Bob,

i have written a small code and i have tried to make a project. i have suceeded. i thought the whole code is been converted into project so i have deleted the main folder where i have the forms and so on. now i see no code which i have written.

i can install through my exe file but no code. can i bring my code back from this exe file.
 
singoi said:
can i bring my code back from this exe file
Unfortunately, as stated in several previous responses, you can't retrieve your code from the .exe. Following the links in my post you can get the definitions of forms used in your project but not any VB code.

Cheers

HarleyQuinn
---------------------------------
Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
No, you can't. Just be glad you wrote some small code, because now you're going to have to rewrite it, unless you can find it in your Recycle Bin.

Now. Any piece of software has two things: "source code" and "compiled code". The source code you keep. Treat it like any valuable asset that you have. Store it in a safe place, don't let people look at it, and so on. All of the "forms and so on" in your project are your source code.

In other words, DON'T DELETE YOUR SOURCE CODE AGAIN, unless you never want to use the application again. You don't take handfuls of $100 bills and go driving on the freeway tossing them out the window, and you don't delete your source code.

Clear enough? :)

Bob
 
Thanks Bob.

i would never do it again.
is there any possibility to hide the source code coz there is a chance of people peeking in my Project and they have the right to peek. i want to hide the important codes.

is there any way to hide them, but compilation will be processed as normal.
 
Are you worried that people will steal/alter your code?

HarleyQuinn
---------------------------------
Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
Sorry, been on vacation. The way that you hide your code is you restrict access to the folder containing it. If you can't do that, copy your files to a disk, delete them, and then copy them back again when you need them.
 
To respond to the original question, did you try and recover the deleted files? If it has not been a long time since you have deleted them, you still might be able to recover them.

------------------------------------------
The faulty interface lies between the chair and the keyboard.
 
Hallo,

I am worried that people will steal my code.

is there anyway to hide the cide in background of the Project.

 
The way that you prevent people from stealing your code is by restricting access to the folder that contains it. You can allow only yourself into the folder. Then you can compile and distribute your application separately from the source code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top