[Beginner] Multithreading C++ Socket
In C++ (well I think in every programming language) what is better to do when dealing with multithreading socket? Cap the number of threads it can execute the requests so that you always have 1/2 thread available for accepting new connections? In this…
Connection string failure with SQL Server ODBC connection
Hi, ALL, I have weird problem as follows: In my program I use SQLDriverConnect() to connect to the SQL Server. Before this call I modify the connection string in order to use MARS. I set up DSN and if everything is good, meaning I run the program and I…
Hello, I have an application made in C NOT C++ in which when painting or creating a LISTBOX control it gives the error Exception code: 0xc000041d in the CreateWindow statement in WINDOWS 11 24H2
Hello, I have an application made in C NOT C++ in which when painting or creating a LISTBOX control it gives the error Exception code: 0xc000041d in the CreateWindow statement in WINDOWS 11 24H2 Has anyone else had this happen to them and how did they…
WixProj output name
I have this wixproj, whose output file is an msi.How can I set the name of this MSI.I have tried using outputname tag but its not part of property group as per this - [http://schemas.microsoft.com/developer/msbuild/2003]
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…
MFC Dialog APP Dialog tipe project creation Problem "error hresult-e fail has been returned from a call to a Com component"
I am Using VS 2022 Community Edition, When I create MFC Dialog base Aplication by using wizart at the end I receive "error hresult-e fail has been returned from a call to a Com component" error. VS give error and I cant see project created in…
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…
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,…
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,…
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…
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…