Using Winprop API in Visual Studio

AAU
AAU New Altair Community Member
edited October 2020 in Community Q&A

Hi,

 

I am trying to run the indoor_propagation.cpp example on Visual Studio. I have used cmake for creating the VS project but when I try to just run the example, I get the following error:

 

image.png.7f96d40fb201dff19f0a5ec5a59e6cac.png

 

Is there any step I am skipping?

 

Thanks in advance.

Tagged:

Answers

  • Reiner_Hoppe
    Reiner_Hoppe Altair Community Member
    edited November 2019

    Hi,

     

    often the files on the C drive are protected, so you should either install the WinProp API package on the D drive or run Visual Studio as administrator.

  • AAU
    AAU New Altair Community Member
    edited November 2019

    Yes, I was aware of that and I tried as administrator. However the problem persists.

  • AAU
    AAU New Altair Community Member
    edited November 2019

    I got the solution. The problem was it must be specified 'set up as startup project' in the actual project. By default is placed on 'ALL_BUILD' which is incorrect.

  • AAU
    AAU New Altair Community Member
    edited November 2019

    Now this is the problem that I have:

     

    image.png.eace1791c151cbc4c880e3af8b7e9399.png

  • AAU
    AAU New Altair Community Member
    edited November 2019

    Problem solved. In case someone is interested:

     

    When I installed the Feko + Winprop software I pointed the environment variable to the license server. However, when using the API you need to configure it as a Windows enviroment variable to make it work.