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

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.

Related

How to check for sse intrinsics support on github c++ project? [duplicate]

This question already has answers here:
SSE SSE2 and SSE3 for GNU C++ [closed]
(5 answers)
What are intrinsics?
(4 answers)
Closed 1 year ago.
What is meant by SSE intrinsics from c++ development point of view? All I could find is that they help things to run faster on a specific platform. But what does it actually means? Does it mean that in the code I will see some #ifdef code for each platform? Or does it mean something else?
Another doubt is that if I am looking at a GitHub project then how can I check if it has used intrinsics for any of the supported platform? Where can I browse to see if this has been done for any platform in the GitHub project itself? Can I search for any specific text to make the search faster?

Dynamically load shared library while running [duplicate]

This question already has answers here:
How do I load a shared object in C++?
(4 answers)
Closed 5 years ago.
I'd like to know if it is possible to load a Linux shared library (extension being .so) into a program that is already running. T
he library that I'm wanting to load is a plugin to modify aspects of the program.
I'd like to load the plugin at any time while the program is running.
EDIT 10/22: This question is years old and I sincerely apologise for the sheer poor quality and utter stupidity of this question.
This is one of the core concepts of shared library. You should start by looking at dlopen functions and examples

How do I find the L2CacheSize, L3CacheSize from C++ on Windows7? [duplicate]

This question already has answers here:
C++ cache aware programming
(10 answers)
Closed 7 years ago.
I am profiling my code on various CPUs running Windows7 and my results so far suggest that I need to tune a buffer size proportional to the machine's L2CacheSize or L3CacheSize. Is there a way to obtain these parameters from C++?
You can use the GetLogicalProcessorInformation function to get that. It returns an array of SYSTEM_LOGICAL_PROCESSOR_INFORMATION structures which contain a CACHE_DESCRIPTOR structure, which provides the cache size information.

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.

Open MFC application to get source-code [duplicate]

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.