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 Cant find .cpp files in Solution Explorer (Read 4462 times)
hamwich3
Newbies
*
Offline


Posts: 3
Joined: Nov 17th, 2014
Cant find .cpp files in Solution Explorer
Nov 17th, 2014 at 6:22pm
Print Post  
I am able to find and view the .h files in the Solution Explorer, but not the .cpp files. Is there a quick way to access them or do I have to open them the old fashioned way?

Thanks,
The Ham Sandwich
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cant find .cpp files in Solution Explorer
Reply #1 - Nov 17th, 2014 at 6:38pm
Print Post  
Hi,

Which .h files are you expecting to see? Ones that exist in the sketch folder or library/core? 

Which ide are you using?

Thanks

ps: You can add whatever you like to a solution, the compiler will compile what is valid for arduino regardless of the solution
« Last Edit: Nov 17th, 2014 at 6:47pm by Tim@Visual Micro »  
Back to top
IP Logged
 
hamwich3
Newbies
*
Offline


Posts: 3
Joined: Nov 17th, 2014
Re: Cant find .cpp files in Solution Explorer
Reply #2 - Nov 18th, 2014 at 8:59pm
Print Post  
I'm using Visual Studio. I can see all the .h files in the library/core in the Solution Explorer under External Dependencies, but none of the .cpp files.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cant find .cpp files in Solution Explorer
Reply #3 - Nov 18th, 2014 at 9:17pm
Print Post  
Oh okay so you do not have a problem seeing the sources of the sketch but you want to see the arduino core and library sources.

It is too confusing for most users to have the core and library sources in the project and might lead less experienced users to attempt to edit them.

Obviously F12/Goto definition will take you to the sources and as you rightly report by default vs just shows the .h files in the dependency list

Visual Micro also provides a menu item called Project>Show all sketch sources will will link all core and library sources for the current board into the project. Click the menu a 2nd time to remove the sources again or remove them yourself.

Once you have added the sources to the project using the menu you should find that Visual Micro detects the fact and keeps the sources in sync with the selected board and also when adding new libraries.
  
Back to top
IP Logged
 
hamwich3
Newbies
*
Offline


Posts: 3
Joined: Nov 17th, 2014
Re: Cant find .cpp files in Solution Explorer
Reply #4 - Nov 18th, 2014 at 9:57pm
Print Post  
Awesome! All the files are there. thanks!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint