Page 1 of 1

Visual C++ Express "vs" devkitPro

Posted: Tue Sep 22, 2009 7:48 pm
by TiagoCT
Dear devkitARM developers,

I come today before you with a question that might seem silly at first, but I want
to assure you first that I have only the Basic Knowledge when it comes to C++.
I know Data Input, Output, Operations with numbers, strings arrays and Cycles
such as for, while, etc. Although I started programming on my TI-84 Calculator about
4 years ago and since then I've developed a great taste for programming. I know
more languages than C++, obviously.

With this in Mind, I decided I wanted to start programming something for my DSi.
I'm a Visual C++ User and I would like to use this tool to compile and make .NDS
files. Although, I wouldn't like to change the settings of the Visual C++ just for the DS,
becuase I'm going to need it properly running to program other stuff and university
projects.

I want to ask if you could get me a template for a Nintendo DS program, that already
includes the Pre-processor directives and everything needed to simply press "Compile"
on VC++ when the code is finished. Also, if you'd please provide me some information
about what libraries to use and such... would be highly apreciated. Also, can I move
the libraries from the devkit Folder to another folder?

Also, I have NO understanding of Makefiles :(

Thanks a lot in Advance.

Re: Visual C++ Express "vs" devkitPro

Posted: Tue Sep 22, 2009 10:58 pm
by vuurrobin
ds template for vs c++:
http://forum.gbadev.org/viewtopic.php?t=14788

as for libs, the ones that comes with devkitPro will most likely be sufficient, but there are more libraries for ds *cough*DSOL*/cough*

just try to avoid the c++ standard library. it can be very big and slow on the ds:
http://www.coranac.com/2009/02/some-int ... code-size/


and I doubt you can move libraries without telling the compiler where to find the libraries. which probably means modifying the makefile.

Re: Visual C++ Express "vs" devkitPro

Posted: Wed Sep 23, 2009 2:11 pm
by TiagoCT
Hello vuurrobin,

First of all thanks a lot for the help and tips.
Second, I read your post about the Libs you're making and it's impressive work.
I'm really looking forward for more work from you.

I'm gonna try install this now and I'll give feedback later.

Thank you.

Re: Visual C++ Express "vs" devkitPro

Posted: Thu Sep 24, 2009 8:05 pm
by TiagoCT
Dear vuurrobin,

I spent a lot of time on this and I still can't successfully compile it.

I switched from VisualC++ to a great IDE called Netbeans IDE.
I already have it up and running with Java and C++, my most necessary
languages.

Since I failed all this time to successfully compile it, I wanted to ask you
how you could do it manually. I know I'm being a pain in the ass, sorry for
that and sorry for double posting... but all this trouble I'm getting for about
4 days now is starting to get on my nerves. :S

Is there any way I can do this manually? I mean, create my own makefile
with the correct paths to the tools used to compile? Will this solve anything?

As I said before, I have no understanding of Makefiles because I'm used to click
on a single button and the process is automated. lol the Easiness has corrupted me :S

Thanks a lot in advance!!

And I hope you can reply.

Re: Visual C++ Express "vs" devkitPro

Posted: Fri Sep 25, 2009 2:39 pm
by vuurrobin
the makefile does a lot of things to create a correct *.nds file, so creating your own makefile/doing it on another way isn't recommanded.

you can execute the makefile from the command prompt (asuming you installed devkitPro correctly) by opening the command prompt, change-dirring your way to your project and typing 'make'. this will execute the makefile and create an *.nds file.


alternately, you can create a batch file in your project folder that calls make. just create a text file, put the following in it:

Code: Select all

@echo off
make
pause
and rename it to build.bat. then you can just double-klik the built.bat file to create an *.nds file.

Re: Visual C++ Express "vs" devkitPro

Posted: Fri Sep 25, 2009 3:03 pm
by TiagoCT
Dear vuurrobin,

Great help as usual.
And it worked like a charm too!!
Thanks a lot.