Windows Programming - January 2021

Best ways of testing a custom allocator
 
I created a custom allocator with a couple of allocation strategies, mainly to learn from, for my study. I have gotten to the point of testing the allocator a...
[2 replies] Last: Thanks for the source, I had not found the Hoard memory allocator yet ... (by wouter140)
reading registry returns empty
 
Hello, Trying to get value of a registry key returns empty. It should be the problem of my code, but I didn't figure it out. string myFunc(unsigned long p...
[2 replies] Last: string2wstring Why? Just use wide strings. The first thing I notic... (by Computergeek01)
.rc file issues
 
Hi, I'm trying to follow this (http://www.winprog.org/tutorial/menus.html) tutorial, but I'm running across a consistent issue. Whenever I try to compile and...
[9 replies] Last: Disabling warnings is IMO using a nuke to swat a fly. Warnings are ge... (by deleted account xyzzy)
by Ganado
msvc zero-initialization
 
Here are two code excerpts, both compiled with x86 msvc v19.14 (1) https://godbolt.org/z/xqad3W [uses memset] (2) https://godbolt.org/z/31Esb4 [uses {}] (1) ...
[5 replies] Last: Using x64 msvc v19.28 with /O2, the relevant assembly is below. The on... (by dutch)
How Do I Filter File Types in IFileDialog?
 
I am trying to create "Open" and "Save" dialog boxes with the "IFileDialog" functions. I would like to add the option to filter items by file extension. Howev...
[10 replies] Last: Again, thanks for all of the help. I have found where to place the cu... (by anachronon)
by Mif
How to show in the list box, the elements in Runewords struct by select an element from the ComboBox?
 
#include <windows.h> #include <commctrl.h> #define ARRAYSIZE(sel) (sizeof(sel) / sizeof(sel )) #define IDC_LIST_BOX 1000 #define IDC_COMBO_BOX1 1001 //...
[4 replies] Last: In the end ..I got it on my own.. :) (by Mif)
by Mif
How to use one event handler for multiple radio buttons
 
Hello.. To begin I have this: . .. ... typedef struct { CHAR runes ; }Runes; Runes list = { TEXT{"El"}, TEXT{"Eld"}, TEXT{"Tir"}, TEXT{"Nef...
[4 replies] Last: Ahh Okay I understand now.. Okay okay.. thanks freddie1 :) (by Mif)
How to Properly Align Sound Data In An Audio Buffer (e.g. 20bit to 24bit)
 
I'm just getting started on working with WASAPI. My program basically creates a custom signal (ranging from -1.0F to 1.0F) based on frequency, time, and amplit...
[no replies]
by Weasel
Calculating a date from a given date
 
I want to calculate a date thirty days in the future. So if i have a date like 1st January 2021, I want the day, the month, and the year such as 31st of Janu...
[1 reply] : https://www.cplusplus.com/reference/ctime/mktime/ Like time ( &now... (by salem c)
Extracting text from sgm file.
 
I want to read from a file and extract text between two keywords and I've been trying with this bool found = false; char symbols = {'<', '>', '/'}; ...
[14 replies] Last: If Words is indeed of type std::string, then file >> Words will obtain... (by seeplus)
by chipp
Beginning C++ for Windows Application
 
i wanna ask, what is the best environment for learning C++ for windows application? e.g. Win32 API, Qt, etc... also, could anyone suggest what's the best e-boo...
[9 replies] Last: [quote=Winele]Go with Qt, all the other environments are doomed ;) h... (by chipp)
Dialogue OK button behaves differently on different PCs
 
Hi, This is actually to do with functionality of the LTSpice simulation software which I am assuming was written in something like C++. In essence it is a ge...
[4 replies] Last: Because windows can be such a rats nest with DLLs being loaded into pr... (by salem c)
normal vs subcassed edit window
 
Hello. I am a beginner at C++11. I am trying to get to use a subclassed window or edit type of box but I am not certain what is missing please help. Subclassin...
[5 replies] Last: freddie1, Thank you. I am studying what you said and referenced. The... (by BobQuarter)
Why an Undefined Identifier ?
 
Using CppCLR_Winforms App (extension by Kaiser ) on Win10 { // `Trying this code in the frmMain btnAddAccount_Click event: // I have in this project ...
[1 reply] : frm New Account.h is obviously not frm Add Account.h. So #include "frm... (by coder777)
by Winele
Anti-cracking protection for my C++ app
 
Hello, I've been trying to protect my 32-bit music plugin (DLL) using a protection solution called Pelock https://www.pelock.com/ It provides an extended lic...
[10 replies] Last: Thank you :) (by Winele)
How to tell if a program is reading or writing to a file
 
Hi, I'm trying to see if a program is writing to or reading a file with vc++. I know you can tell if a program is using a file with handle scanning, but I want ...
[4 replies] Last: https://stackoverflow.com/questions/2625833/monitor-disk-activity-prog... (by deleted account xyzzy)
  Archived months: [dec2020] [feb2021]

This is an archived page. To post a new message, go to the current page.