CSingleInstance icon

CSingleInstance

  n/a
Freeware   

Limit your applications to a single instance by turning to this C++ class that can be easily implemented and features an example. #MFC Class  #Implement Single Instance  #Single Instance Implementation  #MFC  #Class  #Single Instance  

Description

changelog

Free Download

CSingleInstance is a C++ class that was designed to help advanced computer users such as programmers or software developers make their applications into single instances, which can be a tricky process since lately some native components have been removed while others have been recently introduced.

Win32 can make it difficult to create single instances out of target applications since the hPrevInstance parameter has been removed from WinMain while separate address spaces have been introduced.

Although the Internet has many methods that users can follow in order to limit their applications to single instances, some of the codes that are published online require advanced understanding and operating of MFC, which is short for Microsoft Foundation Classes.

Other similar methods that make use of FindWindowEx or FindWindow are not guaranteed to yield the expected effect due to the Win32 environment. CSingleInstance can mean staying on the safe side whenever trying to create single instances out of programs.

This C++ class encompasses an MMF (memory mapped file) that contains the handle of the main window of the target application. Whenever a second instance of the target application is being executed, the existance of the MMF is detected, the window handle is retrieved and the old window is reactivated.

What's new in CSingleInstance 1.25:

  • Updated copyright details
  • Updated the code to use C++ uniform initialization for all variable declarations.
Read the full changelog

CSingleInstance 1.25

add to watchlist add to download basket send us an update REPORT
PRICE: Free
  runs on:
Windows All
  file size:
41 KB
  filename:
sinstance.zip
  main category:
Programming
  developer:
  visit homepage

Bitdefender Antivirus Free

Feather-light and free antivirus solution from renowned developer that keeps the PC protected at all times from malware without requiring user configuration
Bitdefender Antivirus Free

4k Video Downloader

Export your favorite YouTube videos and playlists with this intuitive, lightweight program, built to facilitate downloading clips from the popular website
4k Video Downloader

paint.net

Packed with an array of options and an intuitive interface, this application enables you to create professional-looking photographs
paint.net

Microsoft Teams

Effortlessly chat, collaborate on projects, and transfer files within a business-like environment by employing this Microsoft-vetted application
Microsoft Teams

Zoom Client

The official desktop client for Zoom, the popular video conferencing and collaboration tool used by millions of people worldwide
Zoom Client

ShareX

Capture your screen, create GIFs, and record videos through this versatile solution that includes various other amenities: an OCR scanner, image uploader, URL shortener, and much more
ShareX

IrfanView

With support for a long list of plugins, this minimalistic utility helps you view images, as well as edit and convert them using a built-in batch mode
IrfanView

Windows Sandbox Launcher

Set up the Windows Sandbox parameters to your specific requirements, with this dedicated launcher that features advanced parametrization
Windows Sandbox Launcher

7-Zip

An intuitive application with a very good compression ratio that can help you not only create and extract archives, but also test them for errors
7-Zip

calibre

Effortlessly keep your e-book library thoroughly organized with the help of the numerous features offered by this efficient and capable manager
calibre

% discount
Windows Sandbox Launcher
  • Windows Sandbox Launcher
  • 7-Zip
  • calibre
  • Bitdefender Antivirus Free
  • 4k Video Downloader
  • paint.net
  • Microsoft Teams
  • Zoom Client
  • ShareX
  • IrfanView
essentials


User Comments
This enables Disqus, Inc. to process some of your data. Disqus privacy policy