Sure,
1>------ Build started: Project: take5, Configuration: Debug Win32 ------
1>Compiling...
1>main.cpp
1>c:\users\graeme\documents\visual studio 2008\projects\take5\take5\main.cpp(309) : warning C4832: token '.' is illegal after UDT 'BritishMachineGun'
1> c:\users\graeme\documents\visual studio 2008\projects\take5\take5\main.cpp(53) : see declaration of 'BritishMachineGun'
1>c:\users\graeme\documents\visual studio 2008\projects\take5\take5\main.cpp(309) : error C2275: 'BritishMachineGun' : illegal use of this type as an expression
1> c:\users\graeme\documents\visual studio 2008\projects\take5\take5\main.cpp(53) : see declaration of 'BritishMachineGun'
1>c:\users\graeme\documents\visual studio 2008\projects\take5\take5\main.cpp(310) : warning C4832: token '.' is illegal after UDT 'BritishMachineGun'
1> c:\users\graeme\documents\visual studio 2008\projects\take5\take5\main.cpp(53) : see declaration of 'BritishMachineGun'
1>c:\users\graeme\documents\visual studio 2008\projects\take5\take5\main.cpp(310) : error C2275: 'BritishMachineGun' : illegal use of this type as an expression
1> c:\users\graeme\documents\visual studio 2008\projects\take5\take5\main.cpp(53) : see declaration of 'BritishMachineGun'
1>Build log was saved at "file://c:\Users\Documents\Visual Studio 2008\Projects\take5\take5\Debug\BuildLog.htm"
1>take5 - 2 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
it appears to be a problem with:
1 2
|
Bullets[i].xPos = BritishMachineGun.xFront;
Bullets[i].yPos = BritishMachineGun.yCentre;
|
I have been on MSDN but I can't seem to make sense of this, if I remove this function from the code the program is fine again so it there is definitely something wrong with the bullet struct or InsertBullet function I would guess. Any light on the subject?