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 Create new project - Exception from HRESULT: 0x80070057(E_INVALIDARG) (Read 6632 times)
Harvey_Lab
Newbies
*
Offline


Posts: 8
Joined: Aug 24th, 2014
Create new project - Exception from HRESULT: 0x80070057(E_INVALIDARG)
Feb 27th, 2016 at 7:23pm
Print Post  
Hi All,

I have started to use Microsoft Visual Studio (Community 2015) in conjunction with Visual Micro and trying to create a new project.
During the naming process, I name it say: test
I get the following msg
Unable to create new sketch
The parameter is incorrect
(Exception from HRESULT: 0x80070057(E_INVALIDARG)

What am I doing wrong?
I would be grateful if you could help
Thank you
« Last Edit: Feb 27th, 2016 at 7:26pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12192
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Create new project - Exception from HRESULT: 0x80070057(E_INVALIDARG)
Reply #1 - Feb 27th, 2016 at 7:25pm
Print Post  
Hi,

That's a vs internal error. You just need to install the c++ option for Visual studio.

Install C++ for Visual Studio as follows: -

Control panel>add or remove programs>visual studio>change>custom>c++
« Last Edit: Feb 27th, 2016 at 7:27pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Harvey_Lab
Newbies
*
Offline


Posts: 8
Joined: Aug 24th, 2014
Re: Create new project - Exception from HRESULT: 0x80070057(E_INVALIDARG)
Reply #2 - Feb 27th, 2016 at 10:26pm
Print Post  
Hi Tim,
Thank yo for the prompt reply
There is a bit of difference in that after CHANGE
I get the Visual Studio Community 2015 panel
which offers the following 
MODIFY REPAIR UNINSTALL
The most promising was  MODIFY
and again the most attractive option was
PROGRAMMING LANGUAGES
and the most promising one was Visual C++ there was no C++
Is this the one, I did not proceed
Thank you
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12192
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Create new project - Exception from HRESULT: 0x80070057(E_INVALIDARG)
Reply #3 - Feb 27th, 2016 at 10:30pm
Print Post  
That sounds right. Thanks
  
Back to top
IP Logged
 
Harvey_Lab
Newbies
*
Offline


Posts: 8
Joined: Aug 24th, 2014
Re: Create new project - Exception from HRESULT: 0x80070057(E_INVALIDARG)
Reply #4 - Feb 28th, 2016 at 9:27am
Print Post  
Hi Tim,
Visual C++ selected work fine.
Thanks for help

  
Back to top
 
IP Logged
 
Vince Pa
Newbies
*
Offline


Posts: 2
Joined: Jul 8th, 2018
Re: Create new project - Exception from HRESULT: 0x80070057(E_INVALIDARG)
Reply #5 - Jul 8th, 2018 at 6:54am
Print Post  
With the recent verison of Visual Studio, it's almost impossible to know what "Install C++ for Visual Studio" means as there are multiple packages under different names.

After some messing around, I found out that the package you need to install for visual studio 2017 is called "VC++ 2017 version 15.x v14.x latest". You can find it in the "Individual components" section of the Installer.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12192
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Create new project - Exception from HRESULT: 0x80070057(E_INVALIDARG)
Reply #6 - Jul 8th, 2018 at 1:24pm
Print Post  
update:

Visual Micro has always needed C++ but not a specific version. We had to set a specific version in recent updates because of a Microsoft bug in the latest Vs2017 preview. Thankfully it is a bug and not a design change. Microsoft have since reported the bug will be fixed for the next release.

There is an updated Visual Micro in the gallery 1807.8 which reverts to the previous "use any" c++ platform setting for new projects.

Thanks for the report.

tip: It is recommended to install C++ for VS 2017 as follows:-
« Last Edit: Jul 8th, 2018 at 10:23pm by Tim@Visual Micro »  

Please Register or Login to the Forum to see File Attachments
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint