Jump to content

[Help]Building Calculator And Cant finish Some Codes

- - - - -

  • Please log in to reply
3 replies to this topic

#1
Zero_Cool

Zero_Cool

    Learning Programmer

  • Members
  • PipPipPip
  • 65 posts
#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:

#2
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200
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?)
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.

#3
Zero_Cool

Zero_Cool

    Learning Programmer

  • Members
  • PipPipPip
  • 65 posts
its supposed to be something like in this topic

#4
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200
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.
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.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users