Visual C++ console apps on Windows IoT with Raspberry Pi 2

NicolasR

I am just doing some first tests with applications developed with Visual Studio 2015 RC and Windows IoT on Raspberry Pi 2. For a first test I compiled C# Hello World, copied it to the PI via FTP and started it from a powershell. This worked out of the box. Then I tried the same with a Win32 console application (64-bit), also printing only Hello World. The error message I get in the powershell is:

Program 'HelloCpp.exe' failed to run: The operation completed successfully.
    + CategoryInfo          : ResourceUnavailable: (:) [],     ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

I thought, this is to be expected because I did not install the VC++ 2015 (140) runtime. I tried to install this from the powershell in silent mode like this:

.\vc_redist.x64.exe /q /norestart

but it fails with

Program 'vc_redist.x64.exe' failed to run: The specified executable is not a valid application for this OS platform..
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

My question is: is it possible (or planned) to run C++ background processes like a simple TCP server that I can develop with Visual C++?

Mark Radbourne

First of all ensure you have followed all of the steps in this page. Should the powers that be change that link again, you are looking for windowsondevices.com -> Get Started -> Set up PC. Once you have done that you should review the sample console app here.

I hope that helps.

Mark Radbourne [MSFT]

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Raspberry pi 2 IoT

From Dev

Raspberry Pi2 Windows 10 IOT core and Visual Basic 2015

From Dev

RFID RC522 Raspberry PI 2 Windows IOT

From Dev

Windows 10 IoT Raspberry Pi 2: Autostart published Application

From Dev

raspberry pi 2 windows iot remote debugger does not appear to be running

From Dev

Building DefaultApp for Raspberry PI 2 - Windows 10 IoT

From Dev

How to get the processor serial number of Raspberry PI 2 with Windows IOT

From Dev

Forgot Windows 10 IOT Password For Raspberry Pi 2

From Dev

windows IoT compatible wifi dongle not recognised on raspberry PI 2

From Dev

Saving files on Raspberry PI with Windows IoT

From Dev

Using Thermocouple with Raspberry Pi running Windows IoT

From Dev

Windows 10 UAP determine if device is IoT (e.g. Raspberry Pi 2)

From Dev

Using the Windows 10 IoT Core Raspberry Pi 2 Onboard UART for serial io?

From Dev

Run one program from another, Raspberry Pi 2 Windows 10 IoT

From Dev

How to run phone-gap application on raspberry pi 2 on Windows 10 IoT

From Dev

How to programmatically turn off/on monitor on Raspberry Pi2 with Windows 10 IoT Core

From Dev

Is it possible to connect a Windows 10 IoT UWP C# application on a Raspberry Pi 3 to a bluetooth headset?

From Dev

Create txt file on raspberry pi storage with windows 10 iot in c#

From Dev

IOT controller for Raspberry Pi

From Dev

How to turn on and off LEDs by Raspberry Pi IoT connected to Arduino with I2C on an UWP project?

From Dev

play wav file in Raspberry Pi with Windows 10 IOT Core

From Dev

Built in Bluetooth on Raspberry Pi 3 Windows IoT - adapter not found

From Dev

IoT Raspberry Pi Sensor Tag

From Dev

Windows IoT - Mongodb - Raspberry

From Dev

can I use visual studio 2013 (run on windows 8.1 ) to Create raspberry pi 2 app (RPI2 Running Windows 10 )?

From Dev

can I use visual studio 2013 (run on windows 8.1 ) to Create raspberry pi 2 app (RPI2 Running Windows 10 )?

From Dev

Windows IoT console application written in c#?

From Dev

Use opencv C++ on raspberry pi 2

From Dev

how to access image captured from webcam on raspberry pi windows 10 iot

Related Related

  1. 1

    Raspberry pi 2 IoT

  2. 2

    Raspberry Pi2 Windows 10 IOT core and Visual Basic 2015

  3. 3

    RFID RC522 Raspberry PI 2 Windows IOT

  4. 4

    Windows 10 IoT Raspberry Pi 2: Autostart published Application

  5. 5

    raspberry pi 2 windows iot remote debugger does not appear to be running

  6. 6

    Building DefaultApp for Raspberry PI 2 - Windows 10 IoT

  7. 7

    How to get the processor serial number of Raspberry PI 2 with Windows IOT

  8. 8

    Forgot Windows 10 IOT Password For Raspberry Pi 2

  9. 9

    windows IoT compatible wifi dongle not recognised on raspberry PI 2

  10. 10

    Saving files on Raspberry PI with Windows IoT

  11. 11

    Using Thermocouple with Raspberry Pi running Windows IoT

  12. 12

    Windows 10 UAP determine if device is IoT (e.g. Raspberry Pi 2)

  13. 13

    Using the Windows 10 IoT Core Raspberry Pi 2 Onboard UART for serial io?

  14. 14

    Run one program from another, Raspberry Pi 2 Windows 10 IoT

  15. 15

    How to run phone-gap application on raspberry pi 2 on Windows 10 IoT

  16. 16

    How to programmatically turn off/on monitor on Raspberry Pi2 with Windows 10 IoT Core

  17. 17

    Is it possible to connect a Windows 10 IoT UWP C# application on a Raspberry Pi 3 to a bluetooth headset?

  18. 18

    Create txt file on raspberry pi storage with windows 10 iot in c#

  19. 19

    IOT controller for Raspberry Pi

  20. 20

    How to turn on and off LEDs by Raspberry Pi IoT connected to Arduino with I2C on an UWP project?

  21. 21

    play wav file in Raspberry Pi with Windows 10 IOT Core

  22. 22

    Built in Bluetooth on Raspberry Pi 3 Windows IoT - adapter not found

  23. 23

    IoT Raspberry Pi Sensor Tag

  24. 24

    Windows IoT - Mongodb - Raspberry

  25. 25

    can I use visual studio 2013 (run on windows 8.1 ) to Create raspberry pi 2 app (RPI2 Running Windows 10 )?

  26. 26

    can I use visual studio 2013 (run on windows 8.1 ) to Create raspberry pi 2 app (RPI2 Running Windows 10 )?

  27. 27

    Windows IoT console application written in c#?

  28. 28

    Use opencv C++ on raspberry pi 2

  29. 29

    how to access image captured from webcam on raspberry pi windows 10 iot

HotTag

Archive