Category : visual-studio-2019

I want to send necessary query-string arguments to a Windows desktop application published in Visual Studio, via ClickOnce, to an intranet URL. That can be done by enabling URL parameters in Publish Options on the Manifests tab, and then editing the publish.htm file and appending the query-string to the the "launch" HREF there: If these ..

Read more

Below is my base class: Vehicle { protected: //members being inherited public: void getDetails(); }; This is my derived class: class Car : protected Vehicle {} now I am trying to access the public function of base class through my derived class object. according to my understanding the public functions of base class are inherited ..

Read more

I am trying to install matplotlib-cpp in my C++ environment (Visual Studio 2019) in order to do data visualization. I configured all the "include" files, "additional include" files and the "library" file to connect Visual Studio with my Python directory. I try to plot an example figure: #include "matplotlibcpp.h" namespace plt = matplotlibcpp; int main() ..

Read more

I have a python module, written in C++ by guide. The module itself works well, but I can’t debug the module, as it written in the guide. Python interpreter throws Fatal Python error: _PyInterpreterState_GET: the function must be called with the GIL held, but the GIL is released (the current Python thread state is NULL) ..

Read more

I’m writing some win32 application, like this: int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MessageBox(NULL, L"Access is denied", L"Error", MB_ICONERROR | MB_OK); return 0; } When I compile, the complier says two errors and one warning: C28251 Inconsistent annotation for ‘WinMain’: This instance has no annotations. See C:program flies(x86)windows kitsinclude.0.0.19041.0umwinbase.h(1006) LNK2019 ..

Read more

I’ve tried to set the window icon from the scripts within the stackoverflow questions below, but nothing did work to my solution GLFW SetWindowIcon https://docs.microsoft.com/en-us/windows/win32/menurc/using-icons My entire main.cpp from my solution: #include "imgui/imgui.h" #include "imgui/imgui_impl_glfw.h" #include "imgui/imgui_impl_opengl3.h" #include <string> #include <iostream> #include <glad/glad.h> #include <GLFW/glfw3.h> #include <Windows.h> #include <WinUser.h> #include <WinNls32.h> int main() { // ..

Read more