What errors are you getting? And are you able to compile any of the XDK samples?
VS doesn't know the "StartGame()" function, which it's not declared and I have no idea how to declare the functions.
The only sample code I can compile is the rotating triangle with the pre-compiled header. Other than that no other code will work. The triangle is the only code I have as a sample. My XDK doesn't have any others in the kit.
I have both, I don't see how that would change anything... The sample code works so it's setup right...
To my knowledge, StartGame(); is a built-in function. Similar to printf();.
A header or library may need to be loaded, but if HeXiGON following the example perfectly and using a compatible version of VS and the xdk then idk what the problem could be. Unless Windows 7 might be messing him up... I do all my xbox1 work on an XP machine.
Wasn't trying to be condescending in my answer, sorry if I came off like that. Anyway, your main method calls StartGame, but it doesn't exist anywhere in your code. You'll have to declare a method called StartGame above your main method, like this:
void StartGame()
{
}
That's alright, I'm still getting the build error however.
//Application entry point
void __cdecl main()
void ;StartGame()
{
StartGame();
}
warning C4518: 'void ' : storage-class or type specifier(s) unexpected here; ignored
error C2146: syntax error : missing ';' before identifier 'StartGame'
warning C4508: 'StartGame' : function should return a value; 'void' return type assumed
Guess this won't be going any where :/
You can't reference a function from within the function. Well, you can... but for your case you can't. Try this:
StartGame()
{
//blah
}
StartGame();
Thanks man! I'll certainly give that a shot.
With the XDK aside, I'm currently learning C++ from a book what's the best approach to that? It's been a while since I've studied from a text book... What would you recommend?
Like, the best approach to reading a textbook?
Skimming for concepts and grasping those concepts from examples/visual aids tends to be the fastest way for me, but sometimes I need to read a full description.
I would recommend taking a class that teaches some of the easy stuff later. Start with arrays before becoming dependent on vectors. There are plenty of online reference materials and concise books out there, but they can't answer your questions!
I think either Harvard or MIT offer free recorded lectures about programming online.
I'll have to get various different books to read from about it. I'll surely jump into it at some stage.