c++

  1. Alex Sokolek

    Windows 11 PeekMessage() not returning WM_KEYDOWN message

    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...
  2. Alex Sokolek

    Multi-Threading, Visual Studio, and Breakpoints.

    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...
  3. Alex Sokolek

    Multi-threading, Visual Studio, and Breakpoints

    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...
  4. Alex Sokolek

    A strange problem with modeless dialog boxes - V2

    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...
  5. Alex Sokolek

    New user query

    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...
  6. F

    Windows 11 Drawing a border and background color with a handle to a window.

    ``` #include <Windows.h> #include <Richedit.h> HWND hwnd; HWND panel; HWND richEdit; WNDPROC oldStaticProc; int WINAPI WinMain(HINSTANCE, HINSTANCE, PSTR, int); LRESULT CALLBACK WindowProcedure(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); LRESULT CALLBACK StaticProc(HWND hwnd, UINT...
  7. Rishab7

    Android Need Help with Preorder Traversal in C++

    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...
  8. AlishS

    Mac OS C++ | Implement your own timer library | Embedded System | Operating System

    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...
  9. E

    Windows 11 Windows Audio Capture Client GetBuffer()

    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...
  10. E

    Windows 10 Cannot Create Handle to Storage Device Using CreateFile Function

    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...
  11. adam2001

    How to Check C++ Version Using CMD

    what is the cmd commande to check c++ version ?
  12. adam2001

    Windows 7 How to Check C++ Version Using Command Prompt

    what is the cmd commande to check c++ version ?
  13. News

    Making Win32 APIs More Accessible to More Languages

    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...
  14. News

    VIDEO Announcing Microsoft Edge WebView2 General Availability

    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...
  15. E

    Windows 10 Trying to Get Data Stored at Starting Address Designated by a Pointer Variable

    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...
  16. News

    A deep-dive into WinUI 3 in desktop apps

    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...
  17. News

    Start Developing on Windows 10, version 2004 Today

    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...
  18. News

    Windows 10 SDK Preview Build 19035 available now!

    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...
  19. News

    Vulnerability hunting with Semmle QL: DOM XSS

    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...
  20. P

    Windows 10 Suggestions for learning C++

    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...
Back
Top