I am trying to port a C++ library with a C calling convention to C#.
The project is at
I am trying to port the sample C++ application and use the .DLL from the Lepcc C++ project.
I am getting an access violation (memory corrupt) when the...
I have a Qt application which uses pybind to embed python plugins providing some kind of handlers. From what I have read online gluing the event loops is nearly impossible. Now I wonder if it is possible to run an asyncio event loop in a c++...
I want to inherit from a template class with a type defined in the derived class. I dont want to use composition because if I do so, I have to give public access to the vector or write some methods for each object in order to interact with the...
please ignore my bad coding practice i cant for the life of me figure out how classes in C work nevermind in visual studio as before this i only coded in java in eclipse XD
but here is my messy code
#include
#include
#include
#include
#include...
I'm trying to optimize my 3D rendering OpenCL code. Currently, I render a 3D triangle by dividing its bounding box into 2x2 tiles and doing necessary computations for each pixel inside the tile. This turned out to be slightly faster than giving each...
I have downloaded and extracted the latest opencv-4.9.0 and installed latest code blocks-20.03.
When I tried to use the opencv functions like waitKey(), imread, imshow() to load an image and to display, after including the paths in the build...
I'm new to asio and was follwing a tutorial. After sending a pretty basic http get request to example.com there is no response.
#include
#include
#include
#include
#define ASIO_STANDALONE
int main(){
asio::error_code ec;
asio::io_context...
I am new to both visual studio 2019 and github. I am attempting to obtain a code from the github cloud and run it on my laptop.
Currently I have been able to clone the github repo for the source code and create a new branch. However the github repo...
I recently discovered the ranges stdandard library and encountered a strange behavior. When chaining multiple range adaptors, I can't chain after using std::ranges::views::join :
vec | std::ranges::views::slide(2) | std::ranges::views::join
works...
With respect to the following code:
static constexpr auto v = {0, 1, 2, 3, 4, 5};
for (int n : v | std::views::drop_while([](int i) { return i < 3; }))
std::cout
I've always been amazed at how much much much faster things become if you manage to rewrite code that loops though your ndarray and does something, with numpy functions that work on the whole array at once. I'm looking for something similar in node....
I'm struggling to use isio::strand on coroutine.
I need to send request to a server which is mainly asynchronous, for each request I send I would like to wait to receive the ACK before performing the next request.
I have tested the following...
I would like to optimize this cycle because my performance are so bad. For each iteration I call the kernel that just separate nodes in two lists, the list that contain the nodes that have at least an edge pointing to the list of current leaves, and...
Should a class with its ctor =delete d be prefered if all its functions and variables are public and static , or should this be made as a namespace instead? Which, in terms of the following code, should A or B be preferred?
// Snippet A
class Foo...
i am solving a leetcode problem, where two sorted linked lists are given and we have to merge them and return a sorted list. I have not yet learned merge sort, and tried this question with brute force approach. I want to know why am i getting...
Was studying C++ when this answer came across. It suggests a class with purely static members with instantiation intentionally disabled.
But if the class shall not be instantiated, is there a reason namespace is not used instead? And if so or not,...
I have two classes: a Parent class and a Child class (inheriting from the Parent class). I would like to know if it is possible to cast/transform a Child** to a Parent** with reinterpret_cast or something else. Is such a thing possible?
Below is a...
I'm trying to optimize my 3D rendering OpenCL code. Currently, I render a 3D triangle by dividing its bounding box into 2x2 tiles and doing necessary computations for each pixel inside the tile. This turned out to be slightly faster than giving each...
Is it possible to create an ImGui screen without a background or window?
It would just be the ImGui window that can be dragged across the screen.
It would looks something like this, but instead of a blue background, you'd just see the application...
so I'm trying to compile a project of OpenFrameworks v11.2 with VS Community 2017, and I get the next error:
clientcore\windows\advcore\ctf\uim\tim.cpp(800)\MSCTF.dll!7613246A: (caller: 7612DC20) LogHr(1) tid(2818) 8007029C An assertion failure has...
I would like to have objects add a pointer pointing to themselves into a map which is a member of another class.
Here is what I have so far:
//entitymanager.h
//inside the public part of the entitymanager class
std::map AllMapEntities;
I just started learning qt widgets and C++ in general, so I don't understand a lot. I created a regular project, made a full-screen view, created a scene inside it, and set a square inside the scene. I wanted to set view, scene, rect to different...
Вы не можете начинать темы Вы не можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы не можете добавлять вложения