Skip to content

Instantly share code, notes, and snippets.

View Sorecchione07435's full-sized avatar
🏠
Working from home

Stefor07 Sorecchione07435

🏠
Working from home
View GitHub Profile
@Sorecchione07435
Sorecchione07435 / methods_embed_binary.md
Last active April 19, 2025 08:41
How to Embed Binary Data into an Executable: 4 Practical Methods (Visual C++)

How to Embed Binary Data into a Win32 Executable File in 4 Methods

This Gist covers 4 methods to embed arbitrary binary files (images, data, etc.) inside an executable.
From standard approaches (byte arrays) to low-level hacks like binary appending (copy /b), each method includes ready-to-use examples in Visual C++.

Use cases:

  • Single-file deployment (no external resources).
  • Hiding data inside .exe/.elf (no encryption).
  • Quick prototyping or educational purposes.

SFX Maker

SFX Maker is a small but powerful program designed to create self-extracting executable archives (SFX). Perfect for packaging applications, SFX Maker makes your projects portable and easy to distribute. With its intuitive interface and customization options, it is the ideal tool for anyone who wants to save time and optimize the management of compressed files, comes in two flavors designed to suit every skill level: one with an advanced interface for expert users looking for maximum control, and another with a simplified, guided interface, ideal for those who prefer a more immediate and intuitive experience.

SFX Maker (Advanced UI)

sfxmaker1

SFX Maker offers a user interface designed for advanced users for a simple and efficient experience in creating self-extracting archives (SFX). The main screen is divided into intuitive sections for easy setup:

@Sorecchione07435
Sorecchione07435 / C++_&_Operator.md
Last active March 17, 2025 16:29
C++: How the & Operator Works (Address-of, References, Bitwise)

C++: Operator (&) Address, References, and Bitwise AND

This gist explains how the & operator works in C++, if you don't know how it is used and/or you are new to C++ you are in the right place

Starting off, the & operator in C++ is one of the most versatile operators and can have different meanings depending on the context in which it is used. This operator is essential for working with pointers, references and bitwise operations. In this guide, we will explore the three main uses of the & operator

This operator has 3 main uses:

  • 1. Address-of Operator: Returns the memory address or pointer of a variable.
  • 2. Reference Operator: Creates an alias (reference) for an existing variable.
@Sorecchione07435
Sorecchione07435 / VirtualBox Web Installer.md
Last active April 17, 2025 07:45
VirtualBox Web Installer

VirtualBox Web Installer

VirtualBox Web Installer

Are you looking for a quick and easy way to install VirtualBox without any complications? VirtualBox Web Installer is the ideal solution for you!

VirtualBox Web Installer is an alternative installer for VirtualBox developed by me, which provides a passive user interface for installing VirtualBox. The entire installation process is fully automated, eliminating the need for manual intervention. This installer is designed to be intuitive and easy to use, minimizing the risk of errors during installation. It is compatible only on Windows operating systems, ensuring a smooth and reliable experience for users of this platform.

Key Features

Understanding Static and Non-Static Members: Differences and Guide (C++)

In C++ programming, static members play a pivotal role in class design by providing a way to associate variables or functions with the class itself, rather than with individual instances of the class. This enables a level of shared state across all instances of the class. Let's break down the concept of static and non-static members and understand their characteristics using your provided example.

Static Members vs Non-static Members

  1. Static Members:
    • Single Instance for All Objects: Static members are shared across all instances of a class. No matter how many objects are created, there is only one copy of the static member. This makes static members ideal for representing class-wide data (like counters) or utility functions that do not depend on individual object state.
  • Access Without Object Creation: You can access static members without needing an instance of the class. They belong to th

How to Force Enable 3D Acceleration in VMware Workstation/Fusion

Sometimes, when installing VMware Workstation Pro/Player on slightly dated or medium-low range PCs, you may encounter an annoying warning message during installation. This message informs you that your host does not support 3D acceleration, and proceeding with the installation will result in the same warning every time a virtual machine (VM) is started, with 3D effects being disabled.

This guide will show you how to resolve this issue by modifying the configuration file.


Problem Resolution

Visual C++ MFC Dialog Application Templates for Visual Studio

Visual C++ MFC Dialog Application Templates are simple ZIP archives that are a project template to start efficiently developing an application in MFC with a dialog window already pre-configured as the main window.

The templates are available for Visual Studio versions 2019 and 2022

Template Installation

Installing these templates is very simple, first of all you need to download one of the two ZIP files for the corresponding version of Visual Studio

How to set up Visual Studio Code for developing Visual C++ Win32 and MFC Applications

This guide shows how to configure Visual Studio Code to compile Visual C++ and MFC applications without using Visual Studio.

Step 1

First of all you need to download and install Visual Studio Code and the Build Tools:

@Sorecchione07435
Sorecchione07435 / CAB Maker.md
Last active April 24, 2025 14:49
CAB Maker

CAB Maker

screenshot

CAB Maker is a powerful and versatile tool for creating CAB files on Windows systems. Whether you are an IT professional who needs to distribute software or a user who wants to archive files efficiently, CAB Maker offers all the necessary minimum features to get the job done quickly and easily, great even for beginners.

Have the ability to choose the type of Cabinet compression, post-creation options and the directory to which all files in the CAB will be compressed

Main Features

@Sorecchione07435
Sorecchione07435 / Visual C++: Entity Definitions.md
Last active August 11, 2024 11:46
Argument between Declaration and Definition of an Entity in Visual C++ / C++

Visual C++ / C++ : Entity Declarations and Definitions

What is a Declaration

In programming, a declaration is a statement that informs the compiler or linker of the existence of a new entity. This entity can be a variable, a function, a class, a user-defined type, or any other member that can be used in the code.ù

What is a Definition

In programming, a definition is a statement that reserves memory space for a variable or function/method with or without arguments. Some types of definitions include the body of the function or member while others define only in one line such as static variables.

declarations are usually done inside the class and definitions are done in the class source file