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 Unable to create new sketch - E_INVALIDARG (Read 4634 times)
MichaelInNC
Newbies
*
Offline


Posts: 3
Joined: Jan 11th, 2016
Unable to create new sketch - E_INVALIDARG
Jan 11th, 2016 at 7:58pm
Print Post  
I just loaded the latest Arduino IDE 1.6.7, Visual Studio 2015 Community, and the Arduino for Visual Studio. 

I tried to create a new Arduino project according to the Your First Project, I gave it a name and I get an error.
"Unable to create new sketch
The parameter is incorrect. (Exception from HRESULT:0x80070057 (E_INVALIDARG)"

Not a good way to start off trying to evaluating this.  Embarrassed
  

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


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to create new sketch - E_INVALIDARG
Reply #1 - Jan 11th, 2016 at 8:19pm
Print Post  
Hi,

It's a tough one. 

The red bold text on the gallery page says to make sure you install C++ in the VS Setup.
The light bulb highlighted note on the download page says the same.

Unfortunately Arduino is C++ and the C++ option for Visual Studio is a custom tick box during install. You can add later via "Control panel>add or remove programs>visual studio>change"

I am speaking to Microsoft for a suggestion of how to better prompt the C++ installation. The error you see is a Microsoft error message outside of the Visual Micro code.
  
Back to top
IP Logged
 
MichaelInNC
Newbies
*
Offline


Posts: 3
Joined: Jan 11th, 2016
Re: Unable to create new sketch - E_INVALIDARG
Reply #2 - Jan 12th, 2016 at 1:00pm
Print Post  
I wasn't sure if you were being sarcastic. lol

Anyway I installed it on my PC at home with Windows 10 and it works fine.   It's my PC at work with Win 7 Pro that's the problem.  I tried to use Change and for whatever reason doesn't give me the option to change what's installed.  So I'm just going to remove it and start over and see.
  
Back to top
 
IP Logged
 
MichaelInNC
Newbies
*
Offline


Posts: 3
Joined: Jan 11th, 2016
Re: Unable to create new sketch - E_INVALIDARG
Reply #3 - Jan 12th, 2016 at 5:02pm
Print Post  
I fixed it.  On Win 7 Pro it didn't let me do the change through Control Panel.  I had to download the file again and when I ran it I had the option to Modify.  I had to go in there and enable C++.   So both machines are working now.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint