skip to Main Content

Visual Studio Code – error C2440: initialization: unable to convert "const char [10]" to "LPSTR"

I have this code: MyService: #define _CRT_SECURE_NO_WARNINGS #include <windows.h> #include <stdio.h> #define PIPE_NAME TEXT("\\.\pipe\MyNamedPipe") SERVICE_STATUS_HANDLE g_ServiceStatusHandle = NULL; SERVICE_STATUS g_ServiceStatus = { 0 }; HANDLE g_hStopEvent = NULL; void WINAPI ServiceMain(DWORD argc, LPTSTR* argv); void WINAPI ServiceCtrlHandler(DWORD CtrlCode); void ReportServiceStatus(DWORD…

VIEW QUESTION

Iterate through JSON Dictionary using C#

I want to iterate through a JSON file of this kind, using C#, and compare if the response is the same as the expected response. Json file: { "request": "AAA", "response": "BBB", "expected_response": "BBB" }{ "request": "CCC", "response": "DDD", "expected_response":…

VIEW QUESTION
Back To Top
Search