Monday, November 30, 2020

Windows Message research

Windows Message research

    Complete Message Queue list to print out

  1. List Of Windows Messages
  2. complelte list and need to have a copy

  3. TREK HOW TO BUILD A VISUAL C++ DISPLAY TUTORIAL
  4. a good demo from nasa.gov

  5. Libraries Documentation
  6. Good examples to jump start

  7. Messages and Commands
  8. QUE book:Special Edition Using Visual C++ 6

    Understanding Message Routing If there is one thing that sets Windows programming apart from other kinds of programming, it is messages. Most DOS programs, for example, relied on watching (sometimes called polling) possible sources of input like the keyboard or the mouse to await input from them. A program that wasn't polling the mouse would not react to mouse input. In contrast, everything that happens in a Windows program is mediated by messages. A message is a way for the operating system to tell an application that something has happened--for example, the user has typed, clicked, or moved the mouse, or the printer has become available. A window (and every screen element is a window) can also send a message to another window, and typically most windows react to messages by passing a slightly different message along to another window. MFC has made it much easier to deal with messages, but you must understand what is going on beneath the surface.

    Messages are all referred to by their names, though the operating system uses integers to refer to them. An enormous list of #define statements connects names to numbers and lets Windows programmers talk about WM_PAINT or WM_SIZE or whatever message they need to talk about. (The WM stands for Window Message.) An excerpt from that list is shown in Listing 3.1.

  9. Understanding the Message Loop
  10. Understanding the Message Loop Understanding the message loop and entire message sending structure of windows programs is essential in order to write anything but the most trivial programs. Now that we've tried out message handling a little, we should look a little deeper into the whole process, as things can get very confusing later on if you don't understand why things happen the way they do.

    What is a Message? A message is an integer value. If you look up in your header files (which is good and common practice when investigating the workings of API's) you can find things like:

  11. Getting Started
  12. note: compile that small example as test.c under /Subsystem:Windows. otherwise it won't work!

    If that doesn't work, your first step is to read whatever errors you get and if you don't understand them, look them up in the help or whatever documents accompany your compiler. Make sure you have specified a Win32 GUI (NOT "Console") project/makefile/target, whatever applies to your compiler. Unfortunately I can't help much with this part either, as errors and how to fix them vary from compiler to compiler (and person to person).

  13. Handling Messages
  14. Solutions to Common Errors
  15. Microsoft Examples

  16. WM_LBUTTONDOWN message
  17. Module 1. Your First Windows Program
  18. Window Messages
  19. How to get the error message from the error code returned by GetLastError()?
  20. tenouk.com good demos

  21. Module 2: Getting Started with Visual C++ 6.0 AppWizard 1
  22. Module 2: Getting Started with Visual C++ 6.0 AppWizard 2
  23. Module 3: Basic Event Handling, Mapping Modes, and a Scrolling View 1
  24. Module 3a: Basic Event Handling, Mapping Modes, and a Scrolling View 2
  25. Module 3b: Basic Event Handling, Mapping Modes, and a Scrolling View 3
  26. Module 4: The Graphics Device Interface (GDI), Colors, and Fonts 1
  27. Module 4: The Graphics Device Interface (GDI), Colors, and Fonts 2
  28. Module 4: The Graphics Device Interface (GDI), Colors, and Fonts 3

Saturday, November 28, 2020

software protection research continued

software protection research continued

    how to register my program?

  1. How to Register a Program
  2. it is very useful for me to put up my own framework to protect IP.

  3. Detect if your program is running inside a Virtual Machine
  4. Encryption Methods: How to Best Protect Your Data
  5. Zip and Unzip in the MFC way
  6. Inno Setup Dependency Installer
  7. Data Structures in Object Oriented Programming
  8. Object Oriented Programming with C++
  9. ZetScript Programming Language
  10. FMBomb - A Beginner's Approach to Hardware Programming
  11. Bird Programming Language: Part 1

MFC frameworks

MFC frameworks

  1. Painter Program
  2. very good MFC tab controls

  3. Ownerdraw Tab Controls - Borders and All
  4. CTabCtrlSSL - An easy to use, flexible extended tab control
  5. A multi document tabbed interface
  6. A Visual Framework (Views, Tabs and Splitters)
  7. CMyTabCtrl - Very Simple Dynamic Tab Control for MFC
  8. MFC Grid control 2.27
  9. A flicker issue in MDI applications
  10. CCustomTabCtrl - MFC Tab Control
  11. A Tabbed MDI Frame Window
  12. XP Themes Tab Control in any orientation
  13. Tabbed Dialog Box Class
  14. Automatic Tab Bar for MDI Frameworks
  15. DotNetMatrix: Simple Matrix Library for .NET
  16. Tabbed Dialog without Property Sheets
  17. how to register my program?

  18. How to Register a Program
  19. it is very useful for me to put up my own framework to protect IP.

  20. Detect if your program is running inside a Virtual Machine
  21. Encryption Methods: How to Best Protect Your Data
  22. Zip and Unzip in the MFC way
  23. Inno Setup Dependency Installer
  24. Data Structures in Object Oriented Programming
  25. Object Oriented Programming with C++
  26. ZetScript Programming Language
  27. FMBomb - A Beginner's Approach to Hardware Programming
  28. Bird Programming Language: Part 1

Friday, November 27, 2020

E1097: unknown attribute "no_init_all" in WinNT.h in Windows SDK 10.0.18362.0

E1097: unknown attribute "no_init_all" in WinNT.h in Windows SDK 10.0.18362.0

  1. E1097: unknown attribute "no_init_all" in WinNT.h in Windows SDK 10.0.18362.0
  2. Hello World driver won't compile correctly
  3. E1097: unknown attribute "no_init_all" in WinNT.h in Windows SDK 10.0.18362.0

ERROR: Cannot convert from 'const char [..]' to 'LPCTSTR'

FAQ: Cannot convert from 'const char [..]' to 'LPCTSTR'

  1. FAQ: Cannot convert from 'const char [..]' to 'LPCTSTR'
  2. Resolution

    You will have to do one of two things:

    1. Change your project configuration to use multibyte strings. Press ALT+F7 to open the properties, and navigate to Configuration Properties > General. Switch Character Set to "Use Multi-Byte Character Set".

    2. Indicate that the string literal, in this case "Hello world!" is of a specific encoding. This can be done through either prefixing it with L, such as L"Hello world!", or surrounding it with the generic _T("Hello world!") macro. The latter will expand to the L prefix if you are compiling for unicode (see #1), and nothing (indicating multi-byte) otherwise.

  3. How to convert string to LPCTSTR?
  4. Convert char * to wchar*
  5. “c++ convert const char* to LPCWSTR” Code Answer
  6. good website for developer: codegrepper.com

  7. All C++ Answers
  8. good website for developer: codegrepper.com

  9. Converting 'const char*' to 'LPCTSTR' for CreateDirectory
  10. cannot convert from 'const char *' to 'LPCTSTR'

Thursday, November 26, 2020

wstring topic

How to use wstring in C++?

  1. How to initialize and print a std::wstring?
  2. If you got multi-bytes characters in std::wstring, two more things need to be done to make it work:

    Include headers
    1. #include 2. #include 3. Set stdout mode
    _setmode(_fileno(stdout), _O_U16TEXT)

  3. std::basic_string
  4. std::wstring
  5. The C++ wstring type, the wide character string program example
  6. std::to_wstring
  7. std::to_wstring in c++
  8. How to cout a wstring or wchar_t in C++
  9. 17.1 — std::string and std::wstring
  10. These are the two classes that you will actually use. std::string is used for standard ascii and utf-8 strings. std::wstring is used for wide-character/unicode (utf-16) strings. There is no built-in class for utf-32 strings (though you should be able to extend your own from basic_string<> if you need one).

    Although you will directly use std::string and std::wstring, all of the string functionality is implemented in the basic_string<> class. String and wstring are able to access that functionality directly by virtue of being templated. Consequently, all of the functions presented will work for both string and wstring. However, because basic_string is a templated class, it also means the compiler will produce horrible looking template errors when you do something syntactically incorrect with a string or wstring. Don’t be intimidated by these errors; they look far worse than they are!

  11. 17.2 — std::string construction and destruction
  12. In this lesson, we’ll take a look at how to construct objects of std::string, as well as how to create strings from numbers and vice-versa.

  13. 17.3 — std::string length and capacity
  14. Once you’ve created strings, it’s often useful to know how long they are. This is where length and capacity operations come into play. We’ll also discuss various ways to convert std::string back into C-style strings, so you can use them with functions that expect strings of type char*.

  15. 17.4 — std::string character access and conversion to C-style arrays
  16. Character access There are two almost identical ways to access characters in a string. The easier to use and faster version is the overloaded operator[]:

  17. 17.5 — std::string assignment and swapping
  18. String assignment The easiest way to assign a value to a string is to use the overloaded operator= function. There is also an assign() member function that duplicates some of this functionality.

  19. 17.6 — std::string appending
  20. Appending Appending strings to the end of an existing string is easy using either operator+=, append(), or push_back() function.

  21. 17.7 — std::string inserting
  22. Inserting Inserting characters into an existing string can be done via the insert() function.

  23. 18.1 — Input and output (I/O) streams
  24. Microsoft string class

  25. basic_string Class
  26. The sequences controlled by an object of type basic_string are the Standard C++ string class and are usually referred to as strings, but they shouldn't be confused with the null-terminated C-style strings used throughout the C++ Standard Library. The Standard C++ string is a container that enables the use of strings as normal types, such as comparison and concatenation operations, iterators, C++ Standard Library algorithms, and copying and assigning with class allocator managed memory. If you need to convert a Standard C++ string to a null-terminated C-style string, use the basic_string::c_str member.

  27. C++ Code Examples for wstring file path
  28. C++ Code Examples for wstring wide
  29. C++ (Cpp) std::wstring Examples
  30. 对std::string和std::wstring区别的解释,807个赞同,有例子

Saturday, November 21, 2020

blitz++ numerical library

blitz++ numerical library

  1. Blitz++: Fast, Accurate Numerical Computing in C++
  2. Blitz++ User’s Guide
  3. Blitz++ Library
  4. How to quickly extract .tar.gz files on Windows 10

C++ report magazines

searched C++ report magazine and find some good links. collected here for future reference.

  1. A basic introduction to the uses of C++
  2. Overload Journal #1 - Apr 1993 + Programming Topics Author: Mike Toms

  3. Some Thoughts on Writing Classes
  4. Overload Journal #1 - Apr 1993 + Design of applications and programs Author: Francis Glassborow

    As some of you know I now present some of Richford's courses for serious programmers converting to C++. One of the benefits of such involvement is being made aware of the problems that face experienced pro­grammers when they first start writing their own class­es. The following are a few thoughts based on my observations.

  5. An Introduction to Object Orientation
  6. Overload Journal #1 - Apr 1993 + Programming Topics + Design of applications and programs Author: Mike Toms

  7. Class Struggle
  8. Overload Journal #2 - Jun 1993 + Programming Topics Author: Mike Toms

  9. Class Struggle
  10. Overload Journal #3 - Aug 1993 + Design of applications and programs Author: Mike Toms

  11. Uses of Classes with only Private and Protected Constructors
  12. Overload Journal #3 - Aug 1993 + Programming Topics Author: Francis Glassborow

  13. Managing Class Coupling
  14. Overload Journal #3 - Aug 1993 + Design of applications and programs Author: Frederic H. Wild III

  15. char* p vs char *p
  16. Overload Journal #4 - Feb 1994 + Programming Topics Author: Mike Toms

  17. new & delete
  18. Overload Journal #4 - Feb 1994 + Programming Topics Author: Francis Glassborow

  19. Operators for Arithmetic Classes
  20. Overload Journal #5 - Sep 1994 + Programming Topics Author: Francis Glassborow

    C++ report alternative

  21. The ACCU Overload journals
  22. C++ Report alternatives?
  23. The ACCU publishes two journals on paper and in electronic form: C Vu and Overload.

Virtual Constructor in C++

when I read "C++ Gems" book, there is one chapter mentioning this topic. so I did research and find many good articles. collected here for future reference.

  1. Advanced C++ | Virtual Constructor
  2. Can we make a class constructor virtual in C++ to create polymorphic objects? No. C++ being statically typed (the purpose of RTTI is different) language, it is meaningless to the C++ compiler to create an object polymorphically. The compiler must be aware of the class type to create the object. In other words, what type of object to be created is a compile-time decision from the C++ compiler perspective. If we make constructor virtual, compiler flags an error. In fact, except inline, no other keyword is allowed in the declaration of the constructor.

    In practical scenarios, we would need to create a derived class object in a class hierarchy based on some input. Putting in other words, object creation and object type are tightly coupled which forces modifications to extended. The objective of the virtual constructor is to decouple object creation from its type.

    How can we create the required type of an object at runtime? For example, see the following sample program.

  3. Virtual Constructor in C++
  4. The virtual mechanism works only when we have a base class pointer to a derived class object.

    In C++, the constructor cannot be virtual, because when a constructor of a class is executed there is no virtual table in the memory, means no virtual pointer defined yet. So, the constructor should always be non-virtual.

    But virtual destructor is possible.

  5. Why do we not have a virtual constructor in C++?
  6. More C++ Idioms/Virtual Constructor
  7. [20.8] What is a "virtual constructor"?
  8. Virtual constructor
  9. Inheritance — virtual functions ¶
  10. Inheritance — What your mother never told you
  11. In C++, why can’t a constructor be declared as virtual?
  12. virtual function specifier
  13. Virtual call from constructor or destructor
  14. FAQ: What is a "virtual constructor"?
  15. [20] Inheritance — virtual functions
  16. OOP50-CPP. Do not invoke virtual functions from constructors or destructors
  17. Inheritance
  18. Item 9: Never call virtual functions during construction or destruction.
  19. What are virtual functions?
  20. 12.3 — Virtual destructors, virtual assignment, and overriding virtualization
  21. why Can't we have virtual constructor but we have virtual destructor?
  22. C++ Calling (Pure) Virtual Members From Constructor Or Destructor
  23. Virtual Constructor in C++ and Java

Friday, November 20, 2020

VBA tutorials - video

VBA tutorials - video

    VBA concepts from Microsoft.com

  1. Selection Object
  2. Understanding Objects, Properties, and Methods
  3. VBA Macros Provide Yahoo Stock Quote Downloads in Excel 2007
  4. VB6 C# VB Code Converter
  5. Excel Molar Mass Calculator - Molecular Weight
  6. How to select cells/ranges by using Visual Basic procedures in Excel
  7. Compile error when you edit a VBA macro in the 64-bit version of an Office 2010 program
  8. VBA tutorial: create account here

  9. VBA Code Examples
  10. very good to use use Search the list below for free Excel VBA code examples complete with explanations.

    Some include downloadable files as well. These Excel VBA Macros & Scripts are professionally developed and ready-to-use.

    We hope you find this list useful!

  11. Learn VBA Online Tutorial for Beginners
  12. create an account to learn more tricks...

    Interactive VBA Tutorial

    Our interactive VBA tutorial is perfect for beginners or experienced users looking to brush up on their skills. Create a free account to save your progress and much more!

    What is macro in VBA?

    what are macros? Macros are what most people who write VBA code use. A macro (also can be referred to as a Procedure or Subroutine) is a grouping of code that performs a series of tasks or commands within a targeted computer program (aka Application).Jan 15, 2014

  13. What is VBA used for in Excel?
  14. on the left side panel, there are lot of good links to quick VBA practical start. need to take a look...

    What is VBA used for in Excel?

    VBA is used to write macros, which automate simple and complex tasks in Excel.

    Users of Microsoft Excel will often find themselves repeating the same series of tasks over and over again. Sometimes these are minor tasks like copy-pasting subsets of data to different sheets, and sometimes the tasks are more complex like uploading data to a website. With VBA, macros can be programmed to automate tasks like these, turning a series of manual operations into a single button click.

    Are VB and VBA the same?

    The VBA language is identical to Visual Basic 6.0. If you have experience writing VB6 code, you can write VBA.

    The VB Editor in Excel is a stripped-down version of the VB6 editor, with similar debugging capabilities and components like the ‘Project’ and ‘Properties’ windows. The Form editor is also very similar, although it has some limitations (like the inability to create control arrays).

    Less similar to VBA is Visual Basic .NET. Although these languages share many of the same keywords and syntaxes, the code between these languages is less interoperable. You wouldn’t have to re-write much (if anything) to port a procedure from VB6 to VBA, but you couldn’t do the same from VB.NET.

    What is the difference between a macro and VBA?

    VBA is just the language that macros are written with. If your macro is a story, VBA is the grammar and dictionary it’s written with.

    What is the difference between a macro and a script?

    Scripts use a limited subset of the Visual Basic language and are used for different purposes.

    Macros are stored inside Excel workbook files and can only be run from inside Excel. They’re typically used to automate various Excel functions and add extra functionality to workbooks.

    Scripts are stored in text files using the .VBS extension and can be run from inside Windows or executed by other programs. Sysadmins will use scripts to automate certain administrative tasks on a computer or network.

  15. VBA
  16. 300 good examples

  17. Run a Macro from the VB Editor
  18. Macros can also be run from the VB Editor. The VB Editor allows you to review a macro’s code and make any changes you want before running it.

    Must-see Videos

  19. Lesson 32.6 Spin Buttons in VBA
  20. VBA Lesson 1 - Intro to VBA Macros - from ExcelVBASQL.com 38+ hours of Free training
  21. Lesson 2.1 VBA Editor
  22. Lesson 3.1 Project Explorer
  23. it explains module well: 5 types. but generic module is important

  24. Lesson 4.1 Properties Window
  25. Lesson 5.1 Your First Macro
  26. sub, function

  27. Lesson 6.1 Variables
  28. Lesson 7.1 Debug Toolbar
  29. Lesson 8.1 Locals Window
  30. Lesson 9.1 Watch Window
  31. Lesson 10.1 Breakpoints
  32. Lesson 11.1 Scope Of Variables
  33. Lesson 12.1 Parameters In Sub Routines
  34. Lesson 13.1 Functions
  35. Lesson 14.1 Events
  36. Lesson 15.1 Basketball Class
  37. Lesson 16.1 References
  38. Lesson 17.1 Object Broswer
  39. Lesson 17. 2 Object Variables
  40. Lesson 32.7 Toggle Button in VBA
  41. Lesson 19.1 Relational Operators
  42. Lesson 27.1 Arrays
  43. Lesson 27.6 1D Dynamic Array
  44. Lesson 27.5 Populate a 2D Array from Excel
  45. Lesson 27.4 A real work example of Arrays in VBA
  46. Lesson 27.2 Populate And Loop Over and Array
  47. Lesson 27.3 Populate a 1D Array from a worksheet
  48. videos from British guy

  49. Excel Visual Basic (VBA) for Beginners - Part 1 of 4: Buttons and Macros
  50. Excel Visual Basic (VBA) for Beginners - Part 2 of 4: Change Cell Values
  51. Excel Visual Basic (VBA) for Beginners - Part 3 of 4: Positioning and Offset
  52. Excel Visual Basic (VBA) for Beginners - Part 4 of 4: Loops
  53. 17 Things Beginners Must Know About The Excel VBA Editor
  54. it demos how to use debugger. very useful.

    very good knowledge for common sense and basic stuff. we need them.

  55. Excel VBA to Move Data Around A File - How I Actually Do It! P1
  56. Excel VBA to Move Data Around A File - How I Actually Do It! P2
  57. How to Use Excel VBA Code - Real Example P1
  58. it has 13 posts

  59. 7 Excel VBA Essential Beginner Techniques: Execution
  60. 17 Things Beginners Must Know About The Excel VBA Editor
  61. need to watch this first. basics and debug tricks

  62. Excel VBA for Post-Beginners: (1/6) Series Introduction
  63. How To Create A Custom Navigation System In Excel - Part 1/6
  64. Before You Start Excel VBA, WATCH THIS!
  65. VB script tricks

  66. Compare Two Excel Files

easylanguage tutorials

easylanguage tutorials. search on youtube.com: "easylanguage tutorial"

  1. Learning TradeStation - Introduction to EasyLanguage
  2. EasyLanguage ABC's: Mastering TradeStation Programming w/Chris Kaiser
  3. Tutorial 161 | Using the Global Dictionary to transfer data from chart to chart and to RadarScreen
  4. markplex

Windows server 2019 standard version installation step by step

I have to migrate my Windows 2008 ENT server to 2019. before I did not take note well. now I try to document my step by step to install Windows server stadard version 2019 step by step.

  1. Installation of Windows Server 2019 Standard – Step by Step.
  2. good post with high quality.

  3. How to download and install Windows Server 2019 Step by Step
  4. How to Install Windows Server 2019 Step by Step
  5. Windows Server 2019 Full Review – What is new?
  6. How to enable Remote Desktop Protocol (RDP) on Windows Server 2019
  7. How to install OpenSSL on Windows Server 2019
  8. Install and Configure DHCP Server on Windows Server 2019
  9. How to Install Active Directory Domain Services in Windows Server 2019
  10. How to Upgrade Windows Server 2008 R2 to 2012 Standard
  11. this is another option to migrate
  12. Install Windows Terminal on Windows 10 | Server 2019
  13. How To Install SSL Certificate on IIS Web Server
  14. How To open a port in Windows Server Firewall
  15. video series

  16. Active Directory Tutorial for Beginners
  17. Active Directory Tutorial for Beginners
  18. What is Active Directory?
  19. Networking Command Line Tools
  20. 9 Command Prompt Commands You Should Know!

Wednesday, November 18, 2020

Link errors

Link errors

  1. Linker Errors, CString, ATL, MFC, and YOU!
  2. Linker errors due to CStringT template classes and ATL vs. MFC issues

    The goal in this article is to make a well behaved library that will link up without any special options specified in the consuming applications, other than importing the library, and including the header file.

  3. How to Pass Command Line Arguments to MSI Installer Custom Actions

Monday, November 16, 2020

math functions in C++

google:c++ math functions pdf

math functions in C++

    good books

  1. Are C++ Quant Interview Questions Stopping You From Getting The Job?
  2. Mathematical Constants in C++
  3. configuration caveat

  4. /Y- (Ignore Precompiled Header Options)
  5. M_PI works with math.h but not with cmath in Visual Studio
  6. required reading

  7. Functions in C++
  8. Functions 1: Predefined and Value-Returning Functions
  9. quick examples to test

  10. WikiBooks::C Programming/math.h
  11. math.h is a header file in the standard library of the C programming language designed for basic mathematical operations. Most of the functions involve the use of floating point numbers. C++ also implements these functions for compatibility reasons and declares them in the header cmath (the C99 functions are not available in the current C++ standard, C++ 98).

    All functions that take or return an angle work in radians.

    All functions take doubles for floating-point arguments, unless otherwise specified. In C99, to work with floats or long doubles, append an f or an l to the name, respectively.

    Mathematical library functions that operate on integers, such as abs, labs, div, and ldiv, are instead specified in the stdlib.h header.

  12. Mathematics: math.h
  13. C mathematical functions
  14. 2.5 Math Library: Functions and Constants
  15. Programmers must #include \< cmath \> to use the mathematical library. Including the cmath header file is sufficient to use the mathematical functions, such as those that calculate a square root or raise a number to a power. Including cmath is also sufficient, on most platforms, to use the symbolic constants such as the one for π, but the Microsoft Visual Studio compiler also requires #define _USE_MATH_DEFINES, which is placed before all of the #include and using statements.

  16. Math Constants
  17. Global Constants
  18. Global Variables
  19. C runtime Library Reference
  20. Standard library header
  21. Common mathematical functions
  22. CS 106B Lecture 2: C++ Functions
  23. Selected Math Library Functions
  24. C++ Mathematical Functions
  25. good posts

  26. C++ Math
  27. C++ Standard Library Function
  28. Functions (C++ Programming)
  29. Functions in C++
  30. C++ Mathematical Functions
  31. 8. Math library and system library built-in functions
  32. Lesson 12 - Mathematical functions in C++ - The cmath library

Error LNK1104 cannot open file 'C:\Demo_CPP\Ex8_05x\Debug\Ex8_05x.exe'

I got this error when I compile a demo project:

Error LNK1104 cannot open file 'C:\Demo_CPP\Ex8_05x\Debug\Ex8_05x.exe'

  1. LINK : fatal error LNK1104: cannot open file 'D:\…\MyProj.exe'
  2. Linker Tools Error LNK1104
  3. fatal error LNK1104: cannot open file

Thursday, November 12, 2020

TortoiseSVN practical guide and tricks

TortoiseSVN practical guide and tricks

my note to use TortoiseSVN to commit my new build:

0. remove Debug or Release folders before commit the source code.

1. create project with solution in the folder etc., which is default when you create project in Visual Studio. uncheck this option.

2. in the TortoiseSVN->settings-> ignore pattern: add "*\.vs". so we will not upload hidden files in folder .vs

  1. How to integrate TortoiseSVN into Visual Studio
  2. TortoiseSVN not save the password
  3. Chapter 4. Daily Use Guide
  4. Chapter 4. Daily Use Guide
  5. TortoiseSVN not save the password
  6. Turn off password saving in TortoiseSVN
  7. TortoiseSVN Password Decrypter is a free utility
  8. TortoiseSVN Password Decrypter is a free utility to view cached repository credentials that TortoiseSVN has saved on your PC.

    The tool is helpful if you checkmarked the "Save authentication" box at some point in the past, but have since forgotten the password you typed in.

  9. Make TortoiseSVN Always Prompt for Username and Password
  10. Extract TortoiseSVN saved password
  11. How to delete saved/cached passwords in SVN Tortoise
  12. Can i set password permanent in tortoiseSVN?
  13. TortoiseSVN asks for the credentials on Windows
  14. DevOps service

  15. Now available: Azure DevOps Server 2019
  16. Pricing for Azure DevOps

Wednesday, November 11, 2020

parser to evaluate expressions

parser to evaluate expressions

  1. Compiler Patterns
  2. Traces the evolution of a high-speed EXPRESSION EVALUATOR to demonstrate the various PATTERNS you will need to "roll your own" recursive descent compiler.

    Depending on the complexity of the grammar, a hand-built recursive descent compiler may actually be the best option. It can be quicker to implement than learning a compiler-compiler system, plus it avoids having to integrate the compiler-compiler's runtime into your source code base. But it also involves risks that must be carefully weighed.

  3. Talk:Comparison of parser generators
  4. A powerful function parser
  5. Fast Polymorphic Math Parser
  6. REG file parser using the Boost Spirit Parser Framework
  7. An Introduction to the Boost Spirit Parser framework
  8. Easily Create Your Own Parser
  9. Gold Parser Engine
  10. Gadget to Fetch Today's Gold Rates (India)
  11. Introduction to GOLD Parser
  12. Code Project Article FAQ
  13. GOLD Parsing System

extern keyword in C++

extern keyword in C++

    C++ basics

  1. Input/output via '\<'iostream'\>' and '\<'cstdio'\>'
  2. C++ FAQ
  3. Newbie Questions & Answers
  4. Learning C++
  5. good posts on extern keyword

  6. Quick Q: use of constexpr in header file
  7. Internal and External Linkage in C++
  8. Ever come across the terms internal and external linkage? Ever wanted to know what the extern keyword is for and what declaring something static does in the global scope? Then this post is for you.

    A translation unit refers to an implementation (.c/.cpp) file and all header (.h/.hpp) files it includes. If an object or function inside such a translation unit has internal linkage, then that specific symbol is only visible to the linker within that translation unit. If an object or function has external linkage, the linker can also see it when processing other translation units. The static keyword, when used in the global namespace, forces a symbol to have internal linkage. The extern keyword results in a symbol having external linkage.

  9. Understanding “extern” keyword in C
  10. extern (C++)
  11. C++ Programming
  12. When to use extern in C++
  13. C++ keywords: extern
  14. When to use extern in C/C++
  15. “extern” keyword in C
  16. Static Variables in C and C++ – File Level
  17. The extern Keyword
  18. Never Stop Writing Code
  19. Start Here:: Fay Williams:: good site and links
  20. 6.7 — External linkage
  21. Understanding the extern Keyword in C
  22. Global Variables and extern
  23. Understanding “extern” keyword in C
  24. “static” vs “extern”
  25. External variable
  26. 3.1. extern "C"
  27. The example details the extern keyword in C and C++
  28. Tenouk.com

  29. MODULE 20 C AND C++ STORAGE CLASSES
  30. constexpr vs. const

  31. Constants and Constant Expressions in C++11
  32. constexpr (C++)
  33. constexpr (C++)
  34. Understanding constexpr specifier in C++
  35. Difference between `constexpr` and `const`

Sunday, November 8, 2020

VBA translation to C/C++

VBA translation to C/C++

    quick configurations

  1. How To Enable Macros In Office Excel
  2. MS Excel 2007: Open the Visual Basic Editor
  3. quick examples

  4. Lesson 6: Mathematical Functions
  5. very good lessons

  6. Using VBA's Mathematical Functions
  7. Mathematical Operations in VBA
  8. good reference

  9. MS Excel: VBA Functions - Listed by Category
  10. Language reference for Visual Basic for Applications (VBA)
  11. Visual Basic conceptual topics
  12. Deconstruction of a VBA Code Module
  13. hands-on topics

  14. Excel VBA Tutorial – How to Write Code in a Spreadsheet Using Visual Basic
  15. VBA Editor Navigate to the Developer Tab, and click the Visual Basic button. A new window will pop up - this is the Visual Basic Editor. For the purposes of this tutorial, you just need to be familiar with the Project Explorer pane and the Property Properties pane.

  16. How To Add A Form Control Button To Run Your VBA Code
  17. Sub and function procedure
  18. User Forms
  19. Excel VBA Tutorial
  20. VBA Tutorial
  21. VBA stands for Visual Basic for Applications, an event-driven programming language from Microsoft. It is now predominantly used with Microsoft Office applications such as MSExcel, MS-Word and MS-Access. This tutorial teaches the basics of VBA. Each of the sections contain related topics with simple and useful examples.

  22. Moving on from Excel VBA to another programming language - what to choose?
  23. Tools for Excel/VBA and C++ Programming
  24. VBA Tutorial – The Ultimate Guide for Beginners
  25. Excel VBA Tutorial for Beginners: Learn in 3 Days
  26. Getting started with VBA in Office
  27. How do I open visual basic editor in excel 2007, atl+f11 doesn't work. I just started to use excel as a programmer( NOT USER) to create a custom form. Any help is appreciated.
  28. Getting started with VBA in Office
  29. Learning VBA in Excel
  30. Averaging...the easy way
  31. Updating version information at run-time
  32. Date function
  33. VBA:: Math functions

Wednesday, November 4, 2020

Windows update agent topic

Windows update agent topic

    COM basics

  1. Introduction to COM - What It Is and How to Use It.

  2. example on stackoverlow:Windows Update Agent pure win32 APIs
  3. Windows Update Agent API
  4. E1097: unknown attribute "no_init_all" in WinNT.h in Windows SDK 10.0.18362.0
  5. when I compiled the example on stackoverflow, I got this error message:

    Error (active) E1097 unknown attribute "no_init_all"

    E1097: unknown attribute "no_init_all" in WinNT.h in Windows SDK 10.0.18362.0

    solution is to add the following code into stdAfx.h file:

    #if (_MSC_VER >= 1915)
    #define no_init_all deprecated
    #endif

    There is a bug in WinNT.h in the latest Windows SDK (10.0.18362.0). There is the following code in WinNT.h to disable this warning:
    #if (_MSC_VER >= 1915)
    #pragma warning(disable:4845) // __declspec(no_init_all) used but d1initall not set
    #endif
    However, in the latest Windows SDK, this is no longer warning 4845, but is instead error 1097 (E1097: unknown attribute “no_init_all”).

    As a result this error now leaks out into the rest of the project.

  6. An Advanced Windows Hotfix Manager
  7. A GUI Front-End for Microsoft's Hotfix Checker Utility
  8. ClipSpy
  9. Sending and posting CString to windows via PostMessage, SendMessage Matt Gullett
  10. Using the Windows Update Agent API
  11. Improvements in version 7.6.7600.256 of Windows Update Agent
  12. DavidXanatos / wumgr
  13. Windows Update MiniTool 07.01.2020
  14. Windows Update Agent pure win32 APIs
  15. Windows Update Agent API
  16. wuapi.h header

Tuesday, November 3, 2020

error message: tchar is not defined

when I compiled the code "matrix library in C", I got following similar error messages. So I did research and find the solution to it.

tchar is not defined
_tchar is undefined
Error C3861 'printf': identifier not found MatrixLib c:\demo_cpp\matrixlib\matrixlib\matlib.h 16

another error is:
‘RAND_MAX’ undeclared (first use in this function)

  1. Why do I receive this error when generating a random float?
  2. TCHAR vs _TCHAR
  3. TCHAR and _TCHAR are identical, although since TCHAR doesn't have a leading underscore, Microsoft aren't allowed to reserved it as a keyword (imagine if you had a variable called TCHAR. Think what would happen). Hence TCHAR will not be #defined when Language Extensions are disabled (/Za).

    TCHAR is defined in winnt.h (which you'll get when you #include ), and also tchar.h under /Ze. _TCHAR is available only in tchar.h (which also #defines _TSCHAR and _TUCHAR). Those are unsigned/signed variants of the normal TCHAR data type.

    You've probably already read it, but just in case, the strings section of Codeproject has useful info.

  4. Articles by Michael Dunn (Articles: 68)
  5. String handling
  6. CString Management
  7. The Complete Guide to C++ Strings, Part I - Win32 Character Encodings
  8. The Complete Guide to C++ Strings, Part II - String Wrapper Classes
  9. The Code Project Visual C++ Forum FAQ
  10. Some Time-Saving Commands and Key Remappings for the VC IDE

C++ standard library

C++ standard library

  1. MODULE 23a - C++ NAMESPACES 2
    • C++ library entities such as functions and classes are declared or/and defined in one or more standard headers. To make use of a library entity in a program, as in C program, we have to include them using the include preprocessor directive, #include.
    • The Standard C++ library headers as shown in Table 23.1 together with the 16 Standard C headers (C++ wrappers - get the ideas of the wrappersswig.org) shown in Table 23.2, constitute an implementation of the C++ library.
    • If you want to use functions, structure, macros and other built-in item available in the Standard C headers in C++ programming environment or ISO/IEC C++ compilers, use the C++ wrappers.
    • These C++ wrappers are C headers that prefixed by c character such as from .
    • Other than those ISO/IEC C and ISO/IEC C++ Standard headers should be implementation dependant, it is non standard. Keep in mind that there are a lot more non standard headers that you will find.

  2. C Standard Library Reference Tutorial
  3. Useful resources:: ISO/IEC standard
  4. C library function - malloc()
  5. The C++ Standard Library Tutorial
  6. C++ New Library - operator delete[]
  7. operator delete, operator delete[]
  8. new and delete operators
  9. delete() in C++
  10. new and delete operators in C++ for dynamic memory
  11. My Rant on C++'s operator new
  12. Why shouldn't C++ operator new/delete/variants be in header files?
  13. C++ Memory Management: new and delete
  14. An Introductory STL tutorial
  15. Practical Guide to STL
  16. How to wrap an MFC collection into an STL compliant iterator with the Boost iterator_facade
  17. find_first_of: A performance pitfall among the STL algorithms
  18. An Addition to Smart List classes