Anonymous » 06 мар 2024, 05:42
Последнее сообщение Anonymous «
Anonymous »
Consider a Base class and a derived class that inherits from it called Child. Assume the Base class has a member function declared virtual, and that Child overrides that function. I would like to declare a variable as a Base class object, initialize...
Anonymous » 06 мар 2024, 05:33
Последнее сообщение Anonymous «
Anonymous »
I'm having a problem with the RMB Context menus, In my main frame I have a grid control with the RMB context menu event. The shortcut keys appear correctly. See Copy for Ctrl + C,Paste for Ctrl + V, etc...
Anonymous » 06 мар 2024, 05:20
Последнее сообщение Anonymous «
Anonymous »
I am trying to understand a C++ OpenGL project (github/XCSoar) using VSCode on a Debian Linux box (don't think that is significant, but...). I have noticed that the 'active/inactive' code block highlighting is wrong sometimes, and it really screws...
Anonymous » 05 мар 2024, 09:47
Последнее сообщение Anonymous «
Anonymous »
I have no issues reading file paths with ASCII characters but have issues reading file paths with Unicode characters. I have tried to ensure that the code is correctly encoded to support unicode characters but it still doesnt work. How do i read the...
Anonymous » 05 мар 2024, 09:46
Последнее сообщение Anonymous «
Anonymous »
I have a non-template class (Uart) and want to create template constructor. It needs to take another template class object (SafeQueue). Then this constructor will call another template function defined inside the class.
Anonymous » 05 мар 2024, 09:33
Последнее сообщение Anonymous «
Anonymous »
Compiling the following code gives the error message: type illegal.
int main() { // Compilation error - switch expression of type illegal switch(std::string( raj )) { case sda : } } You cannot use string in either switch or case. Why? Is there any...
Anonymous » 05 мар 2024, 09:08
Последнее сообщение Anonymous «
Anonymous »
I have a complex cc_test which has tons of args and envs specified in the rules:
cc_test( name= my_test , args= , env= {...tons of envs...}, ) Now I want to run it locally by running ./bazel-bin/my_test, so that I can use GDB to debug it.
Anonymous » 05 мар 2024, 09:07
Последнее сообщение Anonymous «
Anonymous »
env: I use vscode ssh remote plug-in link ubuntu20.04(it run in orangepi3b, I don't know if that's the problem.) question:
1.1 when I ctrl + mouse leftclick, after clicking open() function is not into usr/include/fcntl.h function declaration, but...
Anonymous » 05 мар 2024, 08:59
Последнее сообщение Anonymous «
Anonymous »
I working on my game engine with both support of Windows and Linux. And for Linux i added support for Xlib and XCB libraries that help me to create window and handling events in it. With Xlib all working good, but when i turn off vsync in XCB and...
Anonymous » 05 мар 2024, 08:52
Последнее сообщение Anonymous «
Anonymous »
Please let me know if my answers are good. I think I have an issue with the two while loops for number 2. I know how to do it in one while loop, but not two while loops for question 2.
Write C++ code to copy elements from an old queue to new queue...
Anonymous » 05 мар 2024, 08:47
Последнее сообщение Anonymous «
Anonymous »
I'm executing this function to push to a specific location of a vector a new pair of objects. But as soon the program tries to execute the push_back (emplace_back) function. The program gets stuck and I get it returns without any clear errors:...
Anonymous » 05 мар 2024, 08:42
Последнее сообщение Anonymous «
Anonymous »
In my code base there is code like the example below. A stringstream is used to collect output and later, if there have been things written to the stream these things are written to another stream. To check if there are things on the collecting...
Anonymous » 05 мар 2024, 08:19
Последнее сообщение Anonymous «
Anonymous »
I try to create a small app based on Vulkan v1.3.275.0 (and MoltenVK driver for macOS).
I successfully bundle my app into *.app with recommended Vulkan structure for macOS. My app opens a window using metal-cpp library and creates a Vulkan...
Anonymous » 05 мар 2024, 08:14
Последнее сообщение Anonymous «
Anonymous »
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...
Anonymous » 05 мар 2024, 07:48
Последнее сообщение Anonymous «
Anonymous »
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......
Anonymous » 05 мар 2024, 06:31
Последнее сообщение Anonymous «
Anonymous »
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:
Anonymous » 05 мар 2024, 06:25
Последнее сообщение Anonymous «
Anonymous »
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.
Anonymous » 05 мар 2024, 06:11
Последнее сообщение Anonymous «
Anonymous »
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:
Anonymous » 05 мар 2024, 05:45
Последнее сообщение Anonymous «
Anonymous »
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.
Вы можете начинать темы Вы можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы можете добавлять вложения