www.xbdev.net xbdev - software development
Monday December 10, 2018
home | about | contact | Donations

     
 

XBOX Programming..

More than just a toy...

 

Prt1 - "Empty Code" - is that it?

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.

 

//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.

 

 
 Visitor: 9534626  { 209.237.238.175 } Copyright (c) 2002-2017 xbdev.net - All rights reserved.
Designated tutorial and software are the property of their respective owners.