Arduino and Visual Studio VC++ 2010

Hi everyone,

I'm developing a tool to create automatically VC++ project for PDE files to allow IntelliSense based on the Arduino Libs.

I tried several tools but I was not convinced... The idea is to make something simple and usable with free tools (like VC++ Express)

Anybody is volunteer to be Alpha tester ?

I put a sneak preview of it on my blog : http://blog.digicious.be/?p=18

Oh, and it will be completely open-source and free of course.

(hosted on Codeplex)

Have you seen this?

http://www.visualmicro.com/

Is it similar to what you are proposing?

Have you checked out the playground:

http://www.arduino.cc/playground/Code/VisualStudio

Iain

Cha,
Good idea, I will help with testing.

@Iain

Yes, and I tried Visual Micro. It's a great tool but unfortunately, the Visual Micro addin doesn't work with Visual Studio C++ Express. Well... Addins are not support in Visual Studio Express actually.
Also, VC++ is only use as an Editor, it doesn't compile or upload sketches. Arduino IDE will be used for that.

I checked the playground yes... Actually, I refer to the Step 2 and Step 4 of that page in my installation guide.

@Marius

great ! Send me your mail by PM and i'll send you the binaries + installation instructions + how To :slight_smile:

OK. Count me in. I'd like to be an alpha tester.

I currently use VC++ Express to compile some of my projects (just to get the better error messages) so I'm already half way there.

Iain

Ok great !

Voilà !

I published the project !

http://arduinotovsconverter.codeplex.com/

Let me know if you have trouble to use it or to install it !

Did anybody got a chance to test it ?

Anything to improve ?

Cha
Thanks, it works great. Now you must just tell us how to compile from VC++ express.

Unfortunately, I didn't succeed to compile with visual studio Express yet... but i'm working on it !
I guess it should be possible to generate a make file somehow.

It think i saw something like that somewhere on the internet.

Nevertheless, you should be able to compile it with Arduino IDE 0022

To do so : Configure Arduino IDE
Under File\Preferences set the ‘Use external editor’ checkmark.So you can use Visual studio to edit and when done just Alt-Tab to the Arduino application and press the upload button to compile the latest code and upload it to the board. The Arduino program will automatically monitor for file changes so you do not need to refresh anything!

What I did pick up is that if there are more than one .pde file in the sketch directory, it only converts the main pde file and the cpp files but not the rest.

Hi,

I create a workitem on codeplex. I let you know when it's fixed.

http://arduinotovsconverter.codeplex.com/workitem/75

Okay, it should include the PDE files now...

Is that what you expected ?

Francois

Francois
Now we are cooking with gas!!

mmmh... It seems that you should add #include "MySecondPDEFile.pde" or the intelissense wont work...

It should be included like this : in the main pde header like this :

#ifdef _MSC_VER
#define __AVR_ATmega2560__
#define __attribute__(x)
#define __inline__
#define __cplusplus
#define __builtin_va_list int
#define __asm__(x)
#include "WProgram.h"
#include "test.pde" // <-------------------- HERE 
#endif

Since _MSC_VER is defined by the VisualStudio environment, it will be fine when compiled with the Arduino IDE. (Reference : http://msdn.microsoft.com/en-us/library/b0084kay(vs.80).aspx)

Francois
Do you think you can add the rest of the pde files in the include section as you pick them up from the conversion?

definitely doable :wink:

Hey hi !

Just to let you know that I submitted a new build. --> http://arduinotovsconverter.codeplex.com/

It implement the request that Marius submitted few month ago.. (I know I'm a bit slow... )

By the way, is it worth publishing on the playground pages ? (Arduino Playground - DevelopmentTools) ?

Thanks Francois, I will check it out during the weekend.