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

BALASUBRAMANIAN KN 40 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 !

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,525 questions
{count} votes

Accepted answer
  1. YujianYao-MSFT 4,271 Reputation points Microsoft Vendor
    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