visual-c++

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.

What is the meaning of the warning "C4996: '...': This function or variable may be unsafe"?

I use Microsoft Visual Studio, and it gives a warning C4996, for example: warning C4996: 'fopen': This function or variable ... name for this item is deprecated. Instead, use the ISO C++ conformant name: _chsize. What the hell and how to deal with it?

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.

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) { // если функция нашла то... ПЕРЕЙТИ НА СЛЕДУЮЩУЮ СТРОКУ } } }

C2440: Unable to convert const char* to PVOID

I am writing a joke program that will change the image of the desktop: An error occurred in one of the lines of code: System ... wears that it is impossible to convert const char* to PVOID. I think I missed something somewhere. What could be the problem?

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?

How to do it correctly подключать.срр modules?

There is a file core.cpp with some functions. How do I properly connect core.cpp to my project? In addition, both core.cpp an ... n module of the project contain the directive #include <windows.h>. Will this not lead to a conflict in the conclusion?

Checking for an empty character in an affine cipher

I implement an affine cipher. It is necessary that the words can be entered only without a space. But it is not possible to i ... out << "Расшифрованное сообщение: " << decryption(c) << endl; } _getch(); return 0; }

How do I delete entries from the registry?

I wrote a program in C++. It starts, respectively, from the. exe file. It is clear that the program leaves "traces" in the re ... termine what records she made, and then delete them. Sorry, I'm QUITE new to working with the registry, I would be grateful.

Read access violation at address 0x00000000

#include <iostream> #include <string> struct Auto { std::string Manufacturer; std::string TitleModel; ... exception was raised at 0x0F7AF6E0 (ucrtbased.dll) in Task2.37.exe: 0xC0000005: read access violation at address 0x00000000.

Implementation of the task using the c++stack

Task: divide the stack into 2 stacks. One has even numbers, the other has odd numbers. I got confused with the implementation ... t;< "Положили в нечётный стек:" << x << endl; }; } EvenPrint(begin1); OddPrint(begin2); }

Where to get stdafx.h in Visual Studio 2019?

Installed Visual Studio, download everything you need, started working and saw that "stdafx" is missing. Where can I find it in the public domain for download and where to throw it off later?

Connecting the. obj file VS 2017

When trying to connect .obj file error occurs LNK1107 invalid or corrupted file: cannot be read by 0xDF HLL D:\Aleksey\Learni ... ------------------------ xor eax, eax xor ebx, ebx mov ebx, mat_a ; pop ebp ret add_matrix endp end

Error - undeclared ID

When programming on C++ in Visual Studio, an error appears in the operators сout and cin. The compiler writes that these oper ... ; cin >>T; alpha = asin(g*T/2*V); cout<<"Значение угла альфа равно = "<<alpha; return 0; }

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?

Installing MSVC without Visual Studio

Is it possible to set a minimal environment for compiling with a fresh MSVC compiler (x64 msvc v19.24 or later) from the comm ... / or installing Visual Studio? If so, how? We are interested in official solutions, not user archives on file sharing sites.

tmain() why this name?

Why is this name given to VS, the executing function, in a console application?

Visual Studio does not see that I have enabled the C++20 compiler

I program quite a lot in C++ in Visual Studio, but there was a big problem: Visual Studio does not want to "see" what I have ... like to know how to fix this problem. I have Visual Studio 2019, and the compiler is exactly installed in the latest version.

How do I open a form designer in a Windows Application C++project?

Hello everyone. In general, I created a Windows Application C++project. When running without errors, a beautiful form is created. But the problem is-there is no designer, how do I create buttons, labels, etc? Screen:

Bits in C++ on the example code.

People help out there is nothing in the Internet about bits on C++, or else they are called bit fields. The code is there, bu ... ugh 32 characters) but for what. Well, in general, this fragment is generally stupid. I don't understand help me understand.