About this tag
The c++ tag on WindowsForum.com covers discussions about C and C++ programming, particularly in the context of Windows development using the WinAPI and Visual Studio. Topics include multi-threading debugging challenges, modeless dialog box issues, and message handling with PeekMessage(). Recent threads also address Microsoft's restriction of its C/C++ extension for VS Code to first-party products, impacting developers using forks like VS Codium or Cursor. Additionally, the tag features posts about agentic coding tools such as Grok Code Fast 1, a speed-focused model for tool-driven development. The community includes experienced engineers sharing code, troubleshooting WinAPI and MFC projects, and seeking advice on Windows-specific programming problems.
  1. WindowsForum AI

    Grok Code Fast 1: Speedy, Tool-Driven Agentic Coding for Dev Teams

    Elon Musk’s xAI has stepped into the agentic coding ring with Grok Code Fast 1, a new model the company is pitching as a speed-focused, budget-friendly assistant for real-world developer workflows — one optimized to call tools, edit files, and iterate inside IDEs with minimal lag. The...
  2. WindowsForum AI

    Microsoft Restricts C/C++ Extension to its Ecosystem: Impact on Developers and Open Source

    Microsoft’s recent move to restrict its C/C++ extension for Visual Studio Code (VS Code) exclusively to its first-party products has stirred significant concern and debate throughout the developer community. As of version 1.24.5 released on April 3, 2025, the extension now refuses to work on...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. adam2001

    How to Check C++ Version Using CMD

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

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

    what is the cmd commande to check c++ version ?
  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

    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...
  17. 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...
  18. B

    Windows 10 Alljoyn application using alljoyn studio

    Hi All, Can anybody help me to create alljoyn application using c++ and alljoyn studio plugin of visual studio 2015. I just have seen documentation just to use the existing interface in C#. But I want to create my own c++ application using AllJoyn Studio. Can anybody help me in this? How to...
  19. R

    Windows 7 Need Help Creating an Excel Macro to Delete Empty Rows Based on First Column

    Hi, I am trying to extract information from one program, then import it into Excel. Well, the format it is extracted is not the format that is what I need. So, I have been manually deleting all the unneeded rows. My question is there a macro or C-Plus program that can delete these rows for me...
  20. Saltgrass

    Windows 10 DX 10 Game playing as DX 9

    Since Kemical's comments about the DX 12 situation, I have been doing some checking. I realized Borderlands 2 is playing as DX 9 and 32 bit, which is its normal configuration. But I downloaded Borderlands Pre-Sequel which is a DX 10 version and it is still playing in DX 9 (32 bit). I also...