I'm working on a C++ application which uses a library written in C by another team. The writers of the library like to call exit() when errors happen, which ends the program immediately without calling the destructors of objects on the stack in the...
I am trying to call InitCommonControlsEx() in the main entry of a window program, and although I included the header and linked to the ComCtl32.Lib, for some reason the compiler underlines that function as undefined. Following is the code......
Using C++ on a Raspberry Pi 4, I'm building a single routine called monitor to watch my GPIO lines and log changes for all lines. My simple code using libgpiod:
I'm using IWICImagingFactory::CreateDecoderFromFilename() for reading only. Is there a way I can pass something like the FILE_SHARE_READ flag? The file stays open from the function call above until the program terminates.
I'm quite new to C++, and I have a question regarding a better way to write something I'm trying to do. I have a problem where I have text file where each line is and attribute of and object, structured something like this:
I have made a cpp dll which performs encryption decryption using crypto++ Library. Now I have come to know that this dll is to be used in a c program . My dll is based on x64 arch in visual studio. How do I do this use case.
my code is currently displaying voltage, temperature, and current readings worth 0 on the arduino serial monitor. whereas last month the same code could display complete values. but now the values displayed are as follows
I've attempted to make a 2D collision simulator with variable squares that should run into each other. My code is able to work in one dimension in both the x and y axis or with one square going in the x axis and one square going in the y axis....
I've been learning C++ and using the Terminal for the last couple of months. My code was compiling and running fine using g++ and C++11, but in the last couple of days it started giving errors and I have had problems compiling since. The only...
I'm working on a program for a class. The prompt is Write a program that asks the user their name and the diameter or the pizza they want, calculate the area of the pizza using PI to four decimal places (3.1415) but show the area of their Pizza to...
I have gotten to the part where i need to render numbers/symbols on the buttons and displaying them but I realize I need SDL_TTF for that, which I do not have when I downloaded SDL2
void MyGraphcisItem::updateChildItems() { QList items = this->childItems(); **updateChildItems(); } } QList items = this->childItems(); It takes too long. The more items there are, the longer it takes. Is there a way to avoid it? Actually, I wonder...
there is a code as below in the version 2.6.24 of kernel:
unsigned int __kfifo_put(struct kfifo *fifo, unsigned char *buffer, unsigned int len) { unsigned int l; len = min(len, fifo->size - fifo->in + fifo->out); /* * Ensure that we sample the...
As i said before i get an error when i run VimspectorInstall vscode-cpptools In the Screenshoot 1 I don't understand why python can't run these files and I don't know where to start. When I enter the checkhealth command I get the following.In the...
I am trying to specialize a templated function with a functional argument, but the compiler is unable to infer the proper specialization. I get compiler errors unless I am explicit about the function type.
Вы не можете начинать темы Вы не можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы не можете добавлять вложения