Ok I am making a Physics simulator for fun. I started with Direct3D9 and then I moved to OpenGL. Now I'm back using Direct3D9 but this time I am constantly getting the same errors over and over again in VC++ 2008. Looking forward to your help.
THE WINMAIN HEADER FILE
#ifndef WINMAIN_HPP
#define WINMAIN_HPP
//System includes
#include <windows.h>
#include <windowsx.h>
#include <math.h>
// DirectX Header Files
#include <d3d9.h>
#include <d3dx9.h>
// Useful macros
#define ERROR_MSG(msg){MessageBox(NULL,msg,L"Error",MB_OK|MB_ICONEXCLAMATION);} //error macro debugging
//My includes
#include "Direct3D.hpp"
#include "Performance.hpp" //Not reliant on local headers
#include "Physics.hpp"
#include "Camera.hpp" //Not reliant on local headers
#include "Clock.hpp" //Not reliant on local headers
extern cPhysics *myPhysics;
extern cClock *myPerformanceClock;
extern cClock *myClock;
extern cPerformance *myPerformance;
extern cD3D *myD3D;
////////////////////////////////////////////////////////////////////
#define WINDOW_WIDTH 800
#define WINDOW_HEIGHT 600
////////////////////////////////////////////////////////////////////
//GLOBAL FUNCTIONS
//handle any messages from windows
LRESULT CALLBACK wndProc(HWND hWnd,
UINT uMsg,
WPARAM wParam,
LPARAM lParam);
//main entry point
int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nShowCmd);
void cleanUp(); //any cleanup code such as IDirect3D9::Release() goes here
////////////////////////////////////////////////////////////////////
#endif //WINMAIN_HPP
THE DARN ERRORS
1>------ Build started: Project: RealitySim, Configuration: Debug Win32 ------
1>Compiling...
1>Direct3D.cpp
1>f:\projects\realitysim\solution\winmain.hpp(29) : error C2143: syntax error : missing ';' before '*'
1>f:\projects\realitysim\solution\winmain.hpp(29) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>f:\projects\realitysim\solution\winmain.hpp(29) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>f:\projects\realitysim\solution\direct3d.cpp(23) : warning C4244: 'argument' : conversion from '__int64' to 'UINT', possible loss of data
1>f:\projects\realitysim\solution\direct3d.cpp(38) : warning C4244: 'initializing' : conversion from '__int64' to 'unsigned int', possible loss of data
1>f:\projects\realitysim\solution\direct3d.cpp(60) : warning C4244: 'argument' : conversion from '__int64' to 'UINT', possible loss of data
1>f:\projects\realitysim\solution\direct3d.cpp(69) : warning C4244: 'argument' : conversion from '__int64' to 'size_t', possible loss of data
1>f:\projects\realitysim\solution\direct3d.cpp(125) : warning C4244: 'argument' : conversion from '__int64' to 'UINT', possible loss of data
1>Physics.cpp
1>f:\projects\realitysim\solution\winmain.hpp(25) : error C2143: syntax error : missing ';' before '*'
1>f:\projects\realitysim\solution\winmain.hpp(25) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>f:\projects\realitysim\solution\winmain.hpp(25) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>WinMain.cpp
1>f:\projects\realitysim\solution\winmain.cpp(184) : warning C4244: 'argument' : conversion from 'float' to 'DWORD', possible loss of data
1>Generating Code...
1>Build log was saved at "file://f:\Projects\RealitySim\Solution\Debug\BuildLog.htm"
1>RealitySim - 6 error(s), 6 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========