/[Sims3RigEditor]/trunk/gr2lib_cpp_UnitTest/gr2lib_cpp_UnitTest.cpp
ViewVC logotype

Contents of /trunk/gr2lib_cpp_UnitTest/gr2lib_cpp_UnitTest.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4 - (show annotations) (download)
Thu Jul 29 14:46:07 2010 UTC (9 years, 11 months ago) by william
File size: 1211 byte(s)
initial commit

1 // gr2lib_cpp_UnitTest.cpp : main project file.
2
3 #include "stdafx.h"
4 #include "granny.h"
5 #include "..\gr2lib_cpp\gr2lib_core.h"
6 #include "..\gr2lib_cpp\gr2lib_core_imports.h"
7 #include <stdio.h>
8 #include <iostream>
9 #include <stdlib.h>
10 #include <assert.h>
11
12 using namespace std;
13
14
15
16 void wait()
17 {
18 cout<<"\nPress {ENTER} to continue.";
19 cin.ignore(1);
20 }
21 int main(int argc, char const* argv[])
22 {
23
24 granny2apiversion* api_checker = new granny2apiversion();
25
26 if (!api_checker->APIVersionsMatch())
27 {
28 printf("Warning:\n\t Loaded Granny2 DLL Version: %s\n\t Expected Version: %s",api_checker->LoadedAPIVersion().c_str(),api_checker->ExpectedAPIVersion().c_str());
29 return EXIT_FAILURE;
30 }
31 else
32 {
33 printf("Loaded Granny2 DLL Version: %s\n\t Expected Version: %s",api_checker->LoadedAPIVersion().c_str(),api_checker->ExpectedAPIVersion().c_str());
34 }
35
36 /*if (!GrannyVersionsMatch)
37 {
38 printf("Warning: the Granny DLL currently loaded "
39 "doesn't match the .h file used during compilation\n");
40 return EXIT_FAILURE;
41 }
42 else
43 {
44 printf("\nLoaded Granny2 DLL Version: %s", GrannyGetVersionString());
45 }*/
46 wait();
47 return 0;
48 }
49
50

  ViewVC Help
Powered by ViewVC 1.1.22