Windows Programming - August 2021

WM_PAINT
I have a small snippet of code in my WndProc that has a WM_PAINT with nothing in it except return(0). That causes my MessageBox not to appear unless I press AL...
Aug 30, 2021 at 1:42pm
[4 replies] Last: Many thanks for this. That answers my question. (by dodge55)
Providing electronic car weighing station management software nationwide
Providing electronic car weighing station management software nationwide Nowadays, the control of the weight of goods is increasing, while the manual weighing ...
Aug 30, 2021 at 9:08am
[no replies]
by Geckoo
Letter Occurences
https://en.wikipedia.org/wiki/Letter_frequency Hello. I am working on a simple program so as to check letter occurrences in a text (take a look at the link abo...
Aug 28, 2021 at 9:51am
[12 replies] Last: You are right Furry Guy. It is very important to foresee some user mis... (by Geckoo)
by Weasel
Common controls
When I change the colours of Windows or the theme, the controls change their size and position. How can I ensure that the common controls I am using retain the...
Aug 27, 2021 at 4:50pm
[5 replies] Last: I've decided not to continue with this issue as it is a minor one and ... (by Weasel)
Is intellisense broken in VS 16.11.0?
Is it just me and my code or is intellisense broken is VS 16.11.0 for you too? Did you find any workarounds?
Aug 26, 2021 at 6:59pm
[13 replies] Last: Thanks, I have reported my issue with intellisense soon after and the ... (by malibor)
Delete logs after N Days
Hi. I have a website. I'm getting logs via syslog to my website. I want to write a c++ code for, delete the logs after 30 days. How can i do it? I have no id...
Aug 26, 2021 at 12:14pm
[13 replies] Last: you can use the dreaded system() function to invoke the command line.... (by jonnin)
Bigram
count the number of occurrences of each bigram in a text bigrams.size(); https://en.cppreference.com/w/cpp/container/vector/size
Aug 25, 2021 at 4:31pm
[15 replies] Last: Damn, this thread certainly has gone off into the weeds of the Twiligh... (by deleted account xyzzy)
by thmm
Windows programming: where to start? (1,2)
My ultimate goal would be to create a more or less complex application What kind of application - GUI, game ? For GUI I would recommend .NET with WPF and C#...
Aug 23, 2021 at 3:10pm
[20 replies] Last: Nowadays nobody (ok somebody's going to say they do here to confirm t... (by deleted account xyzzy)
by Weasel
Trackbar control
How can I ensure that the background colour of my trackbar control is the same colour as the background of the dialog box containing it ?
Aug 21, 2021 at 7:12pm
[1 reply] : You need to handle WM_CTLCOLORSTATIC to update background color: htt... (by malibor)
Evdev Equivalent for Windows
I’ve been designing a keyboard macro program that takes control of a second keyboard and turns it into a giant macro pad. This is accomplished via Linux’s a...
Aug 18, 2021 at 7:16pm
[2 replies] Last: Yeah dude, I've thought up maybe something similar. The idea I was ha... (by zEcs Cilnt)
C++ move assignment compile time error
Good day admin I need a cue here the below c++ code is spoiling my coffee. #include <iostream> #include <string> using namespace std; class Demo { string*...
Aug 17, 2021 at 4:35pm
[4 replies] Last: Something like (NOT properly tried/tested): #include <iostream> #in... (by seeplus)
Comparing pseudo handles?
I know we can check whether 2 handles are same by using CompareObjectHandles API. https://docs.microsoft.com/en-us/windows/win32/api/handleapi/nf-handleapi-co...
Aug 15, 2021 at 9:53am
[5 replies] Last: pseudo handles are local to process as opposed to real handles which a... (by malibor)
Win32 TabControl Flicker
I made a GUI with a native splitter separating a ListView and TabControl. The TabControl has two child windows an input and output window. The main problem is w...
Aug 11, 2021 at 2:46pm
[1 reply] : #include <Windows.h> #include <commctrl.h> #include <windowsx.h> #in... (by InNeedOfHelp)
Full duplex on win32 api
Hey just a beginner here to the win32 API so hopefully you'll bare with me :) Programing in c++ with the win32 API on windows 10, to make a serial comm progr...
Aug 10, 2021 at 3:14pm
[6 replies] Last: Ok that clears it up a bit! Thanks for the help! (by ManlishPotato)
by Wali23
Code running error
Level 1: Small perfect numbers Begin by writing a program that prints perfect numbers (those with a badness of 0). Separate the output of each number by a singl...
Aug 9, 2021 at 2:35pm
[1 reply] : This isn't windows programming - its just c++. You'd be better off re-... (by seeplus)
Create Multiple Binary Files in C++
Hello guyz, i need little help i created C++ program thats suppose to create binary files from hexa code in unsigned char variable, when i test it with 2 variab...
Aug 7, 2021 at 5:35pm
[3 replies] Last: Why so complicated? You need to open the output stream once and write... (by thmm)
Repainting the Client area
I'm new to Windows Programming as I've been doing embedded for many years. I am using Petzold's book as my learning source. I can't find a good example of thi...
Aug 6, 2021 at 8:24pm
[18 replies] Last: I was sloppy, and lazy. My example is to be ignored. (by deleted account xyzzy)
NaN string to double GCC
Good day! ;) Noticed strange behavior is some rare cases in my program, and after some digging found this: std::string str { "nan" }; std::cout << str << " "...
Aug 6, 2021 at 5:33am
[6 replies] Last: > How does a C++ program specify which C standard to use? The C++ sta... (by JLBorges)
  Archived months: [jul2021] [sep2021]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.