I’m making a project using OpenCV and Lua in C++. OpenCV requires x64 and when I embedded lua it started giving me linker errors(like : Error LNK2019 unresolved external symbol lua_tostring referenced in function "blah blah"). When I switch back to x86 OpenCV starts complaining and I don’t get any errors related to the linker ..
Category : architecture
I have a project, which has its own filesystem. The class basically looks like this: class ResourceManager { public: std::string readFile(std::string const&); private: std::vector<std::string> root; }; This class is used everywhere in the project. So it’s global and have a single instance. My current solution is that I create an instance in the main function ..
This question is more about application software architecture design, but links, libraries, samples of code would really help. Situation: I have my network console application (The Application) written in C++ running on 400+ PC that are distributed between several networks. Each instance of The Application is connected to bunch of instances of The Application and ..
When writing code using C, the code must include the main function. I always had a question about this. In the case of Python or JavaScript, the main function is not required. However, in the case of C, why should I include the main function? Does this improve performance? Or is it just to distinguish ..
I wonder the following code is valid, or not. In main function, the ‘testValue’ of the member on ‘testClass’ will be set. If printed by calling ‘showTestValue()’ method, the variable must be updated? Or the variable may be not updated in some cases ? #include <stdio.h> #include <stdlib.h> class testClass { public: int testValue; static ..
SYSINTERNALS Why mouse cursor disappears when typing inside notepad.exe or wordpad.exe or run.exe window? Which function/interrupt or something else is responsible for that? Typing in for example a web browser or cmd.exe does not result in cursor disappearing – why? Source: Windows Que..
I have posted some questions here before about library design in C++ and the answers helped me much with proceeding with implementation. I am currently refactoring my code and the goal is to split a single class into multiple classes handling different functionalities. Here’s some dummy code illustrating my ideas. MyLibrary.h #ifndef MYLIBRARY_H #define MYLIBRARY_H ..
Well, i have the next C++ code: #pragma once #include "position_data.hpp" #include <cstdint> enum class e_color : uint32_t { green = 0u, blue , red }; class render_data_t { }; class render_2d_data_t : public render_data_t { public: float get_local_x() const { return m_position.get_x(); } float get_local_y() const { return m_position.get_y(); } void set_local_position( float x, ..
I had an idea for a project that is similar to r/place ( If you don’t know what you’re talking about, here’s a link) Now I am interested in how to create such a service. I specifically stated in the title that the project had to be fast and cheap. What do I mean by ..
I’m looking for resources and code examples for midrange/complex embedded system architecture design. My goal is to organise a project for ARM Cortex based MCUs using C/C++, from low-level drivers up to the application level (maybe the higher level in C++?). Would be great to have an archive of code examples, how to design the ..
Recent Comments