Microsoft Visual C++

Hi,
Sorry if this has been posted before.
I am newbie and want to try Arduino.
The compiler I am used to is MS Visual C++, I would like to use it to program ARDUINO board, what to do? what do I have to download ? how to install it ? what is the instruction I will have to include in my program
Thanks a lot

R.

Hi R.
sorry but this simply not possible. The Visual-C++ compiler cannot create runtime-code for an arduino board.

Eberhard

Is there some specific reason why you want to use Visual C++?

The Arduino IDE provides a free compiler that can handle C and C++ code.

Generating programs for the Arduino is not the only task that needs to be performed. After compilation, the linker needs to do it's job. It's job is specific to the hardware that will run the program.

Even after the linker is done, though, the output from the linker needs to be transferred to the Arduino. This is not a task that Visual C++ knows how to do.

The free Arduino IDE does, though.

So, why use Visual C++ as a beginner tool?

thanks for your replies.
I do want to use my own libraries I have developed, stack, heap, cues, matrix, etc, etc.

It would be great if can use all of them besides the ARDUINO functions, It could probably improve and speed up my projects.

so still I wonder if it would be possible in the future to use MS Visual as core platform.

Thanks

R

Stacks, heaps, queues, and matrices, huh.

I do believe you are going to be disappointed.

The Arduino is a micro-controller. It does not have a huge amount of memory, processing power, or speed.

Perhaps if you mentioned what you want to do with the Arduino, there could be some useful suggestions about how to do it using native capabilities.

I want to do some image processing, it has to capture the analog signal and do some digital stuff...

In any case, can you please suggest me other ARDUINO like smart board that works in a similar way ARDUINO does with more memory and capacity, is there something like that?
also interface C/C++ based

That sort of thing is way out of the league of an Arduino. You need something like WIN CE running on an ARM chip.
However it's not cheap.
Start looking at:-
http://forums.arm.com/index.php?showtopic=1422

I just found this

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1256076667

The CSerial class being mentioned there allows a C++ application to talk to the serial port. The Arduino can also talk to the serial port.

So, a C++ application can talk to an Arduino. That does not mean that the code that the C++ compiler produces can be uploaded to the Arduino.

I'm confused about the relevance of that topic to this one.

you are right, I am just trying to collect some related info.
:slight_smile:

I also like Visual Studio. I can never remember the core arduino functions and classes so the vs intellisense is handy. Not to mention all the functions in the libraries!!

It's not difficult to make visual studio aware of your arduino boards.txt or for it to compile using gcc or g++. Just needs a bit of time.

This is an add-in for visual studio that I am working on. I have found it makes life much easier when programing my arduinos. http://www.visualmicro.com

As others have said MS compiler simply does not work.

But if you want to use the MS Visual Studio IDE with WinAvr compiler then take a look at this:
http://zoavrlib.googlecode.com/files/Avr.Programming.Guide.101.pdf

and these open-source libraries:
http://www.mil.ufl.edu/~chrisarnold/components/microcontrollerBoard/AVR/avrlib/
http://code.google.com/p/zoavrlib/

cheers

That's neat. I wasn't aware that Visual Studio could accommadate non-microsoft compilers!