Upload files to Azure using a custom client
Hello, we are facing an issue uploading files to Azure using a custom client using azure-storage-cpplite which was developed years ago. We are currently in the process of renewing the api but for now we need a way to work around that. The current file…
Error in Visual Studio 2022 and C++: "The Document cannot be opened. It has been renamed, deleted or removed."
I ran into this problem building a project in Visual Studio 2019. I think it also happens in the 2022 version. Regardless of the version I searched all over Google with my Google-fu skills and I haven't found any answers. I have a C++ project. Its a…
How to cope with Microsoft's design flaw of the MFT_MESSAGE_NOTIFY_END_OF_STREAM message, when using the standard media session pipeline with multiple input MFTs ?
Hello! I dont know if this is the right place to ask the following question. But since the MSDN was shutdown by MIcrosoft a few years ago this seems to be the only place. And i will not ask it on Stackoverflow, as i would propably be the best candidate…
Compatibility Issues with SQLClient Libraries After Migrating to .NET 6 from .NET Framework 4.8
I've encountered issues with Microsoft sqlclient packages after upgrading a set of C# projects from .NET Framework 4.8 to .NET 6.0. The setup consists of a primary C# calculator application, a C# bridge for external integration, and a C++/CLI wrapper.…
Compatibility Issues with DataClient Libraries After Migrating to .NET 6 from .NET Framework 4.8
I'm reaching out for insights into an issue I've encountered after upgrading a set of C# projects from .NET Framework 4.8 to .NET 6.0. The setup consists of a primary C# calculator application, a C# bridge for external integration, and a C++/CLI wrapper.…
How to fix LNK2019 error
I have a desktop program in C that was formerly compiled in Visual Express some years ago, and it worked fine. Then I updated to Visual Studio 2022 to do some minor changes in the source code, and now I get the error LNK2019 and LNK2020.…
Create a traditional Windows Desktop application (C++)
Hello ! "I have Visual Studio 2022 and have followed the instructions for creating a traditional Windows Desktop application (C++) available on the page…
NVMe Sanitize call returns unexpected error 0x13D
Hi, I'm trying to send NVME Sanitize/BlockErase command to NVMe disk which supports that. This shall be available on regular Win11 OS and I'm running 10.0.22000.1098 (10.0.22000.1042 StorNvm driver). I'm receiving absurd last error after…
C++, MFC Version 6, ComboBox - Font
Hello! I need to modify an old application. The ComboBox should get the Courier font. How can I achieve this? The developer at the time used it at runtime to create the combobox. Can anyone give me some tips? Is not easy, I know. I have googled without…
When this call AddPackageByUriAsync could fail?
Hi, I am trying to create an application in the mode of 'package with external location'. Now if we go via this mode, we need to fetch the package identity during runtime, right? So, the API that has been provided is AddPackageByUriAsync . I am…
InternetSetOption not work on windows 10 2004
static BOOL SetSystemProxyPacUrl( wchar_t* proxy_full_addr) { INTERNET_PER_CONN_OPTION_LISTW list; BOOL bReturn; DWORD dwBufSize = sizeof(list); // Fill out list struct. list.dwSize = sizeof(list); // Set three options. …
Runtime Dynamic linking a Dll for a class defined in dll
Hi, I am trying to export a class defined in dll. After following msdn example for exporting a "function" in dll, i compiled and used that code but so far i am clueless about how to export a class defined in dll. Kindly tell me how we can…
Need help with writing progress bar dialog, with smooth marquee, on one thread
Hi - my Win32, MFC, Visual C++ application frequently has to perform operations which can take a long time. I want the user to be able to see a progress dialog with a marquee and a Cancel button while these are happening. I would like the marquee to…
Would calling RIOReceive() on a closed socket potentially cause a crash?
Hello, I would like to inquire about a crash that occurred when calling the RIOReceive() function. Please understand that the sentences may be strange because I used a translator. What happens is that thread A performs closesocket(sock) on the previously…
Porting DirectX 9 to latest version
Iam porting an existing project with DirectX 9, Is DirectX 11 or 12 should be considered for this subject Kindly advice.
Return/Enter
I have made a small windows program that saves names to a text file. Everything works with a button, but how can the names be registered if you just want to press Return/Enter after writing the names? The code is: #include <windows.h> #include…
"Unresolved external "int __cdecl invoke_main(void)" after VS2017 15.6.1 update" -- Part 2
I am porting a number of mature Win32 apps developed using VS 2015 under Windows 7 Professional to be built using VS 2019 under Windows 10 . Some edits to the original source and heading files are necessary to accommodate VS 2019 idiosyncrasies. I have…
Select MSVC build tools version with Visual Studio's CMake / CMakeSettings.json
Hi, I'm using Visual Studio's C++ CMake functionality, i.e. "File -> Open -> CMakeLists.txt". I'm on the latest VS 2022 17.9.5. I'd like to specify an exact MSVC build tools version to use, for example MSVC 14.29, 14.30 or 14.39…
Why does Microsoft's code examples have errors, and how do I fix these?
The code examples on this page all seem to have errors, some of which I don't have a clue how to fix. How do I fix the following: code: hResult = StringCchLength(pmyitem->psz, STRSAFE_MAX_CCH, pcch); error: argument of type "LPSTR"is…
C++ RealTimeStylus is dead and doesn't handle any touch messages
After some testing, I found that the RTS touch library on win7sp1 systems has a probability of triggering an error: RealTimeStylus does not trigger, i.e. it does not trigger the touch callback class even if there is a touch point that has been pressed on…