Is it possible to create C++ REST api in visual Studio?

BALASUBRAMANIAN KN 45 Reputation points
2023-03-13T06:54:22.51+00:00

I'm currently using Visual Studio 2022 version to create a demo project with WMI. I just wanted to know if it is possible to create REST API for the result from WMI using C++? If possible, can you suggest the type of project template that need to be used such that the WMI code can be integrated with the REST API to get the expected output. Just incase suggest some REST API libraries for C++ that are supported by Microsoft Visual Studio.
Thanks in advance !

Developer technologies C++
{count} vote

Accepted answer
  1. YujianYao-MSFT 4,296 Reputation points Microsoft External Staff
    2023-03-14T06:03:27.9066667+00:00

    Hi BALASUBRAMANIAN KN,

    I tested the program and got the same error as you.

    My solution is as follows:

    Open the project properties, click C/C++->Language->Conformance mode, set it to NO and you could run the program.

    User's image

    RESULT:

    User's image

    Best regards,

    Elya


    If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.