Hi. I'm having trouble with PeekMessage(). I use PeekMessage() in a loop inside my WM_PAINT procedure to consume messages generated during a long computation process, and to allow the user to abort the process by pressing ESCAPE. Here is a snippet of my code...
... Create several threads to do...
This is a repost, now that ChatGPT is working again...
Hi. I need some clarification and/or help with a multi-threaded application being debugged with Visual Studio.
I notice that when I hit a breakpoint in a thread, it stops, and I can examine the status and values, but when I step to the...
Hi. I need some clarification and/or help with a multi-threaded application being debugged with Visual Studio.
I notice that when I hit a breakpoint in a thread, it stops, and I can examine the status and values, but when I step to the next instruction, the debugger goes back to the original...
I have solved the problem! See the original post, "A strange problem with modeless dialog boxes", for details.
This is a repost, incorporating the latest simplifications of the problem statement, and a minimal reproducible example of the code...
I'm having a problem with modeless dialog boxes...
application
c++
code optimization
debugging
dialog boxes
event handling
file scanning
graphics
gui
linked list
modeless
multi-threading
performance
progress bar
sleep function
system calls
timers
user interface
window procedure
windows development
Hi. I'm a retired computer/electronics engineer with 45 years of experience supporting Windows, Unix, Oracle, and networks of hand-held computers. I write straight C/C++, mostly using the WinAPI, but also MFC. I dabble with Visual Studio writing Windows programs, and I would like to share them...
c programming
c++
community
electronics engineering
experience
hand-held computers
mfc
networking
programming
q&a
sharing ideas
software development
support
user query
visual studio
winapi
windows programs
background color
border drawing
c++
control handling
device context
error handling
events
gdi
graphics
message loop
opengl
paint handling
rich edit
static control
user interface
window procedure
window resizing
windows api
wm_paint
Hello to everyone.
I'm now working on understanding preorder traversal in binary trees using C++, and I've been using material from a blog article on the subject.
I've been trying to implement the code provided on the page, but I'm encountering some issues, and I was hoping someone here could...
Design a software timer handler that triggers a specific function that gets executed when a timeout event occurs. Say there are 10 tasks that come in, each will have a timeout value and each will have a unique function to be called on timeout. You have one HW timer and need to handle this in...
Can someone explain how to get data stored in a pointer and get an address that is stored in that pointer, then get the data from the address?
I cannot figure out how to store the raw audio data into a file every time I run it the data accumulating in the file is low. The function in question is...
I cannot open a handle to any of my storage devices.
HANDLE h = CreateFile(L"\\\\.\\PhysicalDisk0", GENERIC_READ | GENERIC_WRITE, FILE_READ_ACCESS | FILE_WRITE_ACCESS,
0, OPEN_EXISTING, 0, 0);
I also tried copying the full path from WinObj: \GLOBAL??\PhysicalDrive0 and...
Introduction
Win32 APIs provide powerful functionality that let you get the most out of Windows in your applications. While these APIs are readily accessible to C and C++ developers, other languages like C# and Rust require wrappers or bindings in order to access these APIs. In C#, this is...
Today, we are excited to announce that Microsoft Edge WebView2 for Win32 C/C++ is generally available and ready for use in production applications! With today’s announcement, we are officially releasing a forward-compatible WebView2 SDK along with production-ready WebView2 Runtime. These can be...
apis
c++
coding
desktop applications
development
documentation
evergreen
feedback
fixed version
general availability
microsoft edge
office add-ins
partnerships
runtime
samples
sdk
updates
uwp
webview2
win32
Hello, I am developing a Winodws audio program that utilizes the built in Windows Core Audio API. I have an issue where the IAudioCaptureClient is sending a STARTING ADDRESS of an audio frame to pointer pData. I am trying to find out how to read the packet stored at that starting address by the...
XAML Islands was our first solution to enable developers to use UWP XAML inside their desktop (Win32) apps. Within a couple of months after the release of XAML Islands, behavioral insights and customer interviews raised some signals about how developers were using it. We discovered that a...
The Windows 10 SDK for Windows 10, version 2004 is now available with a go-live license. Build 19041, also known as the Windows 10 May 2020 Update, is now in the Release Preview Windows Insider ring.
New APIs and Features for developers
Every Windows 10 update is loaded with new APIs, but...
apis
c++
developers
identity
insider
installation
integration
linux
msix
mwp
performance
release preview
sdk
software development
update
uwp
visual studio
windows 10
wsl
Today, we released a new Windows 10 Preview Build of the SDK to be used in conjunction with Link Removed (Build 19035 or greater). The Preview SDK Build 19035 contains bug fixes and under development changes to the API surface area.
The Preview SDK can be downloaded from Link Removed.
For...
api
application
breaking changes
bug fixes
build 19035
c++
developer
device guard
feature requests
known issues
microsoft store
nuget
preview build
sdk
tools updates
unicode
updates
visual studio
windows 10
windows runtime
In two previous blog posts ( part 1 and part 2), we talked about using Semmle QL in C and C++ codebases to find vulnerabilities such as integer overflow, path traversal, and those leading to memory corruption. In this post, we will explore applying Semmle QL to web security by hunting for one of...
I have been reading alot about C++ programming. I even started watching videos and writing study guides for different books. I don't have any difficulty understanding written text, even in difficult format. I am just asking for suggestions of the best ways to learn C++ coding. I don't want...