Saturday, November 6, 2021

Windows commands

keyword:dos script folder nul

    Cores

  1. Batch Script - Quick Guide
  2. Batch Script - Overview Batch Script is incorporated to automate command sequences which are repetitive in nature. Scripting is a way by which one can alleviate this necessity by automating these command sequences in order to make one’s life at the shell easier and more productive. In most organizations, Batch Script is incorporated in some way or the other to automate stuff.

  3. Batch file
  4. A batch file is a script file in DOS, OS/2 and Microsoft Windows. It consists of a series of commands to be executed by the command-line interpreter, stored in a plain text file. A batch file may contain any command the interpreter accepts interactively and use constructs that enable conditional branching and looping within the batch file, such as IF, FOR, and GOTO labels. The term "batch" is from batch processing, meaning "non-interactive execution", though a batch file may not process a batch of multiple data..

    Minors

  5. What is 'nul' in batch file?
  6. This is a paragraph.

  7. Windows Batch Scripts
  8. Complete Examples.

  9. Non-Functional enhancement to relocate script
  10. Non-Functional enhancement to relocate script.

  11. Check whether a file/folder exists, with cmd command-line (NOT batch script)
  12. The solution when the resource is a file it is pretty straight-forward as indicated by others:.

  13. Check whether a file/folder exists, with cmd command-line (NOT batch script)
  14. This is a paragraph.

  15. How can I delete all files/subfolders in a given folder via the command prompt?
  16. How can I delete all files/subfolders in a given folder via the command prompt?.

  17. COPY
  18. Copy one or more files to another location.

  19. DELTREE - Delete all subfolders and files.
  20. Very old versions of Windows (Windows 95 and earlier) had the DELTREE command to delete all sub-folders and files. Newer versions of Windows do not have this command, but we can easily write a short batch script to do the same thing.

    Deleting from the command line is significantly faster than using Windows Explorer, often seconds instead of minutes, there is no running calculation of file sizes and no recycle bin. This does mean there is no possibility of an undo other than restoring a backup..

Case Study 12: Get OS versions

check OS version

  1. Easily Get and Compare OS Version Information
  2. A couple of classes to make checking the host OS version easy and error-free.

  3. This is a paragraph.

  4. This is a paragraph.

  5. This is a paragraph.

  6. This is a paragraph.

  7. This is a paragraph.

  8. This is a paragraph.

  9. This is a paragraph.

  10. This is a paragraph.

  11. This is a paragraph.

  12. This is a paragraph.

  13. This is a paragraph.

  14. This is a paragraph.

  15. This is a paragraph.

  16. This is a paragraph.

  17. This is a paragraph.

  18. This is a paragraph.

  19. This is a paragraph.

Case Study 11: Registry Diff tool

Case Study 11: Registry Diff tool .

keyword:diff

  1. Declaration conflicts in win32 static library in visual studio 2017
  2. my own research error.

  3. 2 overloads have similar conversions
  4. A similar question to this C++ Function Overloading Similar Conversions has been asked and i understand the general premise of the problem. Looking for a solution..

  5. Compiler Error C2666 : Microsoft site
  6. identifier' : number overloads have similar conversions
    An overloaded function or operator is ambiguous. Formal parameter lists may be too similar for the compiler to resolve the ambiguity. To resolve this error, explicitly cast one or more of the actual parameters..

  7. 3 overloads have similar conversions Error
  8. Im posting this to c.l.c++ AND win32 because i dont know if this is a MS Compiler Issue or not..

    Diff Tools

  9. Diff Tool
  10. simple diff tool, usable on arbitrary file formats, with a nice HTML rendering.

  11. Import/Export Registry Sections as XML
  12. Export registry sections as XML to simplify registry diffs.

  13. Are there any free Xml Diff/Merge tools available? [closed]
  14. good links.

  15. RGDiff - Visual Diff Tool
  16. Capture results from GNU Diff and display visually..

  17. A Windows Installer Database Diff Tool
  18. A command line tool that generates XML and/or HTML Diff reports of two Windows installer databases.

  19. V Diff - A File Comparer with visual output
  20. A simple program that uses the LCS algorithm to compare two files.

  21. NLineDiff: A diff Implementation for Text Files
  22. An entry for the Lean and Mean competition.

  23. NLineDiffConsole: A Console diff Implementation for Text Files
  24. An entry for the Lean and Mean competition

  25. NDiffDiff: A Diff Implementation for Lines and Chars in Text Files
  26. An entry for the Lean and Mean competition

  27. Investigating Myers' diff algorithm: Part 1 of 2
  28. The basic greedy algorithm..

  29. Investigating Myers' Diff Algorithm: Part 2 of 2
  30. The linear space refinement.

  31. LCS based generic diff in VB.NET
  32. How to create a diff script for a list of objects in VB.NET..

  33. Code Lean and Mean File DIFF (FIFF) Application
  34. This article presents an application that calculates and displays the changes between two text files..

  35. DIFF: Your IRdcLibrary API for Remote Differential Compression
  36. A quick library for differential memory/file processing.

  37. PSFileDiff - A Response to the File diff CodeProject Contest
  38. This project is a response to the file diff. CodeProject contest due August 31st, 2009.

  39. Periodic XML Diff Checker
  40. It repeatedly checks XML of some subjects, and shows the difference from the previous result..

    HTML/CSS rendering tool

  41. litehtml/litehtml Public
  42. itehtml is the lightweight HTML rendering engine with CSS2/CSS3 support. Note that litehtml itself does not draw any text, pictures or other graphics and that litehtml does not depend on any image/draw/font library. You are free to use any library to draw images, fonts and any other graphics. litehtml just parses HTML/CSS and places the HTML elements into the correct positions (renders HTML). To draw the HTML elements you have to implement the simple callback interface document_container. This interface is really simple, check it out! The document_container implementation is required to render HTML correctly..

  43. litehtml: Lightweight HTML/CSS rendering engine.
  44. Lightweight HTML/CSS rendering engine.ph.

  45. litehtml/litebrowser
  46. lite browser.

Monday, November 1, 2021

Case Study 10: MFC with SQLite

Case Study 10: MFC with SQLite

    Prerequsite

  1. What is SQLite3?
  2. SQLite3 is a compact free database you can use easily to create and use a database. Learn more about it in this blog post.

  3. Installing and Using SQLite on Windows
  4. How to install and use SQLite on Windows.

  5. Basic Git Command Line Reference for Windows Users
  6. While there are GUI interfaces available for GIT (some good, some bad), familiarity with at least the basics of git’s command line interface can only enhance your ability to use the tool to maximum effectiveness..

  7. Creating A Basic Make File for Compiling C Code
  8. The basics of compiling C code and using Makefiles.

  9. Getting Started with Git for the Windows Developer (Part III) - Working with Files Using Bash
  10. Third part in a series focused on getting familiar with Git for Windows developers.

    Case Study

  11. SQLite
  12. SQLite access C++ classes.

  13. Starting with SQLite in C++
  14. TIn this article, I share my experience creating and compiling a simple C++ program using SQLite to store data..

  15. SQLiteTbl, A C++ class that provides a CRecordSet like interface for SQLite
  16. A CRecordSet like interface for a SQLite database table..

  17. GtCalc: A C++ Spreadsheet Control for GT Graphical User Interface Library
  18. GtCalc is a spreadsheet library for the GT Graphical User Interface Library.

  19. SQLDevKit: A C++ Object Oriented Wrapper to SQLite
  20. The SQL Developer Kit, or SQD, is an interface wrapper around the SQLite 3 Database engine..

  21. SQLite3 MFC Wrapper
  22. A SQLite3 MFC wrapper with Unicode/Pocket PC 2003 support.

  23. An Easy to Use Wrapper for SQLite3 (Totally Free Embedded Database Engine!)
  24. I have created classes to wrap the SQLite3 library, to remove many headaches....

  25. CppSQLite - C++ Wrapper for SQLite
  26. C++ wrapper around the SQLite embedded database library..

  27. This is a paragraph.

  28. This is a paragraph.

  29. This is a paragraph.

  30. This is a paragraph.

  31. This is a paragraph.

  32. This is a paragraph.

  33. This is a paragraph.

Case Study 9: Logging classes

Case Study 9: Logging classes

  1. Advanced Logging For All Kind of Applications
  2. Simple to use classes for logging and tracing.

  3. This is a paragraph.

  4. This is a paragraph.

  5. This is a paragraph.

  6. This is a paragraph.

  7. This is a paragraph.

  8. This is a paragraph.

  9. This is a paragraph.

  10. This is a paragraph.

  11. This is a paragraph.

  12. This is a paragraph.

  13. This is a paragraph.

  14. This is a paragraph.

  15. This is a paragraph.

  16. This is a paragraph.

  17. This is a paragraph.

  18. This is a paragraph.

  19. This is a paragraph.

Case Study 8: MFC with registry classes

Case Study 8: MFC with registry classes

  1. NtRegEdit - Native Registry Editor
  2. A replacement for the Registry Editor by Microsoft..

  3. Cryptest (MFC Style Crypto++ v4.2 Library GUI).
  4. A GUI version of the Crypto++ v4.2 Library that was written by Wei Dai..

  5. Registry Manipulation Using NT Native APIs
  6. An article on manipulating the registry using NT Native APIs..

  7. String Tokenizer Class (CTokenEx)
  8. A very simple string tokenizer class..

  9. Encrypting Log Files
  10. Demonstrates using encryption to protect sensitive application log file data..

  11. Simple registry class Enhancement
  12. A simple class which simplifies working with registry values and history items lists..

  13. How to read/dump/compare registry hives
  14. Malware can hide from win32 api but not from this tool since we are dumping reg hives directly

  15. Application Settings the .NET way. INI, Registry, or XML
  16. In this article, I’ll explain how you can easily store and retrieve your application settings with just a few lines of code.

  17. A handy class to make use of Windows Registry
  18. Registry Comparator (GUI) in C#
  19. Registry hive reader and comparator..

  20. CRegisterEx - a registry wrapper class
  21. An easy to use all-in-one registry class

  22. Very secure method to save and restore registry
  23. This article gives a very secure method to save and restore registry keys. It provides a ready to use tool in both command-line and UI modes..

  24. How to Save and Restore Registry Keys
  25. This article shows how to save and restore registry keys and provides a command-line tool demonstrating how to do it..

  26. MSI Packages Manager
  27. This article shows how to process one or many MSI packages just by providing a configuration file. It gives also many useful hints and tricks that can be used in other projects..

  28. Template C++ wrapper for Windows registry
  29. What properties has some proper C++ wrapper class? Let's formalize it for example for Windows registry..

    good exercise for my class understanding...

  30. CHKLM v1.1 - Registry Access
  31. A Freeware MFC class to write to HKEY_LOCAL_MACHINE..

  32. Happy Registry: A Quick Wrapper for the Win32 Database
  33. A simple template for manipulating the registry.

Saturday, October 30, 2021

WIN32 vs. _WIN32

_WIN32 vs. WIN32

  1. Predefined macros
  2. The Microsoft C/C++ compiler (MSVC) predefines certain preprocessor macros, depending on the language (C or C++), the compilation target, and the chosen compiler options.

    MSVC supports the predefined preprocessor macros required by the ANSI/ISO C99, C11, and C17 standards, and the ISO C++14 and C++17 standards. The implementation also supports several more Microsoft-specific preprocessor macros. Some macros are defined only for specific build environments or compiler options. Except where noted, the macros are defined throughout a translation unit as if they were specified as /D compiler option arguments. When defined, the macros are expanded to the specified values by the preprocessor before compilation. The predefined macros take no arguments and can't be redefined..

  3. What's the difference between the WIN32 and _WIN32 defines in C++
  4. I know that WIN32 denotes win32 compilation but what is _WIN32 used for?.

  5. QM BITES: UNDERSTAND WINDOWS OS IDENTIFICATION PREPROCESSOR MACROS
  6. There’s confusion between user-defined and predefined Windows 32/64-bit operating-system identification macros. Matthew Wilson shines light on the issue..

  7. Both _WIN32 and _WIN64 are defined when targeting 32-bit windows from 64-bit windows #1062
  8. Both _WIN32 and _WIN64 are defined when targeting 32-bit windows from 64-bit windows #1062.

  9. Option to remove _WIN32 define for Windows platform #1235
  10. This is a paragraphIn issue #185 Bob wrote:

    _WIN32 and MACH should be defined already on the relevant platforms, but if there are additional defines that you need to define, you can add them to the "defines" array in your c_cpp_properties.json file.

    We have some common code for windows and embedded systems. When developing firmware for embedded systems having _WIN32 defined in #ifdef branches causes some extra includes, which are not available and rises errors about missing headers. Is it possible to remove _WIN32 define?

    Suggestion: do not force _WIN32 define. Leave it as default for windows platform but add an option to remove it..

  11. Should I define both _WIN32 and _WIN64 in 64bit build?
  12. When we add a 64bit configuration from a 32bit project that has already existed, Visual Studio copies the 32bit configurations by default. VS even copies _WIN32 All my 64bit projects define also _WIN32 now, despite they(64bit PEs) never can run on 32bit Windows. It is very uncomfortable to me.

    I'd like to remove the _WIN32 if it doesn't have any problem. I'm not sure about that. Is it okay if I remove the _WIN32 definition?.

  13. WIN32 versus _WIN32
  14. n the many projects I have been involved in I see a very mixed bag. And more importantly, what is the right thing to do?.

  15. The difference between WIN32 and _WIN32
  16. The difference between WIN32 and _WIN32.

  17. What's the difference between the WIN32 and _WIN32 defines in C++
  18. I know that WIN32 denotes win32 compilation but what is _WIN32 used for?.

  19. This is a paragraph.

  20. This is a paragraph.

  21. This is a paragraph.

  22. This is a paragraph.

  23. This is a paragraph.

  24. This is a paragraph.

  25. This is a paragraph.

  26. This is a paragraph.

  27. This is a paragraph.