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