Alternatives for the application to make it as a packaged application?
Hi, I am currently building a WinUI3 C++ application using Windows App SDK. But currently the application is unpackaged mode. I am currently thinking to shift to packaged mode as it is recommended by the Microsoft currently I have tried the sample…
Is the Visual C++6 free to use in enterprises ?
Hello Team, Do I understand correctly that Visual C++ 6 is free to use in enterprises? (I saw redistributable version is okay to use in enterprises. But I can't see the redistributable version of Visual C++ 6.0 in the MS website.) Thank you.
Is there any way to disable loading of satellite DLLs for MFC programs?
According to this help page, any application or DLL created with MFC will attempt to load localized resources from satellite DLLs such as exampleENU.dll or exampleLOC.dll. We have built a legacy application using MFC, but we do not use this particular…
How to fix app crash under Win11 in coremassaging.dll
Hello, I have created an application that displays 3D objects (step, iv, wrl, …). However the program crashes reproducibly, and the cause cannot be identified. Now it is unfortunately so that when debugging (Visual Studio debugger, Remote debugging,…
How to use C++/WinRt API like as part of DLL without user interface(UI)
Hi, I am attempting to utilize the C++/WinRT code provided in the sample of LampArray, cppwinrt to create a DLL. However due to the tight coupling of this sample with the UI, I am not able to use below API independently within my DLL code, without…
Windbg shows info dialog that it cannot open MFC code from devdiv.visualstudio.com
Windbg show this info dialog with below message when single stepping through MFC code: The file…
How to fix error MSB4057 The target "ComputeLinkImportLibraryOutputsForClean" does not exist in the project
I am trying to make a game and everytime I build my solution this error pops up I am using the following NuGet Packages SDL SDL_image.h SOIL Box2D OpenAL.Soft GLM Boost I am also using the following libraries cpptoml FastNoiseLite ImGUI
Launching Windows Applications using Voice Assistants
Is there an alternative to Cortana on Windows that I can use to launch my applications using a voice command like "Open Abc App"? I have come across an application named "Voice Access," but I can't find any documentation on how to use…
Issues with afxres.rc
I have some MFC projects that have worked for many years, but suddenly I can no longer access resources from afxres.rc in any of them. For example, here's a simple test: CBitmap bitmap; BOOL success = bitmap.LoadBitmap(AFX_IDB_CHECKLISTBOX_95); assert(…
Unknown error with WinBioEnrollCommit function in windows biometric framework
I am using the Windows Biometric Framework API and have encountered an error.I followed the onInstall() and onAdd() functions in tutorial #1, and then called the onEnrollOrPractice() function in tutorial #2. …
OLEDB stopped working after October updates including current SQL Server update
I have been using the same OLE_DB code via ATL classes for accessing SQL Server for several years. It worked without issue until the October updates. After the last update it now fails with an internal assert (from atldbcli.h) ATLASSUME(m_pAccessor !=…
Tried to resize the image but got an error?
Hi, I'm using the following code to resize this attach image but the output always changes color. cv::Mat dat= cv::imread(path, IMREAD_UNCHANGED); cv::Mat dst; cv::resize(dat, dst, cv::Size(), 0.6, 0.6, INTER_AREA); cv::imwrite(path, dst); I tried…
Virus error
I'm trying to run my c++ project but now after it's done building I'm getting an error that says there is a file with a virus or malware, even though I didn't create or include any new files. I also didn't make any changes to the code. I don't really…
The fwscanf_s function doesn't read properly
I have a program in C that have been working fine since I compiled it in an earlier version of Visual Express. Now that I have been compiling it in Visual Studio 2022, the fwscanf_s function doesn't work properly. It reads text and integers. The integers…
how to support Server authentication using the webservice.h win32 lib header
For the SSL communication, for the sample code which it was developed on Windows win32 – webservice.h library. with the code changes for SSL communication, we are able to establish a SSL communication(we can see SSL handshake is happening) successfully. …
Some doubts regarding after registering for WinUI3 packaged with external location app?
Hi, I was earlier creating a WinUI3 blank unpackaged app. Followed the steps here to make my solution from packaged to unpackaged application. In this project I have disabled the XAML code and created my own entry point (WinMain). Steps that I have…
I would like to make a program in which you have to guess the letters and when you guess all the letters, you have to guess the word. When I enter a wrong letter, the word "wrong" is constantly displayed on the screen.
#include <iostream> #include <windows.h> using namespace std; int main() { int i = 3; int b; char a; string c; system("cls"); int d; cout << "Choose game:" << endl << "1. Zgadnij wyraz"…
GetDateFormatEx returns a non-zero value but the buffer returned by it is faulty
This is the sample program in which "GetDateFormatEx" returns an invalid string. It is failing in customer's setup. #include <windows.h> #include <iostream> uint64_t shimTime(void) { FILETIME ts; …
Win32 Button keeps the blue border on focus lost
In a non-dialog window, is it a known bug or normal behavior that a push button keeps the blue focus border after a control in another window gets focused? I checked to see if the button receives the WM_KILLFOCUS message and yes it does. I noticed that…
bug? Please upvote- Visual Studio 2022 - ATL Add Method not generating stub function in class - fails CoCreateInstance also
Greetings, Update: Bug report link: https://developercommunity.visualstudio.com/t/ATL-support-broken-in-VS2022/10642527 I believe ATL method/property generation is broken in Visual Studio 2022. I can add methods and properties to the interface, but…