GUI application Execution fails after porting an application from VS2015 to VS2022.
There is a GUI Application that is based on C++ that we are trying to update from VS2015 to VS2022. The application after the upgrade is not functioning as expected. The executable does not even open although the build is successful. In VS2015 though,…
Why do I have problems when trying to import a header unit?
I used VS Developer PowerShell to create a header unit file from a header file. cl /std:c++20 /exportHeader /headerName:quote HeadersBase.h Not sure if that was the right thing to do. Then I created an empty project to see if I can import the header unit…
SQLBindParameter/SQLExecute returns SQL_NO_DATA on second iteration
Hi, ALL, I'm trying to run the following scenario: std::wstring query = L"INSERT INTO abcattbl SELECT ?, ?, (SELECT object_id FROM sys.objects o, sys.schemas s WHERE s.schema_id = o.schema_id AND o.name = ? AND s.name = ?), '', 8, 400, 'N', 0, 0,…
MS Visual Studio C2131 - expression did not evaluate to a constant - C++
Hello. I have a simple code in MS Visual Studio with C++ that aims to enter values into a two-dimensional matrix and display the entered values on the screen. When I write exactly the same code in DevC++, it works but in MS Visual Studio, it gives…
Changes in floating point calculation since Windows 24H2
Hello, Since last windows 11 update (24H2), we observe slight differences between our continuous integration (WinServer 2022 21H2) and our develpers computers regarding some of our double precision calculation. We checked iteratively versions of…
MPI fails when mixing Intel and AMD
The following code works fine with only Intel or only AMD machines. When I launch from an Intel machine, with two worker nodes. #include <iostream> #include <mpi.h> int main() { int argc = 0; MPI_Init(&argc, nullptr); const…
How to edit .rc file
Which edit IDE is recommend for .rc file https://github.com/chromiumembedded/cef ... /shared.rc Simple edits can be done by hand (it’s a text file), or use Visual Studio for more complex edits like defining dialogs, etc. See…
Quering the SQL Server return SQL_NEED_DATA
Hi, ALL, Here is what I have: I made the following query: query2 = L"INSERT INTO abcattbl SELECT ?, 'abcatcol', (SELECT object_id FROM sys.objects o, sys.schemas s WHERE s.schema_id = o.schema_id AND o.name = 'abcatcol' AND s.name = 'dbo'), …
Since Update to VS2022 17.12.3 I have many error C2471: cannot update program database
Hi, Since I've update all my build agents with Visual Studio 2022 to version 17.12.3 (instead of 17.11.4) I see a lot of my build to fail with the same error 149>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\ObjectArray.h(338,1):…
DCOM Interface Call fails with Kerberos
We try to move one of our current DCOM Applications that Impersonates a Client from NTLM over to Kerberos. So I tryed to get a minimal Example running. I Init the Server and Client as follows: CoInitializeSecurity(NULL, -1, NULL, NULL,…
I am using Qt 5.15.2 with Visual Studio Professional 2022 Version 17.12.3. I am getting below warning while opening explorer using QFileDialog. Please help me to resolve this issue.
onecoreuap\internal\shell\inc\SrcPkg\FileExplorerSessionWatcher\inc\FileExplorerSessionWatcher.h(843)\SHELL32.dll!00007FFEBBAA1DB4: (caller: 00007FFEBB9E65F2) ReturnHr(1) tid(66d8) 80004001 Not…
Information not available, no symbols loaded for AppxPackaging.dll
Hi guys, I want to validate AppxBlockMap.xml through AppxSignature.p7x. I used IAppxFactory::CreateValidatedBlockMapReader method (appxpackaging.h) to validate the blockmap. When I debuged my code, the result seems good. But I noticed there are…
C++ animate anything correctly
I want to understand how to correctly display something in win32. For example, how to make a square that will move with sin() up and down, so that it is correct and not as I did it through CreateCompatibleDC and create a Bitmap and then move all of it…
Issue while Writing\Updating .ini files using RegSetValueEx\WritePrivateProfileString
I’m encountering an issue while updating an INI file. Initially, I attempted to write the value to the registry and then update the INI file using the RegSetValueEx() WinAPI. Although the function executes without returning any errors, the value is not…
How to fix " cl : Command line error D8003 : missing source filename" ?
the output: my project structure, main.cpp's header is , #include <glad/include/glad/glad.h> #include <glfw/include/GLFW/glfw3.h> build.bat https://pastebin.com/TqUTtKyP what am i doing wrong ? is it the slashes that interrupts…
visual studio windows form call error
when i try to add windows form to my project , it outputs errors i make clr empty project .net framework Instances of this error (1) Hide Call Stack at Microsoft.VisualStudio.Designer.Interfaces.IVSMDCodeDomProvider.get_CodeDomProvider() …
Dialog box before launching of application in winui3 c++/winrt
I am working in winui3 c++/winrt and I need to show a dialog box just before the launch of my application The dialog box will say OK and Cancel on click of OK we launch the application and on cancel we exit. I tried a few approaches but it is giving…
WinUI3: How to print framework element using cpp
My app have to windows. Depending on which the print is called from we getting the actual hWnd. My issue is how to to get an instance of printManager or is there another way to print from winui 3? // file: MainWindow.xaml.cpp ... #include…
VS2019 to compiler cmake report error
when I create a cmake project with VS 2019 (16.11.5), output of cmake will report error: "Provided 'inheritEnvironments' doesn't provide the necessary environment variable needed to set the context for the configuration x64-Debug. .....".
Visual Studio 2019: LNK2019 error from msvcrtd.lib(utility.obj)
I'm working on upgrading a C++ DLL project (Debug, x86) from VS2008 to VS2019. While doing so, got many different link error along the way and got it resolved by adding the dependencies - ucrtd.lib, vcruntimed.lib and msvcrtd.lib. But currently stuck…