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 Adding files to library (Read 4427 times)
sixeyes2
Junior Member
**
Offline


Posts: 93
Location: Guildford, United Kingdom
Joined: Dec 19th, 2011
Adding files to library
Jan 1st, 2012 at 10:37pm
Print Post  
If I want to copy an existing file I can't do it inside VS2008 because it says copying is not possible without All Files mode enabled, so I copy the file using Windows Explorer. In VS2008 I then add the item from the menu.

If I do this in a library I can either do this, or Show All Arduino Files twice to refresh the list of files in a library.

Is there a better way?

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adding files to library
Reply #1 - Jan 1st, 2012 at 11:54pm
Print Post  
yes vs will have an issue copying lib files because they are not in the project folder. they are added to projects using a filter which doesn't specify a path to enable paste.

vm prob needs a bit of work to enable it to auto detect new files but if toggling all files off/on works then that is probably best for now. 

as an alternative you might be able to add your own c++ project that simply contains the library you are working with. this might make copy paste easier and as long as the .h files are included as normal arduino libs then the arduino project should still compile.

vm supports more than one project in a solution and also supports a mix of arduino and other projects in the same solution
  
Back to top
WWW  
IP Logged
 
sixeyes2
Junior Member
**
Offline


Posts: 93
Location: Guildford, United Kingdom
Joined: Dec 19th, 2011
Re: Adding files to library
Reply #2 - Jan 2nd, 2012 at 6:37pm
Print Post  
OK. I didn't realise VM supported multiple projects. I'll give it a try now.

Iain
  
Back to top
 
IP Logged
 
sixeyes2
Junior Member
**
Offline


Posts: 93
Location: Guildford, United Kingdom
Joined: Dec 19th, 2011
Re: Adding files to library
Reply #3 - Jan 2nd, 2012 at 6:51pm
Print Post  
Looks like the limitation is VS2008 when in C++ mode.

When I use it for C# I can copy a file in the solution explorer using Ctrl+C / Ctrl+V.

I just created a VC++ project, added my library files and tried copying a file. Nothing happened. I guess I'll have to stick with using Windows Explorer. It seems Microsoft have forgotten about C++ development. There's a few other things I've noticed only work if you're using C#.

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adding files to library
Reply #4 - Jan 2nd, 2012 at 8:49pm
Print Post  
I didn't know that.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint