• 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]
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]
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...
[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 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)
Cast LOGFONT to DWRITE_FONT_WEIGHT
 
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)
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 already used SetFocus(handle) and still inactive.
[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 DeleteObject(hwindowDC); DeleteDC(hwindowDC); Cancel...
[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 I have everything setup correctly. Most examples online ...
[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(L"Button", L"Choose File", WS_VISIBLE | WS_CHILD, 53, 315, 1...
[2 replies] Last: I believe you can, instead, register that an image has been clicked an... (by jonnin)
  Archived months: [apr2023]