• Forum
  • Windows Programming

Windows Programming

by admin
Welcome to this board!
Welcome to the Windows forum in C++.com! In this forum, users can to talk about any topic related to programming in C++ for the Windows platform. Feel free to...
[no replies]
Obtain desktop dimensions while DPI scaling is enabled
Good day! I am looking for a way to get physical desktop (primary monitor) resolution using Windows API. So far I tried several approaches: #include <window...
[5 replies] Last: I am also aware of "Properties" > "Compatibility" tab > "Override hig... (by kigar64551)
by haha01
Time Precision in Gaming: GNU MPFR vs. GNU MP Bignum
Hello everyone, I'd like to discuss an interesting comparison between the GNU MPFR (Multiple Precision Floating-Point Reliable) Library and the GNU MP Bignum...
[10 replies] Last: i need full precision from rdtsc and only 64 bit do it (by haha01)
by ruzip
GetMangledSiteSid Entry Point error
When building an exe using Windows in MinGW g++, I get an error when I run it: The procedure entry point GetMangledSiteSid could not be located in the dynamic...
[6 replies] Last: That was one of the links I read for my comment, kigar. :Þ (by George P)
How can I download GCC for windows latest version?
Hi, I need the latest GCC compiler collection for Windows but cannot find it. Please help... I tried: git clone git://gcc.gnu.org/git/gcc.git but callin...
[3 replies] Last: Yeah, MSYS2 has a really nice feature, a package manager that makes in... (by George P)
How to Proxychain properly with WinSocks?
Hello there, ive been working on a school project to demonstrate the (onion routing like) process of Proxychaining with C++ and WinSocks from Scratch and i ran...
[6 replies] Last: Thank you for the fantastic explanation. I now understand better what ... (by LukeProducts)
How to disable using vcpkg in a project from the command line?
what is the command line option to set vcpkg OFF for a certain C++ project? My compiler is VS2022 v17.6.0
[no replies]
Does g++ support c++20 modules?
Hi, I have tried the following command line: Q:\c++\g++> g++ -std=c++20 -fmodules-ts -o main.exe main.cpp .\new_module.ixx Q:/msys64/mingw64/bin/....
[7 replies] Last: Here is my gcc/g++ https://winlibs.com/ I have 12.2, but I see I shou... (by oggin)
I have font class which is a wrapper around API's that create HFONT . Relevant excerpt from class: class Font { // ... HFONT mhFont; }; bool Font::...
[1 reply] : In the meantime I've found a better method with IDWriteGdiInterop::Cr... (by malibor)
Is tab control a parent like group box?
Talking of common controls and talking with my self to determine control relationships, I need help with class design.. We can say that group box is a parent w...
[5 replies] Last: This article from Raymond Chen really confirms what I have been debugg... (by malibor)
How to debug a CMakeLists.txt in MSVC 2022?
I read that it is possible to debug a CMakeLists.txt file in MSVC 2022 but I have not been able to accomplish it!! Is it possible? How? Regards, Juan
[2 replies] Last: Configure CMake debugging sessions in Visual Studio https://learn.mic... (by George P)
What should be return value for WM_CONTEXTMENU?
I'm handling a WM_CONTEXTMENU to show a pop up menu. According to docs there is no return value. Return value No return value. https://learn.microsoft.com/...
[2 replies] Last: Yes it seems return value is not important but I'm unable to find some... (by malibor)
by ruzip
Printing International Fonts w/o changing console fonts
This one works, but is changing the whole console font and size. Is there a windows way similar to how Linux does it w/o any font change? #include <...
[2 replies] Last: @maxim2511 I think mixing Win32 API functions and C/C++ Runtime fun... (by kigar64551)
How to find a list of supported locales in Windows?
need the names of supported locales in Windows please!
[2 replies] Last: When using #include <windows.h>, consider also having before #defin... (by seeplus)
Is there an API to determine COM apartment model?
Suppose you initialize COM with CoInitializeEx(NULL, COINIT_MULTITHREADED); Is there a function which will tell if COM was intialized with COINIT_MULTITHREA...
[2 replies] Last: Nice, this is exactly what I need. Thanks! (by malibor)
How to add a project in one solution as a reference to another project in another solution?
Hi, Previously in a C++ native project, one could add dependencies to static libraries (.lib) and dynamic libraries (.dll) by right clicking on the References ...
[1 reply] : Referencing a project from another solution is not possible. Instead ... (by malibor)
by ruzip
fmemopen for Windows?
Is there any library that can treat memory as file stream like fmemopen on Windows? and how to use it like you are opening a file stream?
[4 replies] Last: Thanks for the suggestions. (by ruzip)
Are there any good books to learn how to do Windows apps?
HI All, I want to learn how to do Windows apps. Does anyone know where on the internet or a good book to buy to learn how to do this? I have been searching the ...
[18 replies] Last: I didn't chase it, but bought a new one is all. So far its same as 10 ... (by jonnin)
Problems passing argv to function using cstdarg
Program fails to list input arguments one at a time. Gives programing error (Access violation reading location 0x000002430A502000). On the console it list the...
[4 replies] Last: Thanks VERY much. I was trying to do it the hard way. (by tigerlcf)
Messages associated with custom control not visible in Class Wizard!
HI, I am using MFC with VS2022. I have a custom control grid and when I create an object of it in a dialog, the possible messages associated with its type ar...
[2 replies] Last: Thank you jonnin. However we can't add notification messages that are ... (by JUANDENT)
  Archived months: [jul2023]