visual-studio

VS2019 step-by-step debugging skips loop iterations

Created a simple code with a loop on Visual Studio 2019: #include <iostream> using namespace std; int main() { i ... with no gaps like the one described? P.S. F9 does not help, it goes into the instruction itself, as, in fact, it should be.

STL C++Iterators

Hello! Please tell me if it is possible to store iterators from vector for a long time, for example, so that it can be derefe ... о листинга cout << *b[*it] << endl; } Instead of char*, the program with the error has a different structure.

Code highlighting in Visual studio 2017 works intermittently for #defines written in the included files

I write a program in C++ using WinSock2. This library contains a number of constants and macros created with #define. While w ... ght. Even if all constants and macros are underlined in red, the project is built without problems and it works as it should.

Remote debugging in Visual Studio

Good day, forum members! I describe the situation. There is an operating system Windows 8.1. It is running Visual Studio Ulti ... bugging. Please write detailed instructions on how to do this to do. Thank you very much in advance to everyone who responds.

The difference between a text-based MD5 hash sum and a file-based hash sum

There is a program whose essence is to accept an HTTP request with a file and in the response you need to send an MD5 hash am ... he amount from the file. I check it in Notepad++. Help teach the Windows service build to calculate a hash based on the text

Visual Studio 2012 Encoding

I'm building a project that contains an error. Instead of the error description, it appears: 1>MSVCRTD.lib(crtexe.obj) : e ... ЁрчЁх°хээ√ї тэх°эшї ¤ыхьхэЄют: 1 What can it be, how can I configure it (so that the encoding is normal English or Russian)?

Reading a binary file in C

The file contains a structure in binary form, first there is an array of char(word), then a number, and all this is repeated ... strlen(st[i].nam), fp); fread(&(st[i].count), sizeof(int), 1, fp); } fclose(fp);

How to skip/jump to the end of a line when reading a C++file

There is a file with the text. The program reads everything by character. If it finds, for example, a letter from the English ... ищет англ символы. if (eror) { // если функция нашла то... ПЕРЕЙТИ НА СЛЕДУЮЩУЮ СТРОКУ } } }

I can't run the code on Go via cmd.exe on Windows 10

The other day, I, a novice, installed Windows 10 Go version 1.13.4. Everything seems to be installed correctly, and GOPATH wa ... go-build464688474\b001\exe\hello.exe" "- o " is not an internal or external command executed by a program or a batch file.

Creating a C++graphical application

I write programs for uni, I always made do with the console, and then I needed to make a program that displays the Cartesian ... est way to implement this. I think the simplest is Visual C++ and the CLR in Visual studio, but maybe there is a simpler one?

Why does the std::unique ptr constructor swear when creating a class member variable that a type specifier is required

If you use a constructor for a smart pointer that accepts a pointer to a variable, then everything works fine in the main cod ... ~B() { std::cout << "B destroyed\n"; } }; int main() { std::unique_ptr<A> a(new A);//Works return 0; }

string with double quotes in multiple lines?

Visual Studio 2019 There is data { "product": "oil", "price": 544.13 } string json = "{\"product\": \"oil\", \n \"pric ... Need: string json1 = @"{"product": "oil", "price": 544.13, "volume":11 }"; \" - не помогает

c++ Windows Forms.How to write a button click handler basically файле.срр?

Created a visual studio c++ clr project (test5).When you double-click on the button, the click handler is created in the head ... Application::SetCompatibleTextRenderingDefault(false); test5::MyForm form; Application::Run(%form); }

Unable to find the compiler executable csc.exe

Visual Studio 2019 development environment, C# language, .NET Framework v4. 7. 2. I am trying to compile a simple code that s ... Console.WriteLine("ERROR {0}", err.ErrorText); } Console.ReadKey(); } } }

How to view values from std::vector in the Visual Studio 2019 debugger?

There is the simplest code: #include <iostream> #include <vector> int main() { std::vector<int> v {0, ... , and how do I make it display useful information to me, and not the details of the internal implementation of the container?

Service for getting the name of a locality by its coordinates

There is a longitude and latitude, tell me the most convenient service, so that in the end I get the name of the locality of ... e for Windows Phone. the service was convenient for this purpose http://msrmaps.com/terraservice2.asmx but it doesn't work :(

CMakeLists.txt | Help compile the c++source code

There are source codes, as I understand it, in C++ https://github.com/fossephate/JoyCon-Driver I want to build an "exe-shnik" ... were specified in some other way. If anyone understands, please help me, how to fill in this file so that the program starts?

Visual Studio 2012 compiling C / C++ files from the console

How can I compile a C / C++ file in Windows 8 using VS2012 from the console? For example, this: // main.cpp #include <iost ... 1.0\VC\bin run file vcvars32. bat Then use: cl main.cpp All sorts of keys for compilers: Compiler Options Listed by Category

How do I install Microsoft Visual Installer that doesn't install?

I have this situation. Windows 7 x64 sp1, no updates. I tried to install VS17 and VS19. I run the installer vs_Community.exe, ... o Installer window opens, which says that you have nothing installed and offers to download the file again vs_Community.exe.

Error when starting the debugger in Visual Studio Express 2010

I decided to learn how to write programs, downloaded textbooks, went to VSE and wrote the lines that were written in the text ... de itself #include <iostream> int main() { std::cout << "Hello, world!" << std::endl; return 0; }