Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Have I come to the right place? (Read 3501 times)
rick_duley
Junior Member
**
Offline


Posts: 49
Location: Western Australia
Joined: Jan 8th, 2017
Have I come to the right place?
Jan 8th, 2017 at 6:35am
Print Post  
Hi folks

I have just installed MS Visual Studio (v. 14.0.25431.01 Update 3) with the Visual Micro add-in for Arduino programming.  Am I in the right forum for this software?  

My reason for installing the above is that I have begun to find the Arduino IDE restrictive in some ways.   Undecided  For example, it is not happy with the idea of  writing header files for code common to two or more sketches.  Have I installed the right software to be able to do this sort of thing?

Thanks
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Have I come to the right place?
Reply #1 - Jan 8th, 2017 at 4:25pm
Print Post  
Hi.

Yes this is the correct forum. You have three options for shared files.

1) Create Arduino libraries that can be shared and are also compatible with the arduino ide

2) Use visual micro to link short cuts to source code into a visualmicro/arduino project. This is crude, all short cuts are compiled as if directly in the project root. The short cuts can't reference any other headers that are not also included as short cuts in the project.

3)
Recent Visual Studio Studio versions support shared C++ projects which are then included via th References node of a project. Shared projects are a special type of project you create in Visual Studio. For example you can have solution that contains one of more arduino projects, each project can include the same "Shared Projects". The shared project merges (in background) with the project source code when compiled. Sub directories can be used although it's recommended that all sub directories exist below an \src sub folder allowing easier migration back to the arduino ide at a later time.

Visual Micro attempts to maintain a lot of compatibility with the Arduino IDE and does not force you to use propitiatory hardware definitions.  This means you don't have the full flexibility of a normal c++ "make" project but also means when new hardware becomes available it will usually work with visual micro without requiring a visual micro update.
  
Back to top
IP Logged
 
rick_duley
Junior Member
**
Offline


Posts: 49
Location: Western Australia
Joined: Jan 8th, 2017
Re: Have I come to the right place?
Reply #2 - Jan 9th, 2017 at 4:39am
Print Post  
Thanks for that.

I'd like to leave programming issues to another day and ask your help as I try to get this beast (Visual Studio  Cheesy) under some form of control.  When I first opened VS I tried to direct it to read and write on my D-drive.   This is a working partition the function of which is to provide an alternative place for applications to write and delete rather than doing it on C-drive where my software files sit.  My attempt is shown in the attached file "VSFolders-AsPreferred.PNG".  To my surprise, this suddenly expanded with a string of sub-folders - none of which currently have anything in them.

At the same time I found TWO new folders under D:\Documents (see attachment "VSFoldersOnD-Documents.PNG" ).

There seems to be a wonderful opportunity for confusion and chaos here  Shocked !

I would prefer the VS working files to be where I said they should be, and ONLY there.  Things seem more stable when a file is only stored in the one place   Wink.  What do I do with the folders under D:\Directories ?  Alternatively, how do I sort out this tangle?

Thanks
« Last Edit: Jan 9th, 2017 at 4:51am by rick_duley »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Have I come to the right place?
Reply #3 - Jan 9th, 2017 at 2:54pm
Print Post  
Hi,

Your questions are about standard Visual studio and it is best to use the Microsoft forum for questions about it. 

The Visual Micro documentation is here http://www.visualmicro.com/page/User-Guide.aspx?doc=index. It explains how to create and upload arduino projects.

Arduino has the concept of a "sketch book folder", this is where users are prompted to save program code when using the arduino ide. This folder is also the location where arduino libraries are installed. The standard visual micro menus direct new users to this arduino compatible process.

Now with that explained I will try to give you some answers to your questions ...

1) You see both 2005 and 2015 because sometime in the past you installed Visual Studio 2005
2) Visual Micro does also allows all the standard Visual Studio create/build commands to also build Arduino. This is useful for people who like the Visual Studio way of working. When using Visual Studio to create projects then the "Projects Location" box in your previous image is where projects are created and saved.
3) Visual Studio allows you to create project templates and item templates. You don't need to do this and should not change the default locations of these items until you know what you are doing. An example of an item template is when you add a new file to a project, such as .cpp file. You can extend the list of "new" files using "item templates" if you have common files or code you often create.
4) When you create a new projects you see a lot of different types of projects to create. These are "project templates". Users can export any project and make it a new project template.
5) A solution holds one or more projects. A project points to one of more source files. New users should work with single project solutions until they understand how things work.

  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Have I come to the right place?
Reply #4 - Jan 10th, 2017 at 12:30pm
Print Post  
Off-Topic replies have been moved to this Topic.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint