#include <fstream>
#include <windows.h>
#include <iostream>
using namespace std;
int main()
{
MessageBoxA(NULL,"Welcome To [WzTeam]0.1 Calculator For Client And Server Files","[WzTeam]2011",MB_OK);
cout<<"First Of All You Can Choose What Type Of Action You Want To Do\n"<<"1.Calculate Client Version\n"<<"2.Calculate Server Files Version\n";
return 0;
}
this is the code so far now i need to open an exe file and determine what version it is basicly some thing like this 1.05.50 or 22222 please help me with this and thx for who will help :cool:
3 replies to this topic
#1
Posted 25 May 2011 - 01:25 AM
|
|
|
#2
Posted 25 May 2011 - 02:26 AM
I believe you can use the getfileversioninfo function provided by the Windows API:
GetFileVersionInfo Function (Windows)
Although your description is very vague (in what way is it a calculator? What exactly denotes a version?)
GetFileVersionInfo Function (Windows)
Although your description is very vague (in what way is it a calculator? What exactly denotes a version?)
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
#4
Posted 25 May 2011 - 03:02 PM
Your original description is extremely vague, the most likely version would be the one in the resource file as I had mentioned above.
If this version is stored as a file, or in a resource of some kind, or as a binary offset somewhere you will need to tell us so we can at least hint to what you can do to extract it. I can almost guarantee a reader of this thread will not have heard of that game or know how it is installed.
If this version is stored as a file, or in a resource of some kind, or as a binary offset somewhere you will need to tell us so we can at least hint to what you can do to extract it. I can almost guarantee a reader of this thread will not have heard of that game or know how it is installed.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









