What program i can use to edit a MFC Application?

Hello experts!!

What program i can use to edit a MFC Application?
KingSencatAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Arthur_WoodCommented:
do you want to be able to modify the EXE itself?  Or do you have teh source code for the Application?

I assume that by MFC you are refering to the Microsoft Foundation Classes that are part of Visual C++?

AW
0
Arthur_WoodCommented:
You seem to be asking quite a few questions that have the appearance that you are attempting to pirate or otherwise modify commercial programs and if that is the case, then NO ONE at EE is permitted to assist you in this attempt.

AW
0
edvinsonCommented:
Unless you state your objective as malicious, or one of the experts is a mind reader, of course you can receive help here. (Assuming you are NOT trying to reverse a commercial app).

That being said...

Ok, I spent many hundreds of hours reversing when I was younger. If you have an EXE that I am assuming you wrote, and you need to modify something in it, you have a number of options.

The first, and probably the easiest is to obtain a debugger and step through your code to find the problem. Once found, you could then do a couple of things:

1. Patch the code right there and save the executable

2. Re-write the function , compile it, and then inject the newly formed assembly in your original EXE by JMP'ing to your new code. Make sure to include a RET so your program will flow correctly. Of course, you'll have to find a code cave ( a place large enough to hold your new function ). If need be, you can also  add a new section your PE if your code needs it.

Those are some pretty broad instructions, but that's how it's done.

Lastly, the absolute EASIEST way.... *find the source!* ;)

Regards!

References for you:

Olly Debugger (free): http://www.ollydbg.de/
Win 32 PE Format: http://msdn.microsoft.com/msdnmag/issues/02/02/PE/
Assembly Tutorial (BEST on the net): http://win32assembly.online.fr/index.html

Books:
Petzold - Read anything by him
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Raj_KauCommented:
hi KingSencat

as all expert says first you clear you have source code or you have only EXE.
then i thin EE help you more.


Raj
0
KingSencatAuthor Commented:
edvinson .. 1st of all i must to obtain a debbuger ? the program doesnt have any error .. just need to change something ;) ...
and also i have only the EXE ... not any source .. :(
0
edvinsonCommented:
A debugger will allow you to make the necessary changes. A strong background in programming will be required, however.

0
KingSencatAuthor Commented:
Actually about programming vb6.0 i know some thinks .. but about cc++ i dont know nothing lol ... 1st i have to debug and i can see the hole source to make some changes ?
0
KingSencatAuthor Commented:
Well i try to debug and ..

filename.exe does not contain debugging information.Press OK to continue .

0
KingSencatAuthor Commented:
< Disassembly >

lol i see the hole source now .. great edvinson :D
0
KingSencatAuthor Commented:
But i cannot modify nothing ..
0
edvinsonCommented:
Here is a link to teach you how to add a MessageBox to any PE (portable executable).

http://community.reverse-engineering.net/viewtopic.php?t=2436

This should serve as a good starting point. Once you master a simple task such as this, you can then write your own functions.

If you are wanting to just change the way something looks, or the way it behaves, you can use Olly Debugger to make the changes in the disassembly.

Good luck!
0
KingSencatAuthor Commented:
Well ... i cannot say here what i am trying to change .. if is not any problem can you send me just an email at sencat@Gmail.com ... to explain you what i want exactly to do ? please !!
0
Arthur_WoodCommented:
"i cannot say here what i am trying to change "  This sounds VERY VERY suspicious.  Why can't you say what you are trying to change?  Is this change possibly ILLEGAL?

AW
0
edvinsonCommented:
Private email communication is not allowed. It appears I am unable to help any further. Good luck.
0
Jose ParrotGraphics ExpertCommented:
The following program should work:

main(void)
{
char name[80];
char changes[200];
float bucks;

   changes = "xxxxxxx";     // change description
   name = (name of author)  MFC (application);
   select telephone list * name phone number
   call(phone number);
   bucks = askAuthor("Please change the code to", changes);
   pay(bucks);
}

Jose
0
edvinsonCommented:
LMAO
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Multimedia Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.