Click here to Skip to main content
15,891,828 members
Everything / Desktop Programming / Win32

Win32

Win32

Great Reads

by Szymon Roslowski
Just another approach to understanding communication between HID devices and C#.
by Jeffrey Walton
Import and export Cryptographic Keys in PKCS#8 and X.509 formats, using Crypto++, C#, and Java.
by Martin Mitáš
How to support scrolling within your controls.
by Hans Dietrich
XColorSpectrumCtrl displays a color spectrum that allows user selection, and provides APIs for color based on RGB and HSL color models.

Latest Articles

by Michael Chourdakis
An introduction to machine learning with working C++ code that trains a linear regression model.
by Ștefan-Mihai MOGA
Task Manager shows you the programs, processes, and services that are currently running on your computer. You can use Task Manager to monitor your computer’s performance or to close a program that is not responding.
by Ștefan-Mihai MOGA
This article is about the IntelliFile application which is a free alternative Windows version to Total Commander and uses many components that have been published on CodeProject.
by Michael Chourdakis
DirectX hardware screen capture and encoding with audio mixing capabilities. H264/H265/VP80/VP90/FLAC/MP3. HDR supported.

All Articles

Sort by Title

Win32 

8 Nov 2020 by rajesh482
I've implimented a ATL single thread apartment based project . class ATL_NO_VTABLE CMySrv : public CComObjectRootEx, public CComCoClass, public IMySrv In the method, I'm creating multiple worker...
6 Nov 2009 by hxhl95
Escalating a process to system critical status using a Win32 kernel function
23 May 2012 by Sergeant Kolja
This is an alternative for "Memory leak detection for WinCE".
27 Jun 2015 by Pedram_Niloufari
C# .Gif viewer / Snipper control
12 Dec 2014 by Yuriy Magurdumov
Calling native methods from .NET application via standard Windows Named Pipes
17 Apr 2008 by msvcyc
A simple yet useful library for file based logging implemented in .NET using C#
26 Apr 2010 by Izzet Kerem Kusmezer
With this tool you can download whole .NET Framework source code at once, and enjoy offline browsing. With it, you can have whole the source code without any Visual Studio product installed
13 Jul 2008 by Rajneesh Noonia
The source code / article published here is to provide features of MS Script control (Functions like AddObject) and some features of VSA/Visual Studio editor like intellisence, code completion etc
15 Sep 2013 by Dave Kerr
Learn how to deploy SharpShell servers easily with the new Server Registration Manager tool
29 Jun 2019 by Dave Kerr
Rapidly create Shell Context Menu Extensions using .NET
19 Jan 2013 by Dave Kerr
Rapidly create Shell Drop Handler Extensions using .NET
19 Jan 2015 by Dave Kerr
Rapidly create Shell Icon Handler Extensions using .NET
14 Sep 2013 by Dave Kerr
Create Shell Icon Overlay Handlers using .NET!
5 Apr 2013 by Dave Kerr
Rapidly create Shell Info Tip Extensions using .NET
20 May 2014 by Dave Kerr
Quickly create Shell Preview Handlers for Windows or Outlook using .NET!
7 Apr 2013 by Dave Kerr
Use .NET to rapidly build Shell Property Sheets
17 Mar 2013 by Dave Kerr
Create Shell Thumbnail Handler Extensions using .NET!
23 Oct 2014 by BrokenEvent
.NET WinForms Tray icon implemenation with Win7 and Vista features: GUID identification, large custom icons, custom UI instead of the hint, etc.
25 May 2009 by Serhiy Perevoznyk
A C# wrapper for the Info-ZIP library.
1 Sep 2008 by syntaxed
Notifier: an Outlook-like notification window
14 Feb 2008 by vikas maan
Draw primitive graphics on your window.
14 Jan 2013 by Pavana Sreesha
Why is your Application's Memory platform dependent?
12 Jul 2008 by Norman Solomon
Easy addition of a 3D Tabstrip page to an ASP.NET project.
17 Feb 2009 by MikeTheDwarf
Helper class to display 3D data
29 Jan 2019 by Zuoliu Ding
A discussion on some basic practices highly recommended in Assembly Language Programming.
25 Jan 2009 by rspercy65
47 of the most used Vista apps are just 1 click away. NOTE: Vista users only.
8 Jun 2017 by Petrov Vladimir
Former NeHe OpenGL Lessons adapted to MSVS-15 pro Win32 in INICODE and the samples of the Joystick implementation
3 Jun 2009 by Ryan Grevious
Insert custom packets in the 802.11 frame
26 Aug 2008 by ima_c++_programmer
Tries to solve the queen problem using backtracking
24 Oct 2010 by Mr. Tomay
I am trying to create a simple Loader, so I created a new Win32 Project. All went right but when I tryed to add ::AfxMessageBox() Function I got compiler Error.This is my code:StdAfx.h// stdafx.h : include file for standard system include files,// or project specific include files...
24 Oct 2010 by Nish Nishant
AfxMessageBox is an MFC function. In a non-MFC app, use the MessageBox API function.Example:MessageBox (NULL, "message", "title", MB_OK);
16 Oct 2011 by Iron-Eagle
I am quite desperate to resolve this very annoying issue :( . I am trying to display a child window on parent window. The instantiation is fine and the window shows what it should.At some point the window need to be resized. But for some reason, when I using MoveWindow function it leaves...
16 Oct 2011 by André Kraak
GetClientRect[...
16 Oct 2011 by Richard MacCutchan
Take a look at this section[^] in MSDN, which may help.
17 Oct 2011 by Iron-Eagle
The problem was WS_POPUP flag to the parent window.Very strange. As far as I know it was not suppose to have such an effect.Thanks for everyone!
14 Dec 2016 by Member 10852608
Hello How To Get The Current Position of The Trackbar and How To Call Function When the Position Increase or Decrease ?thank YouWhat I have tried:switch (HIWORD(wParam)) { case WM_HSCROLL: { HWND hTrackbar = GetDlgItem(hWnd, TrackBar); if (hTrackbar ==...
14 Dec 2016 by Jochen Arndt
Inside the handler check the lower word of the WPARAM. It contains the notification code (e.g. TB_LINEDOWN for a step to the right and TB_LINEUP for a step to the left with horizontal bars when using the keyboard). When using the mouse, TB_THUMBTRACK is send while moving with left mouse button...
26 Apr 2012 by Jinyup
Dear all,I have a serious problem in CRichEditCtrl caret position.This works fine in the general EditCtrl.In OnKeyDown, I would like to get the caret position using ::GetCaretPosor EM_CHARFROMPOS.In this case, it always returns the previous position.I would like to highlight the...
25 Apr 2012 by JohnCz
Maybe I am missing something but I am kind of confused by your post.GetCaretPos and return value from Send message with EM_CHARFROMPOS are not the same.GetCaretPos returns position of the caret as the name implies.Send message with EM_CHARFROMPOS returns an index of the character from...
28 Aug 2010 by weylspinor
I figured it out. You have to do: #include
1 Mar 2011 by Iain Wiseman
Hi,I would like to install a service and have 3 questions.1) Why does the first work and the second does not sc create Test5000 binPath= "C:\dev\test.exe" sc create Test5001 binPath= "C:\Program Files (x86)\Test\test.exe"I have tried double quotes, triple quotes, quad...
1 Mar 2011 by Iain Wiseman
Hi,1) was solved by looking at the NMindexing service and noticing that there are quotes around the ImagePath. So passing four quotes each side resolves this to one set of quotes.
29 Oct 2010 by waertf.chen
all compiled fine but after run, the error occurred 100%in visual studio 2008 but vc6.How can to modify it to pass runtime?What I want is that to run fine only with *.exe and *.dllThank you//test_dll.cpp#include #include typedef int (*PFUN)(int);void...
29 Oct 2010 by Nish Nishant
You are not checking for errors. You need to check and see that LoadLibrary succeeded, GetProcAddress succeeded etc.
29 Oct 2010 by waertf.chen
//test_dll.c...
4 Jan 2020 by The Ænema
Here's the best, beautiful and easiest way to create an animated and smooth sliding scroll viewer in WPF Platform (Windows Presentation Foundation).
26 May 2012 by Hoang Khanh Nguyen
A .NET wrapper for NT Registry and a .NET NT RegEdit demo
7 Sep 2012 by zippy1981
This is an alternative for "ODBCTracer"
31 Jan 2021 by Steffen Ploetz
Creation of a basic icon editor with as little code as possible, that is running on ReactOS and Windows, to check out the stability of application development capabilities on ReactOS
27 Oct 2010 by Niladri_Biswas
This short tutorial will give the idea about the usage of Dynamic Keyword in dotnet 4.0
1 Nov 2009 by Ali Tavakol
Fast, real, and easy to connect to your application.
28 Apr 2014 by Andre' Gardiner
A c banking atm concept console application
6 May 2008 by Ronounours
A very simple C++ source code showing how to create an interactive 2D graphical blobs editor, using the CImg library.
20 Dec 2008 by Antonio Perrone
A C++ class to register and start device drivers.
12 Nov 2007 by Marcelo J. Kittlein
How to pass and return Arrays and Ranges in Excel to and from a C++ DLL.
23 Jun 2014 by ravenspoint
Give a C++ application its own web page
22 May 2008 by Alex C. Punnen
The Command Pattern and Chain of Responsibility for implementing a plug-in Thread Pool library.
18 Dec 2013 by Hari Mahadevan
Describes a C++ class that encapsulates the WaitForMultipleObjects API usage pattern making it easy to integrate it with C++ objects.
9 Jan 2014 by Hari Mahadevan
Describes a C++ class that encapsulates the WaitForMultipleObjects API usage pattern making it easy to integrate it with C++ objects.
27 Apr 2008 by Derek Bartram
This library provides a framework for using Code Project article information in applications, and provides a utility for monitoring articles
1 May 2008 by Derek Bartram
This library provides a framework for using Code Project article information in applications, and provides a utility for extracting user information
5 Nov 2010 by Wayne Ye
This is a complete Impersonation demo in C#, impersonating a user and accessing its files and HKCU Registry entries.
8 May 2008 by Davidwu
A Cool Vista Sidebar Gadget Style CPUInfo Animate Control! (Fixed)
24 Mar 2015 by Carlos Jiménez de Parga
Explanation of a consistent 3D graphics software architecture through a basic OpenGL application
25 Apr 2008 by Derek Bartram
A demonstration application for showing the use of the WPF Ribbon Control as presented elsewhere
19 Sep 2009 by jebarson
New features of Visual Studio 2010 discussed
9 Aug 2011 by Rodrigo Cesar de Freitas Dias
Writing a dialog based program using only pure Win32 C code
25 Jan 2008 by Mark Frishman
Alternative to Microsoft's FileVersionInfo class
27 Jul 2009 by Nish Nishant
The article shows how to interop between a WCF service and a WWS client, and also how to rewrite the WCF service in WWS retaining compatibility with existing WCF clients.
9 May 2019 by Michael Chourdakis
Create music easily
17 Dec 2013 by Mike Gledhill
How to easily add an "export to Excel" feature to your app
16 Apr 2011 by rspercy65
Uses Farhad Siasar's YahooWeathertlb library with a few added functions
19 Jul 2014 by B. Clay Shannon
A list of useful programming books, some general, some platform- or language-specific
22 Mar 2008 by Derek Bartram
An article presenting ProceedureDialog.dll, a custom control for creating wizard style interfaces / procedure dialogs
29 Oct 2022 by Michael Haephrati
The progress bar snippet explained in this article, can be called or updated from different running programs.
26 Sep 2015 by Southmountain
Some take-away to improve the quality of desktop software
22 Mar 2008 by Derek Bartram
An article presenting Ribbon Builder, a tool for creating ribbon controls
16 Dec 2010 by tgis.top
CheckGroupBox, RadioGroupBox, CollapsibleGroupBox controls
9 Mar 2009 by freedeveloper
A different approach to make a Visual Studio VISTA Gadget Template
13 Feb 2008 by pradeep shivadasan
5 Mar 2023 by spidergeuse
Customize jigsaw (size and picture)
3 Oct 2014 by SarmadAsghar
This is the second lock-free implementation (first is by H°akan Sundell) that only needs the single-word compare-and-swap atomic primitive.
24 Apr 2008 by Gene OK
This is an update to Don Kackman's UxTheme component originally written for Visual Studio 2003
29 May 2010 by Software_Developer
A Mandelbrot Explorer/Zoom with Julia walkabout
19 Aug 2012 by Captain Price
I know some programming (C/C++, JAVA, Win32..), but I don't know advanced concepts of Computer Science. I just know the basics. This question is about memory management in Windows Operating Systems. You can see the problem by just observing. 1. Open a file using Notepad by double clicking a...
19 Aug 2012 by Christian Graus
As Wes said, the task manager is telling you how much RAM the process has allocated to it for use, not how much it is using. It is good for a vague idea, or to show a runaway process, but it's not accurate at the granularity you're wanting it to be.
19 Aug 2012 by Sergey Alexandrovich Kryukov
I can give you a more specific idea if you have problems with memory allocation, such as memory leak, of not-enough-memory problems. The type of product you need is called "memory debugger".You can find the one suitable for you from this...
6 Apr 2008 by Derek Bartram
An article presenting the Quick Access Toolbar as part of RibbonControl.dll, as seen in Microsoft Office 2007
22 Mar 2008 by Derek Bartram
An article presenting ApplicationButton used in creating round buttons as per Microsoft Office Style application buttons
22 Mar 2020 by honey the codewitch
Slice sections out of a MIDI file, and stretch or compress playback time using this simple utility. Or use the Midi Library to build your own MIDI apps
24 Feb 2008 by Tomer Doron
In an unmanaged environment, using Windows performance monitors may prove challenging. This article propose an alternative which is both easy and efficient.
2 Jun 2020 by Michael Chourdakis
C++, Direct2D, one function and you got a nice picker
24 Mar 2008 by Derek Bartram
An article presenting a library for producing communication based application utilising the MSN Messenger services and protocols.
29 Dec 2010 by yonken
A multi-select tree control that is based on Richard's implementation
5 Dec 2007 by zlike
Demostration of a multi-threaded HTTP proxy server implemented with WinSock on Windows.
26 Nov 2014 by Jeremy Falcon
Provides a base to use when programming OpenGL-enabled applications for the real world, rather than a simple hello world.
13 Mar 2008 by billconan, kavinguy
This article describes the implementation of a neural network with CUDA.
12 Jan 2016 by VISWESWARAN1998
Sir, I am a beginner in windows programming. I have created a dialog box in Win32 API. My dialog box consists of only one push button named "Copy" for IDOK.I have not enabled the maximize and minimize buttons in my dialog box but has close button(not push button with an IDCLOSE) I mean the...
12 Jan 2016 by CPallini
Quote:DialogBox(hInst, MAKEINTRESOURCE(IDD_DIALOG1), hWnd, Help); case IDOK: { open(); break; }Should be (I guess) if ( DialogBox(hInst, MAKEINTRESOURCE(IDD_DIALOG1), hWnd, Help) == IDOK ) { open(); } break;
3 Mar 2013 by SVPro
Hi all,I want to write a program can set windows title of other programs before it's opened. For ex: I used my program to selects Notepad and open it, when it opened, notepad's title was changed.how can I do it with C/Win32/API?I knew that SetWindowText can change title, but it only...