Open MFC application to get source-code [duplicate] - mfc

This question already has answers here:
Is it possible to "decompile" a Windows .exe? Or at least view the Assembly?
(16 answers)
Closed 7 years ago.
Does someone know how to open an MFC application to get the source-code?
(I want to know how it works)

MFC is compiled from C++ source, so it can't be recovered. You can use a decompiler on it, but the source you get back won't be particularly instructive.
There's a good related question on debugging, disassembling and decompiling you can check for more links.

Related

how to convert an executable file into a c++ file to peak at code [duplicate]

This question already has answers here:
Getting source from object file
(5 answers)
Closed 4 years ago.
I have an executable file, which was developed in c++. How do I convert it back into c++? I am unsure where to start. I am trying to edit a game, so that the ai makes decisions faster.
Just to add, you can't but you can disassemble it. With OllyDBG or IDA pro... You have to have a good grasp of Assembly language.
Then debug the game.... And watch the registers and watch what instructions make the game slow.

Check platform and use the correct printf form [duplicate]

This question already has answers here:
How to detect reliably Mac OS X, iOS, Linux, Windows in C preprocessor? [duplicate]
(3 answers)
Closed 8 years ago.
It's been 10 years since I've learned C++ during high school, now I'm playing around it again and I'll already facing some problems regarding multi-platform.
I saw that if I want to display special characters on windows, I should use wprintf. However, on *nix systems, it is not necessary.
So, how can I detect what is the current platform, so I can run printf or wprintf depending on it?
UPDATE
I'll open a new question with the error and close this one.
You could simply use wprintf (or wcout <<) on either platform. See this question for an example.

Calling a .net function from C++ [duplicate]

This question already has answers here:
How do I call a .NET assembly from C/C++?
(9 answers)
Closed 8 years ago.
I want to use this function to zip up a folder from a C++ console application. No examples are given in the article of how to use the function from C++, just C# or VB, and I can't find any other code samples anywhere.
The article doesn't really even clarify whether the function is available in C++. Is this function supported in C++? And if so, how do I call it?
Thanks.
This doesn't answer your specific question of calling that .NET method you requested, but, if you want to compress some files using native C++, look at using Zlib and there is a contribution app called minizip which you can use for opening / creating zip archives.

Determine Windows version via application [duplicate]

This question already has answers here:
How do you check the windows version in Win32 at runtime?
(2 answers)
Closed 9 years ago.
I wanted to ask, is there any possibility to determine the Windows version via the application, I have made some research, but haven't found,
Thank you in advance ^^
Err... How about GetVersionEx() ?

Cross platform crash-reporters [duplicate]

This question already has answers here:
Cross-platform crash handler
(3 answers)
Closed 9 years ago.
Are there any cross platform crash reporters for C++ besides google-break pad? I have seen google-breakpad but it has very very limited documentation, and I have nothing seen very much mentioned here, google or other source websites
Have a look at BugTrap which might help you.