This code snippet will dynamically find the version of a Windows executable.
/*
Name: Dynamic Version Grabber
Copyright: 2006
Author: Tyson Collins
Date: 13/10/06 14:12
Description: Dynamically finds the version of your program (Win32 EXE)
*/
#include <cstdlib>
#include <windows.h>
#include <cstring>
#include <cstdio>
//Link -lversion
using namespace std;
int main(int argc, char *argv[])
{
·
·