Automatization of PCANView
Re: Automatization of PCANView
Hello again,
Sorry but all the Visual Studio Standard or Professional installers I've found get the same error:
"Impossible to locate package source"
I tried to use Microsoft Visual C++ 2010 Express that was already installed on my computer.
But I guess this does not include MFC : "Impossible to open file : 'afxwin.h' "
Sorry but all the Visual Studio Standard or Professional installers I've found get the same error:
"Impossible to locate package source"
I tried to use Microsoft Visual C++ 2010 Express that was already installed on my computer.
But I guess this does not include MFC : "Impossible to open file : 'afxwin.h' "
Re: Automatization of PCANView
Hello,
afxwin.h is MFC and MFC is not included in the free version of VC++ (Express Edition). As I wrote in my last post (list of compilers), the MFC example doesn't work with Express versions of VS.
I have just tested to open the project witn VS2008, VS2010, and VS2012, and in all of them it compiles.
The VS Setups generally let you configure the installation in a very detailed way. Maybe you have missed to select MFC?
afxwin.h is MFC and MFC is not included in the free version of VC++ (Express Edition). As I wrote in my last post (list of compilers), the MFC example doesn't work with Express versions of VS.
I have just tested to open the project witn VS2008, VS2010, and VS2012, and in all of them it compiles.
The VS Setups generally let you configure the installation in a very detailed way. Maybe you have missed to select MFC?
Best regards,
Keneth
Keneth
Re: Automatization of PCANView
Hello,
Thanks Keneth
I've downloaded several VS Setups yesterday, and all of them failed on the first step: "unable to locate package source"
Could you please have a link to a VS2008/2010/2012 setup that happen to work? or is it something I must work out on my computer first.
The deadline for my project is today; if I could make it work, that would be great. Thanks again
Thanks Keneth
I've downloaded several VS Setups yesterday, and all of them failed on the first step: "unable to locate package source"
Could you please have a link to a VS2008/2010/2012 setup that happen to work? or is it something I must work out on my computer first.
The deadline for my project is today; if I could make it work, that would be great. Thanks again
Re: Automatization of PCANView
Hello,
I have checked in the internet and it looks like new versions of VS (2013, 2015) have depreciated the use of Multi-Char. So in order to compile the project one have to download an extra package, use another compiler (2012, 2010, 2008), or modify the project to use Unicode instead of multi-char.
I have donwloaded and installed Visual Studio 2013, "Professional Edition with Update 4" from here: https://www.visualstudio.com/en-us/down ... io-vs.aspx.
Indeed, the compiler complained about multi-char. After some minimal modifications (setting the project to use Unicode, changing texts to unicode texts) the project compiled. Here the result: If you still experiment problems while compiling, then you need to check your system.
I have checked in the internet and it looks like new versions of VS (2013, 2015) have depreciated the use of Multi-Char. So in order to compile the project one have to download an extra package, use another compiler (2012, 2010, 2008), or modify the project to use Unicode instead of multi-char.
I have donwloaded and installed Visual Studio 2013, "Professional Edition with Update 4" from here: https://www.visualstudio.com/en-us/down ... io-vs.aspx.
Indeed, the compiler complained about multi-char. After some minimal modifications (setting the project to use Unicode, changing texts to unicode texts) the project compiled. Here the result: If you still experiment problems while compiling, then you need to check your system.
Best regards,
Keneth
Keneth
Re: Automatization of PCANView
Hello
Thanks a lot
I'm currently installing VS 2010 Professional from the ISO image from this link: http://stackoverflow.com/questions/8894 ... rsion-link
If it fails, I will download VC2013 from your link. What installer did you download: online installer/installer/ISO image ?
Thanks a lot
I'm currently installing VS 2010 Professional from the ISO image from this link: http://stackoverflow.com/questions/8894 ... rsion-link
If it fails, I will download VC2013 from your link. What installer did you download: online installer/installer/ISO image ?
Re: Automatization of PCANView
Hello
I finally succeeded in installing Visual Studio 2010.
The Demo.api project compiled
However the projects DemoCyclicMsg & DemoGW006 get this error during build:
1>c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\atlcore.h(35): fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value 0x0501 or higher is recommended.
I finally succeeded in installing Visual Studio 2010.
The Demo.api project compiled

However the projects DemoCyclicMsg & DemoGW006 get this error during build:
1>c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\atlcore.h(35): fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value 0x0501 or higher is recommended.
Re: Automatization of PCANView
Hello,
both projects, the normal example and the one compiled for VS2013 (the attached in this forum) are compatible with VS2010. Unfortunatelly we can not give support in using Visual studio. In addition to this, the examples you mention are unknown for us.
Refer to the Visual studio help or microsoft forum to get more information about your problem.
both projects, the normal example and the one compiled for VS2013 (the attached in this forum) are compatible with VS2010. Unfortunatelly we can not give support in using Visual studio. In addition to this, the examples you mention are unknown for us.
Refer to the Visual studio help or microsoft forum to get more information about your problem.
Best regards,
Keneth
Keneth