-
C++樹林
[C++] How to Use std::thread | How to Create Threads and Execute Functions in Parallel
Introduction Since C++11, the standard library <thread> has supported multi-threaded programming at the language level. This allows you to implement parallel processing, such as performing heavy calculations in the background while... -
C++樹林
[C++] Introduction to Structs | Thorough Explanation from Definition to Initialization and Assignment
Introduction In programming, when you want to manage "Student" information, multiple different pieces of data are related, such as "Student ID (int type)," "Name (string type)," and "Average Score (double type)." Managing these variables... -
C++樹林
Speed Up C++ with Just One Line! Intro to For Loop Parallelization with OpenMP
"Is this heavy loop processing too slow?" In C++ development, the execution speed of computationally intensive for-loops is always a challenge. Modern CPUs usually have multiple cores. It is a waste not to use this power. In this article... -
C++樹林
[C++] How to Use std::tuple | How to Group Multiple Values of Different Types
Introduction In C++, there are cases where you want to return multiple values from a function or temporarily handle data of several different types in a single variable. For this purpose, the std::tuple class was introduced in C++11. std... -
C++樹林
[C++/C] Introduction to Struct Pointers | Getting Addresses (&) and Accessing Members
Introduction One of the powerful features of C++ and C is "pointers." A pointer is a special variable used to hold the memory address where a variable is stored. You can also use this pointer mechanism for structures. By declaring a "poi... -
C++樹林
[Unlocking Performance: Introduction to High-Speed Mutual Exclusion with Atomic]
The most common way to share data safely between threads is locking with Mutex. However, locks can cause thread waiting (blocking) and often become performance bottlenecks. In this article, I will explain atomic operations, a lower-level... -
C++樹林
[C++] Basics of Standard Output with cout | How to Display Text and Numbers on Screen
Introduction In learning C++, displaying results on the console (black screen) to check program behavior and variable contents is the most basic operation. This standard output function is provided by std::cout (short for character outpu... -
C++樹林
[C++20] How to Determine Endianness and Convert Byte Order (std::endian, std::byteswap)
Introduction When exchanging data between different systems, such as in network communication or reading/writing binary files, the difference in Endianness (Byte Order) can be a problem. Endianness refers to the order in which data consi... -
C++樹林
[C++] How to Use noexcept | Explicitly Stating No Exceptions Are Thrown
Introduction In C++, functions potentially throw exceptions. However, there are many functions, such as getter functions or move constructors, that we know "will absolutely not throw an exception." The noexcept specifier, introduced in C... -
C++樹林
[C++17] How to Use std::filesystem::path | Constructing and Concatenating Paths
Introduction The <filesystem> library introduced in C++17 provides the std::filesystem::path class for handling file system paths uniformly. This path object abstracts differences in path separators between operating systems (such ... -
C++樹林
[C++] How to Use std::thread::detach() | Detaching Threads for Background Execution
Introduction In C++, after starting a thread with std::thread, you typically need to wait for it to finish using .join(). However, there are times when you want to "start it and leave it to finish in the background" without the main thre... -
C++樹林
[C++] Introduction to Class Inheritance | How to Create New Classes by Reusing Existing Ones
Introduction "Inheritance" is one of the three pillars of Object-Oriented Programming. It is a powerful mechanism that allows you to define a new class by inheriting the functions (member variables and member functions) of an existing cl... -
C++樹林
[C++] Basic Operations of std::string | Explaining Assignment, Concatenation, and Comparison
Introduction The std::string class in C++ is designed to resolve the complexity and dangers associated with C-style char arrays, allowing you to handle strings safely and intuitively. You can perform various operations with natural synta... -
C++樹林
[C++17] How to Use std::string_view | Avoid String Copying and Improve Performance
In C++, when passing a string to a function, it has been common practice to use const std::string& as the argument. However, this method has performance issues. If you try to pass a C-style string literal (e.g., "Hello") to such a fu... -
VBA樹林
[VBA] How to Output Data Scanned with Pasori RC-S300 to Excel
Background I wanted to see if I could use the data inside a card using a contactless IC card reader, so I studied how to achieve this. Install the Driver First, download the driver from the link below and install the exe file. https://ww... -
VBA樹林
[VBA] How to Paste an Excel Table into Outlook
Environment Windows Specification: Windows 10 Pro Version: 20H2 Background I investigated whether it is possible to paste a table created in Excel into an Outlook email using VBA. Using ".GetInspector().WordEditor.Windows(1).Selection.Pa... -
VBA樹林
[VBA] How to Set Today’s Date as the Default Value in a UserForm TextBox
Environment Windows Specification: Windows 10 Pro Version: 20H2 Background I decided to create a text box in a UserForm using VBA to enter a date. Initially, it was blank, but there was a request to "insert today's date by default," so I... -
VBA樹林
[VBA] How to Add Line Breaks to Outlook Email Body
Environment Windows Specification: Windows 10 Pro Version: 20H2 Background I tried sending an email using VBA, but the line breaks in the body did not work properly, and the text was output as a single continuous line. Therefore, I learn... -
VBA樹林
[VBA] How to Open External Excel Files in the Background Using ScreenUpdating
When you implement a process to open an external Excel file using Excel VBA, the target file often fills the screen and gets in the way. In this article, I learned how to open files in the background and suppress screen updates, so I wil... -
VBA樹林
[VBA] Error “Outlook Does Not Recognize One or More Names” at objMail.Send
Environment Windows Specification: Windows 10 Pro Version: 20H2 Background When I tried to send an email using VBA, I received the error "Outlook does not recognize one or more names." When debugging, the error pointed to objMail.Send. I... -
VBA樹林
[VBA] How to Use “Shift + Ctrl + Down” and “Shift + Ctrl + Right”
Environment Windows Specification: Windows 10 Pro Version: 20H2 Background I wanted to use Excel's shortcuts "Shift + Ctrl + Down" and "Shift + Ctrl + Right" in VBA, so I studied how to implement them. How to Write the Code You can write... -
VBA樹林
“Microsoft MonthView Control” is Missing [VBA]
Environment Windows Specification: Windows 10 Pro Version: 20H2 Excel Version: 2108 Background I created a Gantt chart, but entering dates manually was tedious, so I thought of a way to click dates on a calendar. I searched and found tha... -
Excel樹林
[Power Query x VBA] How to Create a Macro to Automatically Apply “F2” + “Enter” to All Cells
When importing data with Power Query, cell values sometimes do not end up as the intended data type. For example, numbers or dates may not be recognized correctly, preventing expected calculations or display. I confirmed that manually do... -
VBA樹林
[Excel VBA] Complete Print Settings with One Click! With Code Explanation
When printing a sheet created in Excel, do you often want to "fit it to one page," "set it to portrait," or "set it to A4 size"? Manually configuring these settings every time is a hassle, but with VBA, you can complete it with a single ... -
VBA樹林
[VBA] How to Attach the Currently Open File in Outlook
Environment Windows Specification: Windows 10 Pro Version: 20H2 Background I was able to send emails using VBA, but I also wanted to attach the file I was currently working on. I studied how to do this and found the solution. Using "Atta... -
VBA樹林
[[VBA] How to Automatically Move to a Specified Cell After Pressing Enter]
Background In Excel, when input items are scattered, moving back and forth between cells can be tedious. In my case, the cells to be entered were scattered like "A1", "C4", and "F3", and I felt it was a hassle to move with the mouse or a... -
Excel樹林
[Power Query x VBA] How to Create a “Refresh All” Button
When importing data using Power Query in Excel, clicking the [Refresh All] button in the "Data" tab every time can be annoying. In this article, I created a macro using VBA to execute [Refresh All] with a single button click to improve e... -
VBA樹林
[How to Automatically Insert and Reset Images in Excel VBA]
Let's create two macros using Excel VBA: one to automatically place images from a folder into specific cells, and another to delete all placed images with a single click. These codes will allow you to easily arrange images on an Excel sh... -
VBA樹林
[VBA] Difference Between “Exit Sub” and “End” for Stopping Macros: How to Use Them Correctly
When creating macros in VBA, there are often situations where you want to stop processing midway if specific conditions are met. Common examples include "a required file is not found" or "a mandatory input cell is blank." VBA provides Ex... -
VBA樹林
[VBA] How to Reproduce “Ctrl + F” Search Function | Usage of Find Method
Environment OS: Windows 10 Pro (Version: 20H2) Software: Microsoft Excel VBA Background I learned how to reproduce the "Ctrl + F" search function in Excel using VBA to find specific strings within cells. Solution: Use the Find Method In ...