Why PackageManager.FindPackagesForUser method not fetching all the store app details
I'm attempting to retrieve details of installed Store apps on the machine using the PackageManager class in C++/WinRT. However, I'm encountering an issue where I only receive a partial result. For example, if there are 20 Store apps installed, only 10…
How to cancel the "print preview" option in the printer preferences by coding?
I want to cancel the "print preview" option in the printer preferences by coding, maybe can use c++ windows api or C#. Then how to do it ? Thank you !
C++/CLI dll could not be loaded in WinUI3 app
When I called (i.e. instanciated) my class object (e.g. MyTest) which is declared as a managed class in my C++/CLI dll, I saw the following error: System.IO.FileNotFoundException: 'Could not load file or assembly <MyTest>' I am sure that the…
Accessing Resources in the project as a file or binary object
I am writing a C++ application that has a few binary files that it uses as resources. I have added those files to my Project's Resource Files. I need now to be able to open the file as a binary stream and read it. (it's a lbm image file) When I…
Disable windows shortcuts for high contrast and mouse keys
I need to block keyboard shortcuts "alt + shift + prtscr" and "alt + shift + numlk". How to do it with LL Keyboard hook? Help much appreciated !
cant run a different main function in c++
Hello, i have a project with 2 cpp files, the c++.cpp file and the ciclos.cpp file, c++.cpp file has a main function and ciclos.cpp file has another main function named main_2, im trying to run main_2 function in the ciclos.cpp file but visual studio…
How to add function in C++, Visual Studio Community 2022
How to add function in C++, Visual Studio Community 2022. System: Windows 11 Home
Visual C++ 2012 is out of support, but is required for Exchange 2016 - how can we remove it and still run exchange?
Visual C++ 2012 is out of support, but is required for Exchange 2016 - how can we remove it and still run exchange? We are required to uninstall any software that is no longer in support but still need to use Exchange 2016 which requires C++ 2012 - now…
cannot open include file 'new.h': no such file or directory
Hi All, I am trying to run a simple mfc demo application in visual studio 2015, but i am not able to build that one successfully. getting a error message "cannot open include file: 'new.h' : no such file or directory. can any one please…
How to implement "Spin Control" continuued
Hi, I like to press spin arrows to get “item No” show up on hStatic panel, and I get no response Obviously, I am missing a key step in my dode. I tried so many combinations of parameters with no success. I included #include <commctrl.h> …
VISUAL STUDIO 2005 future support in future Windows 11 versions
Hello This is more a question rather than an issue on Visual Studio 2005, and I don't actually know where to ask the question. We have some applications developped with Visual Studio 2005 in 32bits and we would like to know how long will they still be…
How do I fix the following errors?
I'm using the example code here, but getting errors in this area. for (i = 0; i < CPENS; i++) { phbmp[i] = CreateCompatibleBitmap( hdcMain, wLineX, wLineY); if (i == 0) { hbmpOld = SelectObject(hdcLines,…
Disable hotkey "ctrl + alt + tab"
I tried to disable the hotkey "ctrl + alt + tab" with a LL keyboard hook,but looks like this key combination cannot be intercepted by LL keyboard hook. Is there any way I can disable it with registry ?
Bad OpenGL performance under Windows 10 but not on 8.1 or 11.
With my C++ video player (mrv2), some users have reported bad performance with some NVidia graphic cards and latest drivers under Windows 10, albeit Windows 8.1 and Windows 11 do not show the issue (one user upgraded to 11 and then all worked fine under…
Control guard keys set in loadconfig but not in heaer
Hi, I am trying to enable CFG for a set of dll files. I added the /GUARD:CF to my linker. The output dll has the below in load config: Guard CF address of check-function pointer Guard CF address of dispatch-function pointer Guard CF function…
Forwarding declaration issue
I have: // a.h #pragma once class B; class A { public: void SomeMethod() const; B m_b; // on stack }; // a.cpp #include "a.h" #include "b.h" void A::SomeMethod() const { // } // b.h #pragma once #include "a.h" class…
TYPE MISMATCH(0x8002802A) error with CoCreateInstance()
Hi, When we call CoCreateInstance() , it fails with TYPE MISMATCH error in Visual Studio 2017\2019 and the below is the sample code for CoCreateInstance. CComPtr<IServer> m_pSServer; HRESULT hr = m_pSServer.CoCreateInstance(__uuidof(CServer), NULL,…
The contents of the C# MsPpt package report errors in registration-free COM.
I learned to use registration-free COM in https://learn.microsoft.com/en-us/answers/questions/1377090/calling-c-class-libraries-via-com-in-c-requires-re, but I'm found a new problem. the contents of the C# MsPpt package reported an error in…
How do I remove the warning "conversion from 'int' to 'HMENU' of greater size"?
I followed the guide on Creating, Enumerating, and Sizing Child Windows, but I'm getting a warning on this line of code: (HMENU) (int) (ID_FIRSTCHILD + i), warning C4312: 'type cast': conversion from 'int' to 'HMENU' of greater size How do I fix…
How do I manually add files to the External Dependencies folder in a VS Solution?
I can't seem to merge two Visual Studio projects, since using 'Add Existing Projects' does not include the project's solution, so I want to manually import the project. The only problem I can see myself having with this, is that I don't know how I will…