макросы

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.

Why do I need these macros in C in the inttypes.h header file

What these macros SCNxN and PRIxN are for. For example: #include <inttypes.h> // В функции считывания данных uint32_t code_point; fscanf(in, "%" SCNx32, &code_point); printf("%" PRIx32, code_point);

A simple macro for LibreOffice Calc (Excel). Where can I find information?

Despite the simplicity and minimalism of the task, it broke my head. There is an XLS file in which there is a table of 160,00 ... order.LeftLine = BLine oBorder.RightLine = BLine oCellRange.TableBorder = oBorder End Sub

Opening two windows in Excel at the same time

Is it possible to do something so that when you open a book, two windows with certain sheets open at once? (Is it possible to make a window open on 1\3 of the workspace) mb VBA, macros will somehow help?

TCHAR or a custom macro?

Recently I looked in the file tchar. h and saw the declared type TCHAR, which in fact does the same thing as this macro: #if ... typedef wchar_t strt; #elif typedef char strt; #endif Now I wonder whether it is worth using a macro, or a ready-made type?

C / C++, comments inside macros

Tell me, is it possible to make comments in C/C++ inside macros? And if so, then: 1) How to make comments in a trivial mul ... ..;...;...)\ {\ if (...)\ { while (...)\ { 2) How do I make comments in a multiline macro function?