跨DLL的C++单例模式
2025-04-01
在大型C++项目中,通常会将不同的功能模块分割成多个DLL。每个DLL在编译时都会有自己的全局变量和静态变量,若需要在多个DLL之间共享某些数据,或者确保某个资源(如单例对象)在多个DLL中只有一个实例时,如何实现跨DLL的单例模式便成为一个常见的挑战。
1610 字
|
8 分钟
Markdown Extended Features
Read more about Markdown features in Fuwari
156 字
|
1 分钟
Simple Guides for Fuwari
How to use this blog template.
160 字
|
1 分钟
Cover Image of the Post
Markdown Example
A simple example of a Markdown blog post.
444 字
|
2 分钟
Include Video in the Posts
This post demonstrates how to include embedded video in a blog post.
61 字
|
1 分钟
1