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 Libraries' cpp files (Read 3184 times)
speter
Newbies
*
Offline


Posts: 2
Joined: Feb 18th, 2013
Libraries' cpp files
Feb 24th, 2013 at 4:21pm
Print Post  
Hello!

I am a new user of Visual Micro, but some years ago I have used Visual Studio for tiny C# projects.

I'd like to know whether there is any way to find out in VS, how Arduino built-in functions (e.g tone(), or LiquidCrystal::begin) work inside. 

In other way, I'd like to peek into to .cpp files easily, not by browsing and opening them from Windows browser. Is there any way? A right-click context menu (go to definition, and declaration do the same, showing just the .h header file)?

And another quesion, that can I configure the Object browser somehow to browse the Arduino libraries? The member functions, its parameters, return values etc.

I hope I am understable Smiley 
Thank you in advance.

Peter

« Last Edit: Feb 24th, 2013 at 4:22pm by speter »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Libraries' cpp files
Reply #1 - Feb 24th, 2013 at 5:54pm
Print Post  
Hi,

You are right, the VS object browser and code explorers work better with library sources directly in the project but it is confusing for new users. So it's an option...

Click the "Project" menu at the top of the Visual Studio Ide, "Project>Show all Arduino files" this will include the libraries and core cpp sources into the VS project as you requested. Click the menu item again to remove the sources from the project.

info: The VS project and the compiler are two different things, the compiler will only look at the sketch on disk and compile what is allowed for Arduino, the VS project can include anything that helps with intellisense/code explorers and will not affect the compile. 
« Last Edit: Feb 24th, 2013 at 6:04pm by Tim@Visual Micro »  
Back to top
IP Logged
 
speter
Newbies
*
Offline


Posts: 2
Joined: Feb 18th, 2013
Re: Libraries' cpp files
Reply #2 - Feb 24th, 2013 at 5:59pm
Print Post  
Thank you. I found it!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint