Automatization of PCANView

Windows® Compatible Software for Displaying CAN Messages
Charlie
Posts: 11
Joined: Thu 7. May 2015, 16:33

Re: Automatization of PCANView

Post by Charlie » Mon 11. May 2015, 18:15

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' "

K.Wagner
Software Development
Software Development
Posts: 1080
Joined: Wed 22. Sep 2010, 13:36

Re: Automatization of PCANView

Post by K.Wagner » Tue 12. May 2015, 08:41

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?
Best regards,
Keneth

Charlie
Posts: 11
Joined: Thu 7. May 2015, 16:33

Re: Automatization of PCANView

Post by Charlie » Tue 12. May 2015, 11:09

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

K.Wagner
Software Development
Software Development
Posts: 1080
Joined: Wed 22. Sep 2010, 13:36

Re: Automatization of PCANView

Post by K.Wagner » Tue 12. May 2015, 14:03

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:
Visual C++ (MFC).zip
Modified Sample
(43.21 KiB) Downloaded 531 times
If you still experiment problems while compiling, then you need to check your system.
Best regards,
Keneth

Charlie
Posts: 11
Joined: Thu 7. May 2015, 16:33

Re: Automatization of PCANView

Post by Charlie » Tue 12. May 2015, 14:49

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 ?

Charlie
Posts: 11
Joined: Thu 7. May 2015, 16:33

Re: Automatization of PCANView

Post by Charlie » Wed 13. May 2015, 12:11

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.

K.Wagner
Software Development
Software Development
Posts: 1080
Joined: Wed 22. Sep 2010, 13:36

Re: Automatization of PCANView

Post by K.Wagner » Wed 13. May 2015, 12:38

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.
Best regards,
Keneth

Charlie
Posts: 11
Joined: Thu 7. May 2015, 16:33

Re: Automatization of PCANView

Post by Charlie » Wed 13. May 2015, 16:09

OK
Thanks a lot

Post Reply