HOWTO integrate NASM with VS2019

Occasionally I use assembler to squeeze processing power from my programs. A cheap solution was C inline assembler sections, but VS2019 doesn’t support them into a 64-bits program.  Other compilers use other more or less complex solutions (IBM assembler, …). This forced me to consider having & link .asm files in my projects.  I can split them with 32 and 64 bits code and compile … Continue reading HOWTO integrate NASM with VS2019 »

HOWTO fix Performance Monitor ‘unable to add counter’ errors

Several days ago, I started Performance Monitor, and I tripped the following error: Unable to add these counters: \Memory\Available MBytes \Memory\% Committed Bytes In Use \Memory\Cache Faults/sec \Memory\Cache Faults/sec \PhysicalDisk(*)\%Idle Time \PhysicalDisk(*)\Avg. Disk Queue Length \Network Interface(*)\Bytes Total/sec Looking around, I found and followed this article. The Solution I fixed the problem by executing the following command from an administrative Command Prompt window: lodctr /r … Continue reading HOWTO fix Performance Monitor ‘unable to add counter’ errors »

HOWTO enable/disable PING on Windows 10 firewall by command prompt

In windows 10, the firewall blocks PING command messages by default. I presume that this setting is to improve the security of our PCs, but sometimes we need it because we have to investigate about network problems, … Since I find that wandering into hundreds of firewall rules quite annoying, then I found the command lines to enable/disable the related firewall rules from an Administrative … Continue reading HOWTO enable/disable PING on Windows 10 firewall by command prompt »

HOWTO install a driver .INF by command line

Up to now, there are different ways to install a device driver: by a dedicated setup file by the manufacturer. by using Device Manager to update it of a previously installed device. by File Explorer right-click menu. … by script or command line This last option can be useful if you need to include in a script the driver installation, or in a troubleshooting phase … Continue reading HOWTO install a driver .INF by command line »

Few Considerations About Functions Returning an Object

I am rewriting a VCL program using MFC, and I have converted many functions of this kind: CString MyFunction () { return L”Sample test”; } This kind of function declaration is comfortable, but the question is: is it also convenient?   The answer I found is that it might not be so convenient, especially if used inside a loop. When we call this function, we … Continue reading Few Considerations About Functions Returning an Object »

HOWTO compact vhd/vhdx Hyper-V files

It happened that the usual compact disk from Hyper-V Console doesn’t seem to be effective on one of mine .vhdx file. Looking around on the web, I discovered that it is a quite common problem. The solution is to open a Powershell window with administrative access rights, and use the following command: optimize-vhd <offline Hyper-V disk file> -mode full For further details about this command, … Continue reading HOWTO compact vhd/vhdx Hyper-V files »

HOWTO use GIT with SVN server

Introduction During COVID-Lockdown, one of the challenges is to understand how to smartwork as best as possible. One of my problems is that I haven’t a remote access to SVN server. I began to wonder if and how GIT can alleviate my smartwork problems. The found answer is: yes, it can. Both repository types have their strong and weak points. My personal impression is that … Continue reading HOWTO use GIT with SVN server »