• 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 t...
[no replies]
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 v1...
[no replies]
How to Proxychain properly with WinSocks?
 
Hello there, ive been working on a school project to demonstrate the (onion routing like) process o...
[3 replies] Last: I'm not an expert on SOCKS5, but what exactly is your problem? Did you... (by kigar64551)
Does g++ support c++20 modules?
 
Hi, I have tried the following command line: Q:\c++\g++> g++ -std=c++20 -fmodules-ts -o m...
[7 replies] Last: Here is my gcc/g++ https://winlibs.com/ I have 12.2, but I see I shou... (by oggin)
Cast LOGFONT to DWRITE_FONT_WEIGHT
 
I have font class which is a wrapper around API's that create HFONT . Relevant excerpt from class:...
[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 ...
[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 a...
[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. ...
[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 simil...
[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 w...
[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 d...
[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 us...
[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 boo...
[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 readi...
[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...
[2 replies] Last: Thank you jonnin. However we can't add notification messages that are ... (by JUANDENT)
by ruzip
Run program and make window active
 
How do I run a program with win32 context as active? Currently it is always shown as inactive. I al...
[4 replies] Last: Thanks guys. I think this has something to do with parenting a child w... (by ruzip)
by jNc
how to release HDC object
 
HDC object hwindowDC increase memory,but it must be flushed with destructor tried below De...
[9 replies] Last: still does not flush memory On line 72 the window dc is released. I.e... (by coder777)
by Kaega2
Setting up Win32 for Mingw
 
I'm running into a lot of errors when I'm trying to run Win32 program examples. I want to make sure ...
[8 replies] Last: Thank you. It works :-) (by Kaega2)
How do I design a button?
 
This function creates two default buttons. void Buttons::send_button(HWND hWnd) { CreateWindow(...
[2 replies] Last: I believe you can, instead, register that an image has been clicked an... (by jonnin)
  Archived months: [mar2023]