Programming languages

Discussion in 'NDS - Emulation and Homebrew' started by Shazzo, Aug 7, 2008.

  1. Shazzo
    OP

    Shazzo Member

    Newcomer
    17
    0
    Aug 6, 2008
    I was just wondering about what programming language I needed to know in order to make a homebrew. I'm learning C# at the moment.

    On that note, is developing with DevKitPro similar to developing with something like Visual Studio 2005? Or maybe Notepad? Those are the programs I'm used to.

    Thanks in advance.
     
  2. DeMoN

    DeMoN GBAtemp Guru

    Member
    7,649
    100
    May 12, 2004
    United States
  3. Shazzo
    OP

    Shazzo Member

    Newcomer
    17
    0
    Aug 6, 2008
    Are those much different from C#?

    Like, do you start with

    using System;

    public class DSgame
    {
    public void Main()
    {
    }
    }
     
  4. CockroachMan

    CockroachMan Scribbling around GBATemp's kitchen.

    Member
    3,889
    4
    Jan 14, 2006
    Brazil
    Brazil
    Working with consoles, the only choices you have are C and C++ (or assembly, but, no one is crazy enough for that).

    Not much different..
     
  5. Shazzo
    OP

    Shazzo Member

    Newcomer
    17
    0
    Aug 6, 2008
    Hmm... I have enough trouble with C# as it is. Is there maybe a code converter I can download somewhere? Or can Visual Studio recompile code in a different language? That way, I wouldn't have to learn another language. One's hard enough...

    I hope I'm not breaking the rules by asking for a program like this.
     
  6. sadak5

    sadak5 GBAtemp Fan

    Member
    421
    0
    Feb 27, 2007
    Mexico
    Mexico City
    C# is a Hybrid program son of a .... crazy programmer who mixed the c++ (not C) language with the easiness of Visual Basic (VB is not hard to learn, but if you want tu use all it's power, it becomes a lot powerfull). I think if you know C# you can learn C++ (C->VB->C#->C++ is the order I learned them). There a re few differences between C# and C++ (example, the pointers in C# are class[.]Memorymethod, and in c++ are class[->]Memorymethod). You can program in Visual studio to respect the syntaxis (i think there is a way to import the libraries of devkitpro in VC++).

    I'm a programmer who both works in VB and C#, if you have any question PM or send me an email.
     
  7. DanTheManMS

    DanTheManMS aka Ricochet Otter

    Member
    4,329
    105
    Jun 2, 2007
    United States
    Georgia
    Technically you can also use Java (VERY limited implementation, java4nds), Perl (through miniPerl in DSLinux) or BASIC (using DSBasic). But if you're trying to use DevKitARM to compile apps directly for the DS, you'll need to use C or C++.
     
  8. Psyfira

    Psyfira Credit: 0ml. Insert tea to continue

    Member
    3,887
    15
    Dec 31, 2003
    England
    Sorry, you'll have to do this the good old fashioned way. Fortunately the thing about programming is that your first language is the most difficult, once you know how to think like a programmer picking up another language becomes a hell of a lot easier. [​IMG] Don't expect results overnight or anything, but it can't hurt to try.
     
  9. sadak5

    sadak5 GBAtemp Fan

    Member
    421
    0
    Feb 27, 2007
    Mexico
    Mexico City
    In the school were i first learned C we had a say: "Learn C... then Forget C... Is like breath... do you need to remember how to breath?" [​IMG]
     
  10. dipper145

    dipper145 GBAtemp Regular

    Member
    111
    0
    Jun 12, 2008
    Canada
    I use PA_Lib to make homebrew in visual c++ 2005 express edition.