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

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.

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.

Reflection in C++ [duplicate]

This question already has answers here:
Why does C++ not have reflection?
(15 answers)
Closed 9 years ago.
I am currently porting a game from Cocos2d written in ObjectiveC to Cocos2d-x in C++. Now the objective C guys have used Reflection to populate modal classes from a json object. Is the same possible in C++ Can we use reflection in C++ ?
Kind Regards
As mentioned in the comments, C++ has no reflection.
The default solution is to register all the symbols that you need in an associative array, like unordered_map. Here are examples of that.

Arbitrary precision in c++ using Windows? [duplicate]

This question already has answers here:
Bignum libraries for windows?
(4 answers)
Closed 9 years ago.
Is there a library that can be implemented relatively easily in windows?
I made a few functions a while ago which used arrays of numbers to get the desired outcome. I might work at them when I get the time.
But is there any such feature already available that can be implemented into c++ easily?
Apparently people have had luck with using the GNU Multiple Precision Arithmetic Library for Windows.

Grab data inside code [duplicate]

This question already has answers here:
parse a xml in c++
(3 answers)
Closed 8 years ago.
So I have gotten the website source, and now im trying to grab the data inside the tags. How would I go about doing that. Thanks
For example,
<start>value</start>
Set a string to value
http://expat.sourceforge.net/ and http://msdn.microsoft.com/en-us/magazine/cc163436.aspx two more alternatives apart from http://xerces.apache.org/xerces-c/ as mentioned by mtahmed. There are plenty more. Please compare them based on your requirement.
You can use an XML parser library. Here is a link to one such library: http://xerces.apache.org/xerces-c/

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.