Click here to Skip to main content
14,976,940 members
Everything / Desktop Programming / Win32

Win32

Win32

Great Reads

by Jeffrey Walton
Import and export Cryptographic Keys in PKCS#8 and X.509 formats, using Crypto++, C#, and Java.
by Szymon Roslowski
Just another approach to understanding communication between HID devices and C#.
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 David MacDermot
This article describes the creation of a non-MFC custom PropertyGrid control.
by Ștefan-Mihai MOGA
How to download files from an HTTP server.
by Michael Chourdakis
DirectX hardware screen capture and encoding with audio mixing capabilities. H264/H265/VP80/VP90/FLAC/MP3
by Ayush Swiss
C++, WebView2, Edge Browser, Edge in MFC application

All Articles

Sort by Score

Win32 

Please Sign up or sign in to vote.
5 Jun 2008
Jeffrey Walton
Import and export Cryptographic Keys in PKCS#8 and X.509 formats, using Crypto++, C#, and Java.
Please Sign up or sign in to vote.
2 Sep 2013
Szymon Roslowski
Just another approach to understanding communication between HID devices and C#.
Please Sign up or sign in to vote.
26 Feb 2018
Martin Mitáš
How to support scrolling within your controls.
Please Sign up or sign in to vote.
4 Apr 2008
Hans Dietrich
XColorSpectrumCtrl displays a color spectrum that allows user selection, and provides APIs for color based on RGB and HSL color models.
Please Sign up or sign in to vote.
27 Jun 2009
Dark Daskin
Article describes how to build an assembly that exposes functions to unmanaged code without C++/CLI
Please Sign up or sign in to vote.
29 Apr 2010
Roman Kiss
This article describes a design, implementation and usage of the Custom Routing Manager for managing messages via Routing Service built-in .Net 4 Technology.
Please Sign up or sign in to vote.
24 Aug 2009
Waleed Elkot
Reading text from any image using Microsoft Office 2007 OCR
Please Sign up or sign in to vote.
13 Jul 2019
Michael Chourdakis
An easy locking class for shared/exclusive mutex functions with upgrade/downgrade
Please Sign up or sign in to vote.
14 Sep 2013
Dave Kerr
Create Shell Icon Overlay Handlers using .NET!
Please Sign up or sign in to vote.
25 Feb 2016
J.Starkl
A windows-service which can handle different operations in separate threads and which can be controlled by a small GUI program
Please Sign up or sign in to vote.
1 Aug 2017
Arthur V. Ratz
In this article, we'll discuss on how to use HTML/CSS/JavaScript/Ajax to create a simple lightweight Windows Vista/7 sidebar desktop gadget that allows to preview featured articles contributed to CodeProject's web site
Please Sign up or sign in to vote.
31 Jan 2010
Arik Poznanski
Complete Library for using the Windows 7 Ribbon from C#, including 18 samples and 21 blog posts documenting the Ribbon features
Please Sign up or sign in to vote.
25 Mar 2018
The Ænema
Inject your 4.5 framework .NET application into a C++ unmanaged host application - fast, secure & without any extra tool or library.
Please Sign up or sign in to vote.
1 Jul 2009
Muhammad Akhtar Shiekh
An article on "How to authenticate windows user using form authentication in ASP.NET?"
Please Sign up or sign in to vote.
22 May 2013
Dejan Mauer
Free and easy way to access a web camera by using the Aforge library.
Please Sign up or sign in to vote.
11 Sep 2017
Michael Haephrati
A simple way to provide silent automatic updates with no server side code
Please Sign up or sign in to vote.
21 Aug 2019
Johnny J.
Easily add image cropping to your desktop application
Please Sign up or sign in to vote.
7 Apr 2013
Dave Kerr
Use .NET to rapidly build Shell Property Sheets
Please Sign up or sign in to vote.
14 Oct 2009
Alex Blekhman
Example of handling real-life challenges when hosting WebBrowser control: separate creation of hosting window and the control, keyboard shortcuts, control's dimensions, etc.
Please Sign up or sign in to vote.
6 Mar 2012
Chandrakantt
Registering a custom URL protocol for invoking an application
Please Sign up or sign in to vote.
13 Feb 2019
Michael Chourdakis
Create collaborating projects easily
Please Sign up or sign in to vote.
23 Aug 2018
Chris Boss
Why some prefer the BASIC language over others
Please Sign up or sign in to vote.
29 Jun 2009
Michael Dunn
Create custom tasks in your app's jump list on Windows 7
Please Sign up or sign in to vote.
19 Jan 2013
Dave Kerr
Rapidly create Shell Drop Handler Extensions using .NET
Please Sign up or sign in to vote.
15 Aug 2014
Ștefan-Mihai MOGA
How to solve real-life problems using B-trees
Please Sign up or sign in to vote.
1 Mar 2021
Ayush Swiss
C++, WebView2, Edge Browser, Edge in MFC application
Please Sign up or sign in to vote.
10 May 2009
DaveyM69
Allows changing of the default MIDI out device in Vista and Windows 7
Please Sign up or sign in to vote.
30 Sep 2009
Fiwel
Different ways to apply image filters.
Please Sign up or sign in to vote.
15 Mar 2010
Arik Poznanski
In this article, I'll present how to use the ribbon drop down color picker control.
Please Sign up or sign in to vote.
23 Mar 2010
Arik Poznanski
In this article, I'll present how to work with the ribbon quick access toolbar.
Please Sign up or sign in to vote.
25 Jan 2013
FatCatProgrammer
StarReport: WPF-less GDI+.NET report component.
Please Sign up or sign in to vote.
30 May 2019
Michael Chourdakis
A few functions and you can call various Web libraries like Google Drive
Please Sign up or sign in to vote.
6 Jul 2020
honey the codewitch
Provides a complete managed API for working with MIDI files, sequences and devices
Please Sign up or sign in to vote.
9 Mar 2010
Arik Poznanski
In this article, I'll present how to use the ribbon combo box control.
Please Sign up or sign in to vote.
6 Mar 2010
Arik Poznanski
In this article, I'll present how to use the ribbon application menu with ribbon split button and ribbon drop button controls.
Please Sign up or sign in to vote.
22 Mar 2010
Arik Poznanski
In this article, I'll present how to work with ribbon context popup.
Please Sign up or sign in to vote.
31 Mar 2011
Gregory Gadow
Prank your coworkers with a dialog box that appears and disappears randomly by using a notification area app.
Please Sign up or sign in to vote.
20 Feb 2013
Michael Haephrati
3 alternatives  
How can a parental control monitor both sides of chats? That should be done not by using keyboard hooks (which will monitor only one side of the conversation), but instead, by identifying the window and the control (listbox, editbox, etc.) used for communication, and capturing it textually. Is...
Please Sign up or sign in to vote.
24 Jul 2018
stevemk14ebr
PolyHook v2 - the C++17 x86/x64 library supporting multiple methods of hooking
Please Sign up or sign in to vote.
12 Dec 2008
Iain Clarke, Warrior Programmer
A flexible easily overridable combo-box-alike control for choosing from a 2D array of options
Please Sign up or sign in to vote.
19 Mar 2010
Arik Poznanski
In this article, I'll present how to load ribbon resources from external DLLs.
Please Sign up or sign in to vote.
20 Mar 2010
Arik Poznanski
In this article, I'll present how to work with ribbon application modes.
Please Sign up or sign in to vote.
7 Mar 2010
Arik Poznanski
In this article, I'll present how to use ribbon tabs, groups and the ribbon help button control.
Please Sign up or sign in to vote.
1 Mar 2011
Tim Stevens
An updated version of the code in David A Jones' article "Memory Leak Detection"
Please Sign up or sign in to vote.
18 Dec 2012
Lars [Large] Werner
Windows has built inn support for a lot of keyboard languages, this class makes it possible to extract that info in an easy manner and present it to screen.
Please Sign up or sign in to vote.
28 Mar 2014
Alex Culea
Shows how to create a window that behaves like a context menu
Please Sign up or sign in to vote.
12 Jun 2019
Michael Haephrati
A simple and easy to use InputBox() function for any type of C++ program for Windows
Please Sign up or sign in to vote.
5 Nov 2019
Howard 9448490
A replacement Windows Experience Score tool for Windows 10
Please Sign up or sign in to vote.
1 Apr 2021
Michael Chourdakis
DirectX hardware screen capture and encoding with audio mixing capabilities. H264/H265/VP80/VP90/FLAC/MP3
Please Sign up or sign in to vote.
28 Jan 2010
Eugen Podsypalnikov
A semi-transparent selection rectangle
Please Sign up or sign in to vote.
12 Mar 2010
Arik Poznanski
In this article, I'll present how to work with images in the ribbon.
Please Sign up or sign in to vote.
14 Mar 2010
Arik Poznanski
In this article, I'll present how to use the ribbon check box and toggle button controls.
Please Sign up or sign in to vote.
4 Mar 2010
Arik Poznanski
In this article, I'll present how to use the ribbon application menu.
Please Sign up or sign in to vote.
21 Mar 2010
Arik Poznanski
In this article, I'll present how to work with ribbon contextual tabs.
Please Sign up or sign in to vote.
23 Mar 2010
Arik Poznanski
In this article, I'll present how to work with the ribbon recent items control.
Please Sign up or sign in to vote.
16 Dec 2011
Henryk Filipowicz
A web user control for selecting a file from the file system.
Please Sign up or sign in to vote.
19 May 2015
Yohamnes Hernandez
How to free blocked files, inclusive if they are mapped in memory. Something that many tools are missing.
Please Sign up or sign in to vote.
26 Nov 2016
JamesFaix
Get a collection of all running Excel interop Application objects (not just the active one)
Please Sign up or sign in to vote.
4 Sep 2019
Chris Boss
Visual Basic 6.0 just doesn’t want to disappear. Why ? Likely many have written vital applications using VB 6.0 and Visual Basic dot.net is so different that it is not a viable option.
Please Sign up or sign in to vote.
2 Jun 2020
Michael Chourdakis
C++, Direct2D, one function and you got a nice picker
Please Sign up or sign in to vote.
17 Feb 2008
Brian P. Adams
A full-featured Task Manager for Windows Mobile.
Please Sign up or sign in to vote.
16 Mar 2010
Arik Poznanski
In this article, I'll present how to use the ribbon font control.
Please Sign up or sign in to vote.
22 May 2012
Mahfuzur Rahman.
Column based selection in rich edit control.
Please Sign up or sign in to vote.
3 Nov 2018
Michael Haephrati
A simple way for sending WhatsApp messages to an individual or to a group in C++
Please Sign up or sign in to vote.
14 Jan 2020
honey the codewitch
Add the ability to run a service in console mode and to control or install your service from the command line
Please Sign up or sign in to vote.
9 May 2019
Michael Chourdakis
Create music easily
Please Sign up or sign in to vote.
1 Oct 2009
Nishad S
A tool for capturing data from controls like TreeCtrl, ListCtrl, ComboBox, ListBox, etc.
Please Sign up or sign in to vote.
23 Dec 2011
Dan Randolph
Builds on the existing RunRemote project to run commands on a remote server.
Please Sign up or sign in to vote.
9 Apr 2015
Dirk Bahle, Alex Maitland
How to implement a ResourceHandler in CefSharp to display custom HTML in WPF
Please Sign up or sign in to vote.
23 Oct 2015
Michael Chourdakis
A simple template for manipulating the registry
Please Sign up or sign in to vote.
5 Mar 2017
Jose A Pascoa
Part 1 - Using DMath from C#
Please Sign up or sign in to vote.
21 Sep 2017
Michael Haephrati
How to detect the currently used language regardless of the active application
Please Sign up or sign in to vote.
19 Dec 2007
Bryan Sachdeva
This article describes how to create a wrapper class for the native Phone API, and then uses it to retrieve and store the call history.
Please Sign up or sign in to vote.
8 Apr 2009
joseangelmt
We are going to enable your application to write entries in HKEY_LOCAL_MACHINE, elevating your application when necessary.
Please Sign up or sign in to vote.
10 May 2009
Michael Chourdakis
Draw your vectors using a new, ActiveX based hardware accelerated interface.
Please Sign up or sign in to vote.
23 May 2018
Andreas Schoenle
How to use CrashRptEx, to avoid some of the pitfalls of crash reporting in MFC apps or if you want the ability to continue your application after a crash
Please Sign up or sign in to vote.
2 Oct 2012
Clifford Nelson
This article presents a way to display totally dynamic data in a windows grid using a dictionary.
Please Sign up or sign in to vote.
2 Feb 2013
Marc Clifton
A prototype application for cross-referencing and indexing files, URL's.
Please Sign up or sign in to vote.
12 Apr 2013
Jonathan Nethercott
Describes an algorithm for calculating the equation of a line in an image using orthogonal linear regression.
Please Sign up or sign in to vote.
10 Jun 2013
Frederico Regateiro
This project shows a work around to make a non-serializable object available to a custom visualizer.
Please Sign up or sign in to vote.
18 Sep 2013
AlwaysLearningNewStuff
3 alternatives  
INTRODUCTION AND RELEVANT INFORMATION:I have an owner drawn static control.It should have bitmap on top of a gradient background.Static controls dimensions are not fixed, they are calculated during the creation of parent window.I load a bitmap with background color of RGB( 255,...
Please Sign up or sign in to vote.
19 Dec 2016
petrostherock
Machine Learning. What languages come to mind? R? Python? Matlab? Bet you didn't think Visual Basic.
Please Sign up or sign in to vote.
1 Nov 2018
Alexander Eremeev
The Windows kernel-hacking library and development framework written on C++17
Please Sign up or sign in to vote.
23 Jan 2020
Steffen Ploetz
Another fully functional ownerdraw menu with minimal effort - this time based on Win32, with icons instead of bitmaps, with accelerators and tested for ReactOS and WinNT 4.0 to Windows 10
Please Sign up or sign in to vote.
10 Mar 2009
nkrscorpio
This is yet another example for memory mapped files. What is cool though is unlike other samples, I have a SetData(TCHAR* Key, TCHAR* value) / GetData(TCHAR* key) pattern here.
Please Sign up or sign in to vote.
23 Aug 2008
legcsabi
How to hide UI elements of a FontDialog (e.g., Font Size).
Please Sign up or sign in to vote.
20 Jan 2009
Valery Grebnev
This article describes testing the results of reader/writer locks on Windows XP/Vista Uniprocessor and Multi-core PCs.
Please Sign up or sign in to vote.
8 Sep 2009
jerryd_intw
This article presents a commercial-grade cross-platform Harel UML StateChart Open-Source application framework named StateWizard for concurrent, distributed, and real-time reactive system development with simplicity, efficiency, and scalability.
Please Sign up or sign in to vote.
10 Sep 2010
Andrey Permamedov
Why an exception raised in timer callback function doesn't leads to process termination.
Please Sign up or sign in to vote.
12 Dec 2011
jackyxinli
This article demonstrates how to use mplayer as an audio decoder and display real time spectrum during playback process
Please Sign up or sign in to vote.
18 Jun 2012
Mark Kruger
API which shows a Selection Overlay and notifies the caller when it's resizing and notifies the final rectangle.
Please Sign up or sign in to vote.
20 Sep 2012
Palavos
A paradigm of Noiseless Steganography for secretely transmitting messages via Excel graphs.
Please Sign up or sign in to vote.
21 Jan 2013
Kerem Guemruekcue
This short article shows how to use an undocumented internal class method from the System.Deployment.Application.Win32InterOp namespace to get a PE images manifest resource.
Please Sign up or sign in to vote.
5 Aug 2014
Chris875
State pattern and procedural solution illustrated
Please Sign up or sign in to vote.
1 Dec 2015
Farhad Reza
This tip describes how we can create a simple window in Go programming language using Win32 API functions.
Please Sign up or sign in to vote.
23 Oct 2019
David Lafreniere
A Win32 CreateThread() C++ wrapper class for synchronized thread startup and forced message queue creation.
Please Sign up or sign in to vote.
29 Dec 2018
Kfir Eichenblat
Learn how to create Global Hotkeys properly in a C# desktop application (e.g. Windows Forms or WPF)
Please Sign up or sign in to vote.
3 Jan 2010
#realJSOP
I think your problem is that you expect the LittleDrummerBoy object to be instantiated with the appropriate parameters, when in fact, it won't be. The PsychoBicthFromTheWeb class appears to be a little too random, and the GAK! will throw an exception. How you handle the GuitarMan exception...
Please Sign up or sign in to vote.
27 Jun 2011
charles henington
1 alternative  
Please Sign up or sign in to vote.
16 Aug 2012
enhzflep
It's simply a macro to pack the 3 colour values into a 32 bit piece of memory.Just look-up the bitwise operators > (shift right)It takes byte/char sized inputs and returns a 32 bit var, formatted thusly:00000000BBBBBBBBGGGGGGGGRRRRRRRRIts the R value, ORed with...
Please Sign up or sign in to vote.
2 Nov 2012
Pieter Alec Myburgh
Re-Activate disabled windows controls
Please Sign up or sign in to vote.
29 Oct 2014
Dave Kerr
Use QuickAccent to quickly copy accents and symbols to your clipboard. Also read the article to find out about the essentials when writing System Tray based applications
Please Sign up or sign in to vote.
10 Aug 2013
xenotron
Your solution has several serious multithreading related problems. You are executing a long running task. A long running task is often but not necessarily cancelable.Here is a few rules that you should never break in case of multithreading and in case of a gui program:- The ownership of...
Please Sign up or sign in to vote.
18 Sep 2013
CPallini
You may try my DLL[^], however I don't know if it performs well with your 'crisp' images.
Please Sign up or sign in to vote.
31 Oct 2013
Debopam Pal
How to bring data from Entity model to Excel file using LINQ.
Please Sign up or sign in to vote.
20 Aug 2014
sgoleary
Cut and Paste BackgroundWorker.
Please Sign up or sign in to vote.
12 Jul 2016
David A. Gray
Share Win32 string resources without the risk of conflicting resource IDs
Please Sign up or sign in to vote.
15 Jan 2016
veen_rp
Big lists (>1,000,000 items) can cause out-of-memory errors raised by .NET. Manage them by a List of List(Of T)
Please Sign up or sign in to vote.
10 Aug 2018
RCL_SPD
How to allocate memory on Linux and Windows
Please Sign up or sign in to vote.
31 May 2019
Michael Chourdakis
Replace GetOpenFileName/GetSaveFileName with a new cloud API!
Please Sign up or sign in to vote.
14 Jun 2019
Michael Haephrati
How to fetch and search your Chrome history by accessing the "history" Sqlite database
Please Sign up or sign in to vote.
21 Nov 2010
Emilio Garavaglia
I note your handle is a void function.The window procedure is instead an LRESULT returning function.Unfortunately, some nested messages are supposed to return meaningful LRESULT values to the calling ones.By throwing away the result, at a certain point you end up by returning "false" to...
Please Sign up or sign in to vote.
25 Feb 2011
Nish Nishant
There are two ways to do this:Use C++/CLI to access the C# code. This would mean your native DLL would become mixed mode, which you may not desire. You could split them up though, have a C++/CLI DLL that wraps the C# code and exposes it natively, and your Win32 DLL can access it via the...
Please Sign up or sign in to vote.
25 Jul 2011
Sergey Alexandrovich Kryukov
kiranbhatter wrote:Sometimes I really feel like I have chosen a wrong path while learning C, Win32.I think your whole approach is wrong. This is not a "path". There are things you need to know regardless of your "path". However, it depends on what do you want to become. Do you want to reach...
Please Sign up or sign in to vote.
20 Nov 2011
Bernhard Hiller
That's far too obscure.All you need to do is store a reference to the TabPage instance which was removed from the TabPages collection of the TabControl. You may use the form where the TabControl is placed for that purpose.You could also create your own TabControl which has an extra property...
Please Sign up or sign in to vote.
10 Dec 2011
Sebastian Solnica
PDB files out of the debugger
Please Sign up or sign in to vote.
29 Apr 2012
OriginalGriff
Because they are part of what is called the execution Context. Basically, when a thread is suspended for whatever reason, the current machine state (all registers, including program counter, stack pointer and flag values) are saves as part of the Context with the Thread. The actual machine...
Please Sign up or sign in to vote.
24 May 2012
Volynsky Alex
Please, read here:http://stackoverflow.com/questions/2183194/extracting-text-from-images[^]http://www.java2s.com/Code/Cpp/Qt/Addimagetotextformat.htm[^]!!!!http://www.cplusplus.com/forum/general/44620/[^]
Please Sign up or sign in to vote.
5 Jul 2012
Matthias Böhnke
Bug Fixes for Reading Barcodes from an Image - III
Please Sign up or sign in to vote.
23 Jul 2012
Sergey Alexandrovich Kryukov
There are two parts of it: your application functionality + system registry settings related to the Shell.On application part, you need to handle the command line parameters passed to your application when it is started. As this is C, you have an entry point called main. The OS loader of the...
Please Sign up or sign in to vote.
27 Mar 2013
nick.p.everdox
Usage of Intel/AMD extended processor features.
Please Sign up or sign in to vote.
1 Apr 2013
nv3
This is a good example of how NOT to do things. It starts with a typo in the essential word in the title of your post. The code you presented here has no reasonable indenting. And foremost, you are demonstrating bad programming techniques. There are easier methods of finding the length of a file...
Please Sign up or sign in to vote.
18 Aug 2013
User 59241
You seem to be approaching a very complex area of programming with insufficient knowledge.I read these articles about threads many years ago and have never looked back. They are worth reading. Any time you spend studying these will be well rewarded...
Please Sign up or sign in to vote.
23 Sep 2013
Sergey Alexandrovich Kryukov
There is no such thing as converted from bitmap graphics to vector, because this is something which does not have strict sense. It could be some kind of image recognition and can be performed just out of despair. I don't know why would you want it, so don't want to discuss it at this time. In...
Please Sign up or sign in to vote.
21 Dec 2013
AlwaysLearningNewStuff
1 alternative  
INTRODUCTION AND RELEVANT INFORMATION:I wanted to create a transparent list view using macros ListView_SetTextBkColor and ListView_SetBkColor.I have made a test application with Visual Studio project wizard ( a simple Win32 project ) to test these API's.I have added this WM_CREATE...
Please Sign up or sign in to vote.
10 Jun 2014
Anamera
This XSLT will output an Excel worksheet containing a CSV type of record collection in a more usable XML format.
Please Sign up or sign in to vote.
10 Oct 2014
Gerardo Recinto
Virtualization of RAM & Disk for high-speed, low-footprint & scalable data caching
Please Sign up or sign in to vote.
21 Jan 2015
Jochen Arndt
Both handling is compliant. The Unicode specs allow signaling an error, removing the invalid code, or replacing it with a replacement character (usually the U+FFFD REPLACEMENT CHARACTER).If you need identical behaviour you can try to use the MB_ERR_INVALID_CHARS flag. Then the function calls...
Please Sign up or sign in to vote.
6 Oct 2015
Maxim Komlev
.NET classes to enumerate applications associated with protocol
Please Sign up or sign in to vote.
2 Dec 2015
David Catuhe
Thanks to Chakra (the JavaScript engine used by Microsoft Edge), it is now possible to host one of the fastest JavaScript engines (and also the one with the highest support of ECMAScript 6) inside any Universal Windows Platform application.
Please Sign up or sign in to vote.
10 Dec 2015
JinWenQiang
Get started with your own SDN (Software Defined Network) simulation network
Please Sign up or sign in to vote.
17 Jan 2016
veen_rp
Use and benchmark of coordinate transformation using the C++ proj4 library in VB.NET and C#
Please Sign up or sign in to vote.
15 Jan 2016
veen_rp
Geographic coordinates from decimal degree to degrees, minutes & seconds. And vice versa.
Please Sign up or sign in to vote.
24 May 2020
Jonas Vago
Application to show how to zigzag order a matrix
Please Sign up or sign in to vote.
5 Aug 2016
Petrov Vladimir
Texture Mapping in OpenGL from any Image File in any format using Class CImage(just call the File Name).
Please Sign up or sign in to vote.
27 Jun 2018
Clifford Nelson
These are some methods I created to help with creating and deleting Windows shared directories.
Please Sign up or sign in to vote.
4 Oct 2008
freedeveloper
Part V: Intercommunications with a Workflow instance using Correlation parameter
Please Sign up or sign in to vote.
11 Mar 2009
Jellow TK
This simple tool will add method-entry logs in source files.
Please Sign up or sign in to vote.
28 Jun 2010
Alexey Kurakin
This article is the second part of my series about remote threads. In this part, I describe how you can create permanently executing thread with any of your code inside address space of another process.
Please Sign up or sign in to vote.
21 Oct 2010
Aescleal
printf is so 1980s. If you don't want to dig out your shoulder pads and big hair why not go for a more modern C++ approach?Instead of a function try a stream buffer:class message_box_stream_buf : public std::basic_streambuf{ public: message_box_stream_buf( const...
Please Sign up or sign in to vote.
24 Oct 2010
Nish Nishant
AfxMessageBox is an MFC function. In a non-MFC app, use the MessageBox API function.Example:MessageBox (NULL, "message", "title", MB_OK);
Please Sign up or sign in to vote.
10 Jan 2011
#realJSOP
An abstract class cannot be instantiated. You MUST derive a new class from it, and implement all of the pure virtual functions in it, and then use the new class instead.This is basic C++ stuff...
Please Sign up or sign in to vote.
26 Apr 2011
Nish Nishant
Here's an example.C++ code-----------extern "C" __declspec(dllexport) void _stdcall Test(char **files, int count){ for(int i=0; i
Please Sign up or sign in to vote.
25 Jul 2011
Sergey Alexandrovich Kryukov
Pipes for IPC? Use Named Pipes: http://msdn.microsoft.com/en-us/library/aa365590%28v=vs.85%29.aspx[^].[EDIT]Find some Named Pipe samples here: http://msdn.microsoft.com/en-us/library/aa365799%28v=vs.85%29.aspx[^].[END EDIT]For threading, use Thread functions, see...
Please Sign up or sign in to vote.
24 Jul 2011
OriginalGriff
C and Win32 are used a lot less these days - except for maintenance - C++ and MFC are more common, but also dated.C# or C++ and .NET are a lot more common these days, and may be a better investment.Having said that, if you are good at C and Win32, and can live with maintenance rather...
Please Sign up or sign in to vote.
3 Oct 2011
Sergey Alexandrovich Kryukov
Writing on DC from the other thread is absolutely useless and even dangerous. All rendering should occur in the handler of a Windows message WM_PAINT. It always happens in your UI thread. So, the question is: how to make the rendered graphics changing with time and trigger this message? Well,...
Please Sign up or sign in to vote.
10 Oct 2011
Simon Bang Terkildsen
WaitForSingleO...
Please Sign up or sign in to vote.
1 Aug 2012
xenotron
I think you want to minimize a window, and not a process. each window belongs to a process, and to a thread and a module inside the specified process. An ordinary gui program creates all gui elements using the same thread and module (HINSTANCE). A single process can have multiple windows, in...
Please Sign up or sign in to vote.
30 Aug 2012
JJMatthews
It was a while ago but I remember that the edit control must have the ES_MULTILINE style and instead of '\n' you must use '\r\n' for line breaks.
Please Sign up or sign in to vote.
15 Oct 2012
Marius Bancila
I will show how to provide keyboard input for WPF controls hosted in a Win32 applications.
Please Sign up or sign in to vote.
5 Feb 2013
Gokulnath007
To get instant control over Outlook and various operations of outlook.
Please Sign up or sign in to vote.
10 Feb 2013
Matthew Faithfull
The problem is that CreateWindow has already been declared as a C Preprocessor macro in WinUser.h...#ifdef UNICODE#define CreateWindow CreateWindowW#else#define CreateWindow CreateWindowA#endif...and C Preprocessor macros being an old school C feature take no account of...
Please Sign up or sign in to vote.
2 May 2013
Jochen Arndt
See GetErrorInfo[^] in the MSDN:Quote:Obtains the error information pointer set by the previous call to SetErrorInfo in the current logical thread.If you got the return valueQuote:S_FALSE There was no error object to return. , no error info has been set by a COM function which is obvious...
Please Sign up or sign in to vote.
28 Jun 2013
Maciej Los
Have a look here:How to: Programmatically Create Word Tables[^]How to: Programmatically Add Text and Formatting to Cells in Word Tables[^]How to: Programmatically Add Rows and Columns to Word Tables[^]How to: Programmatically Populate Word Tables with Document Properties[^]How to:...
Please Sign up or sign in to vote.
18 Aug 2013
H.Brydon
Each of your threads should have an API that sets a boolean (or event or finite state machine status or equiv) that tells the thread that you want it to shut down. Any thread termination logic should really be handled by the thread itself. The thread's normal processing logic should poll the...
Please Sign up or sign in to vote.
18 Aug 2013
Sergey Alexandrovich Kryukov
AlwaysLearningNewStuff wrote:…there was no saying about dialog box sending message to a worker threadFirst of all, you cannot just "send message" to a thread.The thread you want to "send message" two should define some mechanism to accept message. And the message queue could be as...
Please Sign up or sign in to vote.
18 Oct 2013
nv3
You will find lots of examples in so-called skinning libraries. For example:A picture based skin system and MPEG decoder[^]Just search under "skin" in CodeProject and you will find lots of example code.But as Sergey already pointed out: Why do you look for tutorials and examples if the...
Please Sign up or sign in to vote.
14 Jan 2014
AlwaysLearningNewStuff
I have "battled" this problem for nearly three months, and after all that research I must admit that Mr. Kryukov and Mr.Pallini were right-no matter how good the algorithm is, for the crisp images is better to use vector graphics. Therefore, I have decided to use vector graphics. Maybe I will...
Please Sign up or sign in to vote.
6 Apr 2014
Prabakaran T
Ultimate USB Reset Attribute with powerful option
Please Sign up or sign in to vote.
30 Nov 2014
David O'Neil
I needed an 'Update' solution for a project, and modified Geert van Horrik's 'Updater' to do so. This is the solution in Visual Studio Community Edition
Please Sign up or sign in to vote.
12 Dec 2014
Yuriy Magurdumov
Calling native methods from .NET application via standard Windows Named Pipes
Please Sign up or sign in to vote.
26 Sep 2015
Piyush Manharlal
Using integer instead of Enum for ComboBox and Radio Button in XAML
Please Sign up or sign in to vote.
15 Dec 2016
Farhad Reza
This tip describes how we can design application interface using Win32 API in Rust Programming language.
Please Sign up or sign in to vote.
25 Jan 2016
Samuel Teixeira
Why simple if we can be complex?
Please Sign up or sign in to vote.
13 Apr 2016
Steve Grundy
This article describes using the Windows MIDI API functions in a managed environment.
Please Sign up or sign in to vote.
6 Jun 2017
Nick Tziamihas
In this article, we show how you can execute asynchronous code on the main thread without async, by replicating Unity's coroutine framework.
Please Sign up or sign in to vote.
25 Jun 2018
Sean Rand
This is an article to help you clean up browser processes during automated Selenium testing.
Please Sign up or sign in to vote.
22 Dec 2019
Marijan Nikic
A utility for automatization of moving files from partition A to partition B and vice versa
Please Sign up or sign in to vote.
25 Jan 2020
Thilo Bauer
Autohides Taskbar and Startmenu when there are no mouse moves over them for a defined time
Please Sign up or sign in to vote.
27 Dec 2020
Steffen Ploetz
Step-by-step instructions and source code snippets for inserting a bitmap (or a section of it) into an icon image.
Please Sign up or sign in to vote.
19 Dec 2019
Rick York
A simple, header-only class for high resolution timing
Please Sign up or sign in to vote.
23 Jan 2020
Steffen Ploetz
The Win32++ class library sample collection does not contain a sample, that creates the frame menu via API instead of via resources. Here is the missing part.
Please Sign up or sign in to vote.
1 Sep 2008
Sean Rock
Change local IIS home path from explorer context menu
Please Sign up or sign in to vote.
13 Jul 2010
Daniel Cohen Gindi
This application adds a property page to show SWF properties in the Windows file properties window.
Please Sign up or sign in to vote.
3 Jan 2010
Jimmanuel
WTF?!?!Thi...
Please Sign up or sign in to vote.
3 Jan 2010
AspDotNetDev
Haha, this was tagged as Win32. Definitely not a win. More like an epic fail.
Please Sign up or sign in to vote.
10 Mar 2010
«_Superman_»
fstream is a C++ object. It will work in any OS.Win32 APIs will work only in Windows.fstream implementation in Windows will eventually call the Win32 APIs.So the first approach will give you portability.The second approach will execute slightly faster.
Please Sign up or sign in to vote.
8 Jun 2010
Niklas L
Looks ok to me. Are you inspecting lvi.pszText or szBuffer afterwards?MSDN states "Applications should not assume that the text will necessarily be placed in the specified buffer. The control may instead change the pszText member of the structure to point to the new text, rather than place...
Please Sign up or sign in to vote.
7 Dec 2010
Alain Rist
Hi Rajesh,Use the Visual Studio Configuration Manager (in Build menu) to create different project configurations, see How to: Create and Edit Configurations[^].Use compile time definitions to adjust specific configuration features.cheers,AR
Please Sign up or sign in to vote.
8 Dec 2010
ARopo
Win32 API can't be created in c#.NET the two things operated on completely different models.In a Win32 API all memory and resources are managed manually by the programmer, and api used is also unmanaged. Win32 Api is compiled to machine code ready to run.C#.NET memory is managed by...
Please Sign up or sign in to vote.
24 Jul 2011
Mohibur Rashid
Dont worry .net seems future. But microsoft knows that they didnt give us the ultimate solution yet, soon they will give you another solution and .net will be back dated again. But C/C++ is immortal, cause its not their ............
Please Sign up or sign in to vote.
3 Oct 2011
Karthik Kalyanasundaram
Do you really need an explicit call to _endthreadex() in your thread function created using _beginthreadex()
Please Sign up or sign in to vote.
21 Sep 2011
André Kraak
Include the windows header files in each of your headers files as they are needed.So use #include or #include in your Graphics.h file.To answer why Input.h does work without including #include :Your Input.h file includes dinput.h, which in turn includes...
Please Sign up or sign in to vote.
15 Apr 2012
andrewbb@gmail.com
Includes most API functions except for graphics.
Please Sign up or sign in to vote.
23 May 2012
Sergeant Kolja
This is an alternative for "Memory leak detection for WinCE".
Please Sign up or sign in to vote.
21 Jul 2012
OriginalGriff
I assume you are trying to write a secure delete application?That is not as easy as you think...Google is your friend here: Secure delete c++[^] - but be prepared for some work, it is not at all easy. Just think about SSDs - they don't write where they tell you they are, just mark the old...
Please Sign up or sign in to vote.
2 Aug 2012
Kuthuparakkal
WMI based DirectoryMonitor triggers SSIS Package execution.
Please Sign up or sign in to vote.
7 Aug 2012
xenotron
I never did such a hack but I guess you are searching for something like this:Hooking the native API and controlling process creation on a system-wide basis[^]Read the user comments too below the article! Those might also contain some useful info for you. Usually antivirus software does what...
Please Sign up or sign in to vote.
16 Aug 2012
Chuck O'Toole
It creates a "24 bit color reference" in 32 bit integer / unsigned in the form of "0x00bbggrr"Red is the low 8 bits (0-7), Green is the next 8 bits (8-15) and Blue is the next 8 bits (16-23).All the "typcasting" is to instruct the compiler how to do the math (shifts) on the values. The...
Please Sign up or sign in to vote.
28 Mar 2013
nv3
The main question is: Do you need to preserve context information from one to the next UPD requestion message?If not, i.e. if every UDP request contains all the information that is needed to answer it, there is no other reason to dispatch the requests to multiple threads than using the power...
Please Sign up or sign in to vote.
5 May 2013
Volynsky Alex
Try to use something like: TCHAR Buffer[256] = "Hello"; .... hFile = CreateFile("rw.txt", GENERIC_WRITE, 0, NULL,CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { printf("ERROR %x \n",GetLastError()); ...
Please Sign up or sign in to vote.
9 May 2013
CPallini
On Windows system newline is "\r\n" (see, for instance Wikipedia[^]). Hence it should work (you should see proper output on notepad, other applications are able to render text file with other newline conventions).Please check (with the help of an hex editor) the actual file content.
Please Sign up or sign in to vote.
28 May 2013
Sergey Alexandrovich Kryukov
This is done with the bit masks. Look at the values of WS_VISIBLE, WS_CHILD, etc.: http://msdn.microsoft.com/en-us/library/windows/desktop/ms632600%28v=vs.85%29.aspx[^].As you can see, each of them is the order of 2. That is, each of them takes exactly one bit in the word. And you can always...
Please Sign up or sign in to vote.
19 Jun 2013
JackDingler
Most of it can be done in OpenGL.Loading and saving images isn't an OpenGL function though.To do this you need to load the bitmap into memory.Create a destination bitmap in memory.Set Open GL to render to your destination bitmap.Apply the original bitmap as a texture to a square...
Please Sign up or sign in to vote.
21 Jun 2013
Sergey Alexandrovich Kryukov
You certainly can copy, cut and paste in all edit controls, and it is true for all similar controls on all more or less modern OS and UI libraries I tried so far.I think that your problem is just the artifact of wrong way of experimenting/testing. For example, when you complain that you...
Please Sign up or sign in to vote.
2 Jul 2013
merano
For C++ you could start withOffice Automation Using Visual C++http://support.microsoft.com/kb/196776/en-usHow to automate Excel from C++ without using MFC or #importhttp://support.microsoft.com/kb/216686/en-usMS Office OLE Automation Using...
Please Sign up or sign in to vote.
19 Aug 2013
xenotron
Very hard to give answers that help you to solve to problem because learning multithreading and becoming able to REALLY see behind the curtains requires months if not years in my opinion. There are many different solutions to your problem depending on what you consider acceptable behavior. One...
Please Sign up or sign in to vote.
28 Aug 2013
enhzflep
It's a rather lengthy question and more particularly, answer.I'm tired right now and will explain the best I can. Apologies for any lack of quality of response.Firstly, BMP files actually use lossless compression, so they are suitable (and the easiest to deal with. PNG files can be loaded...
Please Sign up or sign in to vote.
4 Sep 2013
KillBot Project
A make-over of one of the most popular family games, Monopoly.
Please Sign up or sign in to vote.
8 Sep 2013
H.Brydon
Looks like a double delete problem to me. Since you are loading the ee object, then adding it to pee, deleting the contents of pee will do something with ee as well.One of the things I always do when deleting a pointer is immediately set it to NULL. I believe this will fix your crash...
Please Sign up or sign in to vote.
8 Sep 2013
«_Superman_»
It is bad practice to use new.Use wstring instead of wchar_t*.This way you do not have to worry about memory allocations and deallocations.You can have containers like these -vectorvector>
Please Sign up or sign in to vote.
23 Sep 2013
Ron Beyer
There is no way to scale a bitmap up without losing quality.Bitmaps and Vector graphics are two separate concepts. Bitmaps are pictures compromised of pixels. Making a pixel bigger means that it changes the image. Vector graphics however are different, they are not collections of pixels...
Please Sign up or sign in to vote.
24 Sep 2013
Mike Meinz
PartnerTech provides a 32-bit DLL and a 64-bit DLL for communicating with the CD-7220 Series Customer Display in true USB mode. This tip demonstrates a .NET class that can be used to provide an easy way to access the PartnerTech-provided 32-bit DLL.
Please Sign up or sign in to vote.
19 Oct 2013
Captain Price
Found a great article :Style Toolkit - Use advanced graphics techniques to create a custom user interface[^]
Please Sign up or sign in to vote.
19 Oct 2013
xenotron
Managing the nonclient area yourself is indeed a not too well documented and messy topic and there are a lot of pitfalls like you have to hide the borders when the window is maximized... If all you want is a custom drawn window (like that of a typical fancy media player) then I recommend you the...
Please Sign up or sign in to vote.
6 Nov 2013
enhzflep
Okay then, well where to begin?I looked at this problem from a bunch of angles, I must've pondered and tried 1/2 a dozen combinations of approaches, but I think I've found one that is workable.Basically, the idea is to do all the drawing on the dialog/window itself and then use button...
Please Sign up or sign in to vote.
27 Jan 2014
Sergey Alexandrovich Kryukov
Well, of course this implementation is inefficient as all those techniques based on polling. First, one side note: your use of struct Data is totally pointless, because it is equivalent to using static bContinue along. Also, using any global variables is generally bad, you could try to use, say,...
Please Sign up or sign in to vote.
1 Feb 2014
Sergey Alexandrovich Kryukov
First of all, I would not talk about locale. This is old, obsolete notion created before Unicode and the notion of system and thread culture, which is kept for backward compatibility reasons. I would try to avoid dealing with locales at all. Instead, you should only look at the...
Please Sign up or sign in to vote.
27 Mar 2014
Alex Culea
3 alternatives  
Hi!I am struggling for a few days now to show a simple window without causing my main window to lose focus and become inactive.Basically I am trying to emulate a context menu (I cannot use owner drawn menus for various reasons) but when being shown it will go ahead and become the active...
Please Sign up or sign in to vote.
28 Mar 2014
Alex Culea
First I would like to thank everybody that has contributed with ideas to this question, here's the solution I found to fit best my needs.For those jumping straight to the solution, I am displaying a custom context menu that is hosted by a popup window. The point is to have the menu window...
Please Sign up or sign in to vote.
6 Jul 2014
Sergey Alexandrovich Kryukov
It wasn't a matter of discussion before you clarified: JPEG. Thank you.In this case, you need to parse EXIF:http://en.wikipedia.org/wiki/EXIF[^].See, for example, this library: http://www.exiv2.org/[^].—SA
Please Sign up or sign in to vote.
6 Oct 2014
Jochen Arndt
You are using the same DeviceInfoSet handle for SetupDiEnumDeviceInfo and SetupDiEnumDeviceInterfaces. According to the MSDN[^] you should call SetupDiGetClassDevs with the flag DIGCF_DEVICEINTERFACE to retrieve device interfaces.You are also passing the GUID found by enumerating the device...
Please Sign up or sign in to vote.
1 May 2015
Sergey Alexandrovich Kryukov
You absolutely don't need P/Invoke to kill a process. All you need is the class System.Diagnostics.Process:https://msdn.microsoft.com/en-us/library/system.diagnostics.process%28v=vs.110%29.aspx[^].As you can see, you can list all the processes, choose one (but how? doing it by name does...
Please Sign up or sign in to vote.
27 Jun 2015
Pedram_Niloufari
C# .Gif viewer / Snipper control
Please Sign up or sign in to vote.
5 Jul 2015
Frankie-C
You can use Drawtext(), or TextOut(), in any moment, you just need the device context:void PrintHello(HWND hwnd){ HDC dc = GetDc(hwnd); RECT rc; GetClientRect(hwnd, &rc); DrawText(dc, "Hello!", -1, &rc, DT_CENTER|DT_VCENTER|DT_SINGLELINE); ReleaseDC(hwnd, dc);}Then if...
Please Sign up or sign in to vote.
4 Nov 2015
Denis Murashov
In the article I try to make a brief review over methods to manage object lifetime in Delphi applications.
Please Sign up or sign in to vote.
12 Jan 2016
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;
Please Sign up or sign in to vote.
31 Jan 2016
Jochen Arndt
Just read the documentation for remove_all()[^]:Quote:Throws: As specified in Error reporting.Follow the link there to Error-reporting[^]:Quote:When a call by the implementation to an operating system or other underlying API results in an error that prevents the function from meeting its...
Please Sign up or sign in to vote.
15 Feb 2016
Ahmed Amer Jaf
Fast n Easy Way to parse Json data
Please Sign up or sign in to vote.
4 Apr 2016
Mr. xieguigang 谢桂纲
R API for drawing venn diagram in VisualBasic
Please Sign up or sign in to vote.
10 Apr 2016
AIT SALEM BOUSSAD
This first part of the article presents how to inject a DLL inside lsass process by using Windows service
Please Sign up or sign in to vote.
3 Feb 2017
Satish Jagtap
This article is written in VC++ as utility to manage startup applications of Windows.
Please Sign up or sign in to vote.
21 Oct 2019
Steffen Ploetz
How to embed icons into Win32 programs without utilizing resources - useful for platforms without resource editor/resorce compiler, e.g., ReactOS. Learn the missing things about the .ico format.
Please Sign up or sign in to vote.
16 Apr 2020
Richard MacCutchan
When a system call fails you need to call GetLastError to find out why. See SetCommMask function (winbase.h) - Win32 apps | Microsoft Docs[^] for example.
Please Sign up or sign in to vote.
17 Aug 2020
Karel Donk
An example of building a peer-to-peer chat application for secure and private communication
Please Sign up or sign in to vote.
22 Oct 2020
CPallini
Quote: Do i have to define UNICODE in every single source file? Yes, you have to. You might, however, define it as a compiler option, see /D (Preprocessor Definitions)- To set this compiler option in the Visual Studio development environment |...
Please Sign up or sign in to vote.
12 Sep 2018
Chris Boss
A short introduction to using the Powerbasic 6.0 console compiler with the Ontime RTOS-32 embedded operating system
7 Sep 2012
Dynamsoft
In this article, I’ll share with you how to utilize Dynamic .NET TWAIN in a WPF application to process your documents.
Please Sign up or sign in to vote.
8 Jun 2012
pdoxtader
Use DeviceIoControl, QueryDosDevice and WNetOpenEnum to get information about your system.
Please Sign up or sign in to vote.
11 Mar 2010
Emilio Garavaglia
They have two different philosophy with a certain area of overlap.fstream implements the "concept" of C++ stream when the data flow are directed to files.It does so by cooperating with a number of other classes like strembuff and locales, whose defaults do almost nothing, but you can...
Please Sign up or sign in to vote.
18 Mar 2010
Mohammad Elsheimy
Learn how to create your CWinApp::OnIdle in C
Please Sign up or sign in to vote.
22 Apr 2010
Arik Poznanski
Crash while closing application that uses Windows Ribbon Framework
Please Sign up or sign in to vote.
12 May 2010
Michel Godfroid
This will only work when the computer is in sleep or hibernate state:the easy solution: just schedule a task, and check the 'wake system to run this task' box.doing it in C/C++: read This[^]Note that this will only work if the system is in the S3 or S4 state as stated above.If the...
Please Sign up or sign in to vote.
17 May 2010
Sauro Viti
Try have a look to this page and the related resources, from the MSDN library:http://msdn.microsoft.com/en-us/library/ms644990(VS.85).aspx[^]I think that what you need as first step is a low-level keyboard hook (see WH_KEYBOARD_LL) to process keys before that they are dispatched to the...
Please Sign up or sign in to vote.
10 Sep 2010
Alain Rist
Hi,Use ::SetMenu(hWnd, NULL) to hide the menu, ::SetMenu(hWnd, hMenu) to show it.This should do what you wish :) DWORD dwRemove = WS_CAPTION | WS_BORDER | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX;// This should be kept for reverse operationDWORD dwStyle =...
Please Sign up or sign in to vote.
28 Oct 2010
Aescleal
What happens if you put a full path in for the call to fopen? Something like:FILE *file_ptr = fopen( "c:\\test.txt", "a+" );making sure the path is somewhere that can be written to by just about anything. If that works then you know the problem is the current working directory of...
Please Sign up or sign in to vote.
7 Dec 2010
Andrew Phillips
This is a large topic and there are many considerations. For example, at one extreme you can have one executable and use run-time flags to control which features are seen. At the other extreme you can create different release configurations (see below) that define macros (for conditional...
Please Sign up or sign in to vote.
8 Dec 2010
#realJSOP
The Win32 API isn't meant to "wrap" your code. Your code is supposed to wrap the API. By creating an assembly in .Net, and assuming you've made your classes public, other programmers can make use of YOUR "api".
Please Sign up or sign in to vote.
21 Dec 2010
E.F. Nijboer
How about GetCurrentProcess()?Good luck!
Please Sign up or sign in to vote.
3 Feb 2011
Menuki
This solution works in Windows environment under Visual Studio.I don't know if there is a Linux equivalent.I use a counter common for all processes.#pragma data_seg("counter") // counter common for all processesLONG gs_nCtApp = -1; #pragma data_seg()#pragma comment(linker,...
Please Sign up or sign in to vote.
3 Feb 2011
Andrew Brock
Did you try searching[^]?
Please Sign up or sign in to vote.
14 Feb 2011
Yusuf
Of course you can do it. There are serveral ways of doing it.1. You can add your program to the Startup folder2. You can do it by adding an entry to HKCU\Software\Microsoft\Windows\CurrentVersion\Run registry keys.Here are few...
Please Sign up or sign in to vote.
15 Mar 2011
Sergey Alexandrovich Kryukov
Your question is simply not applicable to IDL. It is applicable to implementation of the functions defined by IDL.IDL is "Interface Definition Language". When you compile it, you got interfaces only (well, just a bit more). When you generate source code in some languages you will get...
Please Sign up or sign in to vote.
6 Apr 2011
Hans Dietrich
Call SHGetFolderPath() with the CSIDL CSIDL_COMMON_DOCUMENTS.See here for more CSIDLs: http://msdn.microsoft.com/en-us/library/bb762494%28v=VS.85%29.aspx[^].[Note: ignore the nonsense about SHGetFolderPath() being deprecated. If you follow the advice in MSDN, your app won't work on XP...
Please Sign up or sign in to vote.
7 Apr 2011
Sergey Alexandrovich Kryukov
I already commented on Win98. This is the only item which can be highly problematic. If you could exclude it from support (I highly recommend it), you would be fine.Well, on every part of Windows API you need to look for Microsoft documentation and check up the list of compatible platforms,...
Please Sign up or sign in to vote.
9 Apr 2011
Richard MacCutchan
You have statements of the form#include "Includes//Main.h"I think there should only be a single '/' character in the path name.
Please Sign up or sign in to vote.
18 Apr 2011
Nish Nishant
[Adding to SA's response.]Merely disabling copy/cut in the context menus won't help prevent people from copying the file. They can use keyboard shortcuts. They can use a console app to do it, or do it programatically by specifying the full path. They can copy a parent folder that contains...
Please Sign up or sign in to vote.
9 May 2011
Sergey Alexandrovich Kryukov
If your goal is moving around some files, writing some pure C++ code will be much easier. Even if your goal is making the code easy to configure, you can use some plug-in techniques. Well, you want to allow your user to modify the code of moving files and similar stuff, yes using some scripting...
Please Sign up or sign in to vote.
6 Jul 2011
Mukit, Ataul
This tip, taken from MSDN tells the basic of ownership in windows.