[C++/X360] Hello World

Discussion in 'Xbox 360 Development' started by itchy, Aug 16, 2010.

  1. itchy

    itchy Guest

    Hi
    I'm trying to do an hello word on x360 (.xex)

    Someone can do a tutorial or give me source code ?



    Thx

    :sexy2:
     
  2. KIWIDOGGIE

    KIWIDOGGIE Peppy Member

    Joined:
    Jul 9, 2008
    Messages:
    357
    Likes Received:
    15
    printf("fuck you");
     
  3. itchy

    itchy Guest

    ive tryed that ,and that doesn't work
    try again
     
  4. splith

    splith Resolute Member

    Joined:
    May 2, 2010
    Messages:
    997
    Likes Received:
    4
    *sigh*
     
  5. WTVR

    WTVR Spirited Member

    Joined:
    Feb 20, 2010
    Messages:
    146
    Likes Received:
    0
    Look in the samples?
     
  6. itchy

    itchy Guest

    There is not Hello world in the sample :(
     
  7. itchy

    itchy Guest

    ON XBOX 360


    Do it if u know !
    stupid guy
     
    Last edited by a moderator: Aug 16, 2010
  8. mooseblaster

    mooseblaster Bleep. Site Supporter 2012, 2014

    Joined:
    Aug 27, 2006
    Messages:
    1,568
    Likes Received:
    4
    I'm assuming that's because you're looking in the wrong place. The 'Hello World' will be printed to the 'Output/console'. What I'm expecting you're trying to do is output to the framebuffer/Direct3D (as in, either the output window or the Xbox) and as such nothing will happen when you do a printf.

    Here's a tutorial on DirectX 9 (the DirectX used by the Xbox 360). Good luck.
    http://www.directxtutorial.com/Tutorial9/tutorials.aspx
     
    Last edited: Aug 16, 2010
  9. itchy

    itchy Guest

  10. LEo

    LEo Fiery Member

    Joined:
    Jan 19, 2008
    Messages:
    845
    Likes Received:
    16
  11. itchy

    itchy Guest

    It's for xbox 1 !
    :(
     
  12. XboxGamer23

    XboxGamer23 Rising Member

    Joined:
    Apr 19, 2010
    Messages:
    72
    Likes Received:
    2
    that code will still compile on 360
     
  13. mooseblaster

    mooseblaster Bleep. Site Supporter 2012, 2014

    Joined:
    Aug 27, 2006
    Messages:
    1,568
    Likes Received:
    4
    No, that tutorial is for all DirectX 9 implementations - be it on Windows or on the 360. In any case, nearly all DirectX commands are forwards compatible, and the original Xbox predominantly ran DirectX 8.

    Just to confirm, to write for Xbox 360 you'll need:

    * Visual Studio (the newer the better)
    * DirectX 9 or 10, and
    * The XDK addons for Visual Studio

    If you don't have those, you won't get anywhere with writing directly for the Xbox 360 using the XDK. Also, it's preferable to have the MSDN Library installed, as it's a helpful resource for development.

    If you haven't got the required tools for XDK development, you could always start off by coding for Windows (as the process is very similar) or switching over to XNA.

    http://creators.xna.com
     
  14. Patriot

    Patriot Rising Member

    Joined:
    Aug 1, 2008
    Messages:
    53
    Likes Received:
    1
    printf outputs to the debugger console. If you want to output to the screen, I use "ATG::Console".


    VOID WriteLine(CHAR * strFormat, ...)
    {
    va_list pArgList;
    va_start( pArgList, strFormat );

    CHAR buffer[ 1000 ];
    vsprintf( buffer, strFormat, pArgList );

    g_console.Format("%s\n", buffer );

    }
     
    Last edited: Aug 16, 2010
  15. Jackhead

    Jackhead Site Soldier

    Joined:
    Apr 2, 2008
    Messages:
    2,433
    Likes Received:
    610
    there is an iPhone app "hello world" over 300 hello worlds in any language ^^ im sorry fall in love with apple :redface:
     
    Last edited: Aug 16, 2010
  16. inspuration

    inspuration Spirited Member

    Joined:
    Jun 11, 2010
    Messages:
    195
    Likes Received:
    0
    http://pastebin.com/nXvCXeUS

    The above code should work under the following circumstances:

    1) You have Visual Studio 2005 installed. (Newer isn't better, the SDK will only work with 2005)
    2) You have the Xbox 360 SDK installed. (Check a torrent site for this.)
    3) You include the ATG project in your solution.

    I don't have my windows machine with me to test this code but I'm fairly sure it will work.

    Coding for the 360 can be a very rewarding experience, just keep working at it!
     
  17. EazyB

    EazyB Rapidly Rising Member

    Joined:
    Apr 11, 2008
    Messages:
    86
    Likes Received:
    0
    Not necessarily, newer SDK builds work fine with Visual Studio 2008 and 2010.
     
    Last edited: Aug 16, 2010
  18. inspuration

    inspuration Spirited Member

    Joined:
    Jun 11, 2010
    Messages:
    195
    Likes Received:
    0
    Where would one find these newer SDK builds? I would seriously appreciate any information on this.
     
  19. EazyB

    EazyB Rapidly Rising Member

    Joined:
    Apr 11, 2008
    Messages:
    86
    Likes Received:
    0
    Asking such would be against the rules.

    Although, I hear xds.xbox.com is good this time of year.
     
    Last edited: Aug 16, 2010
  20. itchy

    itchy Guest

    Hi ,i have a newer version of SDK , and i use VISUAL STUDIO 2008.
    Thx too all for help !



    mooseblaster : i have : visual studio 2005,2008,2010 / DirectX11 / New SDK



    inspuration : thx it works
     
    Last edited by a moderator: Aug 17, 2010
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page