Joined: May 22, 2003 Posts: 23948 Location: NSW, Australia
Posted: Sat Nov 13, 2004 2:18 pm Post subject: Prt1 - "Empty Code"
So you've got the XDK, and you want a little tasty of how it works, how to get your little fingers in there.
Well remember once you've installed the XDK, you start up visual C++, and you want to know where to start...this takes us the the entry point...the place where it all begins.
Code:
//Main header file for the XDK
#include <xtl.h>
//Application entry point
void __cdecl main()
{
StartGame();
}
What did you say? .."My god what is that!", well this is the entry point for all our programs, I've put a function called StartGame() in the body of the main loop which will call our code to start the game loop.
You could take the function call out "StartGame()" and press compile and it could compile and generate a .xbe for you which would work on the xbox.
Note: If you are using a mod-chip, and evo-x and you wish to run your .xbe on the xbox you must first patch it, copy it across using an ftp package such as FlashFXP then using FlashFXP send the execute binary command and away it goes. _________________ HQ Network:
www.xbox-hq.com | www.xboxone-hq.com | www.360-hq.com | www.c64-hq.com
LegendaryFire Moderator
Joined: Jul 20, 2009 Posts: 840 Location: Canada
Posted: Sun May 23, 2010 9:12 pm Post subject: Re: Prt1 - "Empty Code"
forahobby wrote:
So you've got the XDK, and you want a little tasty of how it works, how to get your little fingers in there.
Well remember once you've installed the XDK, you start up visual C++, and you want to know where to start...this takes us the the entry point...the place where it all begins.
Code:
//Main header file for the XDK
#include <xtl.h>
//Application entry point
void __cdecl main()
{
StartGame();
}
What did you say? .."My god what is that!", well this is the entry point for all our programs, I've put a function called StartGame() in the body of the main loop which will call our code to start the game loop.
You could take the function call out "StartGame()" and press compile and it could compile and generate a .xbe for you which would work on the xbox.
Note: If you are using a mod-chip, and evo-x and you wish to run your .xbe on the xbox you must first patch it, copy it across using an ftp package such as FlashFXP then using FlashFXP send the execute binary command and away it goes.
Thanks a ton man, but im getting a little warning message that disables Debugging and Building. The warning message is "This project does not contain any configurations whose platforms are suppoted by this installation of Developer Studio.". _________________
You can contact me at: LegendaryFire -at- 360-HQ.com
forahobby Administrator
Joined: May 22, 2003 Posts: 23948 Location: NSW, Australia
Posted: Tue May 25, 2010 5:21 pm Post subject: Re: Prt1 - "Empty Code"
LegendaryFire wrote:
Thanks a ton man, but im getting a little warning message that disables Debugging and Building. The warning message is "This project does not contain any configurations whose platforms are suppoted by this installation of Developer Studio.".
Did you end up getting it sorted.. If not i can go through my development library here and tell you what i used.. Im sure i still have my old Visual Studio originals here somewhere..
You will need M$ XDK (which in on VIP SERVERS on HQ) and VS6 minimum.
Im not even sure what version of VS supports the old XDK.. Probably none, but there is also a open XDK... I never got into this due to the lack of documentation at the time.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum