Skip to content

Commit f671e6a

Browse files
author
Colin Robertson
committed
Fix capitalization errors
1 parent c8e1a07 commit f671e6a

15 files changed

+28
-28
lines changed

docs/build/TOC.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
## [Walkthrough: Creating and Using a Dynamic Link Library (C++)](walkthrough-creating-and-using-a-dynamic-link-library-cpp.md)
6464
## [Kinds of DLLs](kinds-of-dlls.md)
6565
### [Non-MFC DLLs: Overview](non-mfc-dlls-overview.md)
66-
### [regular MFC DLLs Statically Linked to MFC](regular-dlls-statically-linked-to-mfc.md)
67-
### [regular MFC DLLs Dynamically Linked to MFC](regular-dlls-dynamically-linked-to-mfc.md)
66+
### [Regular MFC DLLs Statically Linked to MFC](regular-dlls-statically-linked-to-mfc.md)
67+
### [Regular MFC DLLs Dynamically Linked to MFC](regular-dlls-dynamically-linked-to-mfc.md)
6868
### [MFC extension DLLs: Overview](extension-dlls-overview.md)
6969
## [MFC DLL Frequently Asked Questions](dll-frequently-asked-questions.md)
7070
## [Link an executable to a DLL](linking-an-executable-to-a-dll.md)

docs/build/dll-frequently-asked-questions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Multithreaded applications can access regular MFC DLLs that dynamically link to
7373
## <a name="mfc_prohibited_classes"></a> Are there any MFC classes or functions that cannot be used in an MFC DLL?
7474
Extension DLLs use the `CWinApp`-derived class of the client application. They must not have their own `CWinApp`-derived class.
7575

76-
regular MFC DLLs must have a `CWinApp`-derived class and a single object of that application class, as does an MFC application. Unlike the `CWinApp` object of an application, the `CWinApp` object of the DLL does not have a main message pump.
76+
Regular MFC DLLs must have a `CWinApp`-derived class and a single object of that application class, as does an MFC application. Unlike the `CWinApp` object of an application, the `CWinApp` object of the DLL does not have a main message pump.
7777

7878
Note that because the `CWinApp::Run` mechanism does not apply to a DLL, the application owns the main message pump. If the DLL opens modeless dialog boxes or has a main frame window of its own, the application's main message pump must call a routine exported by the DLL, which in turn calls the `CWinApp::PreTranslateMessage` member function of the DLL's application object.
7979

docs/build/extension-dlls-overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ An MFC extension DLL is a DLL that typically implements reusable classes derived
5757

5858
- [Non-MFC DLLs: Overview](../build/non-mfc-dlls-overview.md)
5959

60-
- [regular MFC DLLs statically linked to MFC](../build/regular-dlls-statically-linked-to-mfc.md)
60+
- [Regular MFC DLLs statically linked to MFC](../build/regular-dlls-statically-linked-to-mfc.md)
6161

62-
- [regular MFC DLLs dynamically linked to MFC](../build/regular-dlls-dynamically-linked-to-mfc.md)
62+
- [Regular MFC DLLs dynamically linked to MFC](../build/regular-dlls-dynamically-linked-to-mfc.md)
6363

6464
- [Creating an MFC DLL](../mfc/reference/mfc-dll-wizard.md)
6565

docs/build/extension-dlls.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ head -> DLLHUSK.EXE - or - DLLHUSK.EXE
142142

143143
- [DLL Version of MFC](../mfc/tn033-dll-version-of-mfc.md)
144144

145-
- [regular MFC DLLs statically linked to MFC](../build/regular-dlls-statically-linked-to-mfc.md)
145+
- [Regular MFC DLLs statically linked to MFC](../build/regular-dlls-statically-linked-to-mfc.md)
146146

147-
- [regular MFC DLLs dynamically linked to MFC](../build/regular-dlls-dynamically-linked-to-mfc.md)
147+
- [Regular MFC DLLs dynamically linked to MFC](../build/regular-dlls-dynamically-linked-to-mfc.md)
148148

149149
- [Using Database, OLE, and Sockets MFC extension DLLs in regular MFC DLLs](../build/using-database-ole-and-sockets-extension-dlls-in-regular-dlls.md)
150150

docs/build/kinds-of-dlls.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ This topic provides information to help you determine the kind of DLL to build.
5252

5353
- [Non-MFC DLLs: Overview](../build/non-mfc-dlls-overview.md)
5454

55-
- [regular MFC DLLs statically linked to MFC](../build/regular-dlls-statically-linked-to-mfc.md)
55+
- [Regular MFC DLLs statically linked to MFC](../build/regular-dlls-statically-linked-to-mfc.md)
5656

57-
- [regular MFC DLLs dynamically linked to MFC](../build/regular-dlls-dynamically-linked-to-mfc.md)
57+
- [Regular MFC DLLs dynamically linked to MFC](../build/regular-dlls-dynamically-linked-to-mfc.md)
5858

5959
- [MFC extension DLLs: Overview](../build/extension-dlls-overview.md)
6060

@@ -73,15 +73,15 @@ This topic provides information to help you determine the kind of DLL to build.
7373

7474
If your DLL dynamically links to MFC, the MFC DLLs might be redistributed with your DLL. This architecture is particularly useful for sharing the class library between multiple executable files to save disk space and minimize memory usage.
7575

76-
Prior to version 4.0, Visual C++ only supported two kinds of DLLs that used MFC: USRDLLs and AFXDLLs. regular MFC DLLs statically linked to MFC have the same characteristics as the former USRDLL. MFC extension DLLs have the same characteristics as the former AFXDLLs.
76+
Prior to version 4.0, Visual C++ only supported two kinds of DLLs that used MFC: USRDLLs and AFXDLLs. Regular MFC DLLs statically linked to MFC have the same characteristics as the former USRDLL. MFC extension DLLs have the same characteristics as the former AFXDLLs.
7777

7878
### What do you want to know more about?
7979

8080
- [Non-MFC DLLs: Overview](../build/non-mfc-dlls-overview.md)
8181

82-
- [regular MFC DLLs statically linked to MFC](../build/regular-dlls-statically-linked-to-mfc.md)
82+
- [Regular MFC DLLs statically linked to MFC](../build/regular-dlls-statically-linked-to-mfc.md)
8383

84-
- [regular MFC DLLs dynamically linked to MFC](../build/regular-dlls-dynamically-linked-to-mfc.md)
84+
- [Regular MFC DLLs dynamically linked to MFC](../build/regular-dlls-dynamically-linked-to-mfc.md)
8585

8686
- [MFC extension DLLs: Overview](../build/extension-dlls-overview.md)
8787

docs/build/module-states-of-a-regular-dll-dynamically-linked-to-mfc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ AFX_MANAGE_STATE(AfxGetStaticModuleState( ))
5757

5858
- [Managing the state data of MFC modules](../mfc/managing-the-state-data-of-mfc-modules.md)
5959

60-
- [regular MFC DLLs dynamically linked to MFC](../build/regular-dlls-dynamically-linked-to-mfc.md)
60+
- [Regular MFC DLLs dynamically linked to MFC](../build/regular-dlls-dynamically-linked-to-mfc.md)
6161

6262
- [MFC extension DLLs](../build/extension-dlls-overview.md)
6363

docs/build/non-mfc-dlls-overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ A non-MFC DLL is a DLL that does not use MFC internally, and the exported functi
5050

5151
## What do you want to know more about?
5252

53-
- [regular MFC DLLs statically linked to MFC](../build/regular-dlls-statically-linked-to-mfc.md)
53+
- [Regular MFC DLLs statically linked to MFC](../build/regular-dlls-statically-linked-to-mfc.md)
5454

55-
- [regular MFC DLLs dynamically linked to MFC](../build/regular-dlls-dynamically-linked-to-mfc.md)
55+
- [Regular MFC DLLs dynamically linked to MFC](../build/regular-dlls-dynamically-linked-to-mfc.md)
5656

5757
- [MFC extension DLLs: Overview](../build/extension-dlls-overview.md)
5858

docs/build/regular-dlls-dynamically-linked-to-mfc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "regular MFC DLLs Dynamically Linked to MFC | Microsoft Docs"
2+
title: "Regular MFC DLLs Dynamically Linked to MFC | Microsoft Docs"
33
ms.custom: ""
44
ms.date: "11/04/2016"
55
ms.reviewer: ""
@@ -36,7 +36,7 @@ translation.priority.ht:
3636
- "zh-cn"
3737
- "zh-tw"
3838
---
39-
# regular MFC DLLs Dynamically Linked to MFC
39+
# Regular MFC DLLs Dynamically Linked to MFC
4040
A regular MFC DLL dynamically linked to MFC is a DLL that uses MFC internally, and the exported functions in the DLL can be called by either MFC or non-MFC executables. As the name describes, this kind of DLL is built using the dynamic-link library version of MFC (also known as the shared version of MFC). Functions are usually exported from a regular MFC DLL using the standard C interface.
4141

4242
You must add the `AFX_MANAGE_STATE` macro at the beginning of all the exported functions in regular MFC DLLs that dynamically link to MFC to set the current module state to the one for the DLL. This is done by adding the following line of code to the beginning of functions exported from the DLL:

docs/build/regular-dlls-statically-linked-to-mfc.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "regular MFC DLLs Statically Linked to MFC | Microsoft Docs"
2+
title: "Regular MFC DLLs Statically Linked to MFC | Microsoft Docs"
33
ms.custom: ""
44
ms.date: "11/04/2016"
55
ms.reviewer: ""
@@ -37,7 +37,7 @@ translation.priority.ht:
3737
- "zh-cn"
3838
- "zh-tw"
3939
---
40-
# regular MFC DLLs Statically Linked to MFC
40+
# Regular MFC DLLs Statically Linked to MFC
4141
A regular MFC DLL statically linked to MFC is a DLL that uses MFC internally, and the exported functions in the DLL can be called by either MFC or non-MFC executables. As the name describes, this kind of DLL is built using the static link library version of MFC. Functions are usually exported from a regular MFC DLL using the standard C interface. For an example of how to write, build, and use a regular MFC DLL, see the sample [DLLScreenCap](https://github.com/Microsoft/VCSamples/tree/master/VC2010Samples/MFC/advanced/DllScreenCap).
4242

4343
Note that the term USRDLL is no longer used in the Visual C++ documentation. A regular MFC DLL that is statically linked to MFC has the same characteristics as the former USRDLL.
@@ -96,7 +96,7 @@ extern "C" __declspec(dllexport) MyExportedFunction( );
9696

9797
- [Creating an MFC DLL](../mfc/reference/mfc-dll-wizard.md)
9898

99-
- [regular MFC DLLs Dynamically Linked to MFC](../build/regular-dlls-dynamically-linked-to-mfc.md)
99+
- [Regular MFC DLLs Dynamically Linked to MFC](../build/regular-dlls-dynamically-linked-to-mfc.md)
100100

101101
- [MFC extension DLLs](../build/extension-dlls-overview.md)
102102

docs/build/using-database-ole-and-sockets-extension-dlls-in-regular-dlls.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ BOOL CYourRegularDLL::InitInstance()
157157

158158
- [MFC extension DLLs](../build/extension-dlls.md)
159159

160-
- [regular MFC DLLs Statically Linked to MFC](../build/regular-dlls-statically-linked-to-mfc.md)
160+
- [Regular MFC DLLs Statically Linked to MFC](../build/regular-dlls-statically-linked-to-mfc.md)
161161

162-
- [regular MFC DLLs Dynamically Linked to MFC](../build/regular-dlls-dynamically-linked-to-mfc.md)
162+
- [Regular MFC DLLs Dynamically Linked to MFC](../build/regular-dlls-dynamically-linked-to-mfc.md)
163163

164164
- [Using MFC as Part of a DLL](../mfc/tn011-using-mfc-as-part-of-a-dll.md)
165165

docs/dotnet/how-to-compile-mfc-and-atl-code-by-using-clr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ helpviewer_keywords:
1717
- "mixed assemblies [C++], ATL code"
1818
- "/clr compiler option [C++], compiling ATL and MFC code"
1919
- "interoperability [C++], /clr compiler option"
20-
- "regular MFC DLLs [D++], /clr compiler option"
20+
- "regular MFC DLLs [C++], /clr compiler option"
2121
- "interop [C++], /clr compiler option"
2222
- "extension DLLs [C++], /clr compiler option"
2323
ms.assetid: 12464bec-33a4-482c-880a-c078de7f6ea5

docs/mfc/exported-dll-function-entry-points.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ For exported functions of a DLL, use the [AFX_MANAGE_STATE](reference/extension-
4949

5050
Problems with resources in DLLs will occur if the `AFX_MANAGE_STATE` macro is not used. By default, MFC uses the resource handle of the main application to load the resource template. This template is actually stored in the DLL. The root cause is that MFC's module state information has not been switched by the `AFX_MANAGE_STATE` macro. The resource handle is recovered from MFC's module state. Not switching the module state causes the wrong resource handle to be used.
5151

52-
`AFX_MANAGE_STATE` does not need to be put into every function in the DLL. For example, `InitInstance` can be called by the MFC code in the application without `AFX_MANAGE_STATE` because MFC automatically shifts the module state before `InitInstance` and then switches it back after `InitInstance` returns. The same is true for all message-map handlers. regular MFC DLLs actually have a special master window procedure that automatically switches the module state before routing any message.
52+
`AFX_MANAGE_STATE` does not need to be put into every function in the DLL. For example, `InitInstance` can be called by the MFC code in the application without `AFX_MANAGE_STATE` because MFC automatically shifts the module state before `InitInstance` and then switches it back after `InitInstance` returns. The same is true for all message-map handlers. Regular MFC DLLs actually have a special master window procedure that automatically switches the module state before routing any message.
5353

5454
## See Also
5555
[Managing the State Data of MFC Modules](../mfc/managing-the-state-data-of-mfc-modules.md)

docs/mfc/reference/application-settings-mfc-dll-wizard.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ Use this page of the MFC DLL wizard to design and add basic features to a new MF
4040
## DLL type
4141
Select the type of DLL you want to create.
4242

43-
**regular MFC DLL using shared MFC DLL**
43+
**Regular MFC DLL using shared MFC DLL**
4444
Select this option to link the MFC library to your program as a shared DLL. Using this option, you cannot share MFC objects between your DLL and the calling application. Your program makes calls to the MFC library at run time. This option reduces the disk and memory requirements of your program if it is composed of multiple execution files that use the MFC library. Both Win32 and MFC programs can call functions in your DLL. You must redistribute the MFC DLL with this type of project.
4545

46-
**regular MFC DLL with MFC statically linked**
46+
**Regular MFC DLL with MFC statically linked**
4747
Select this option to link your program statically to the MFC library at build time. Both Win32 and MFC programs can call functions in your DLL. While this option increases the size of your program, you do not need to redistribute the MFC DLL with this type of project. You cannot share MFC objects between your DLL and the calling application.
4848

4949
**MFC extension DLL**

docs/mfc/tn033-dll-version-of-mfc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ This note describes how you can use the MFCxx.DLL and MFCxxD.DLL (where x is the
5252
If you are interested in building a DLL using MFC that can be used with non-MFC applications (this is called a regular MFC DLL), refer to [Technical Note 11](../mfc/tn011-using-mfc-as-part-of-a-dll.md).
5353

5454
## Overview of MFCxx.DLL Support: Terminology and Files
55-
**regular MFC DLL**: You use a regular MFC DLL to build a stand-alone DLL using some of the MFC classes. Interfaces across the App/DLL boundary are "C" interfaces, and the client application does not have to be an MFC application.
55+
**Regular MFC DLL**: You use a regular MFC DLL to build a stand-alone DLL using some of the MFC classes. Interfaces across the App/DLL boundary are "C" interfaces, and the client application does not have to be an MFC application.
5656

5757
This is the version of DLL support supported in MFC 1.0. It is described in [Technical Note 11](../mfc/tn011-using-mfc-as-part-of-a-dll.md) and the MFC Advanced Concepts sample [DLLScreenCap](../visual-cpp-samples.md).
5858

docs/mfc/tn058-mfc-module-state-implementation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ AFX_MANAGE_STATE(AfxGetStaticModuleState())
9494

9595
Problems with resources in DLLs will occur if the `AFX_MODULE_STATE` macro is not used. By default, MFC uses the resource handle of the main application to load the resource template. This template is actually stored in the DLL. The root cause is that MFC's module state information has not been switched by the `AFX_MODULE_STATE` macro. The resource handle is recovered from MFC's module state. Not switching the module state causes the wrong resource handle to be used.
9696

97-
`AFX_MODULE_STATE` does not need to be put in every function in the DLL. For example, `InitInstance` can be called by the MFC code in the application without `AFX_MODULE_STATE` because MFC automatically shifts the module state before `InitInstance` and then switches it back after `InitInstance` returns. The same is true for all message map handlers. regular MFC DLLs actually have a special master window procedure that automatically switches the module state before routing any message.
97+
`AFX_MODULE_STATE` does not need to be put in every function in the DLL. For example, `InitInstance` can be called by the MFC code in the application without `AFX_MODULE_STATE` because MFC automatically shifts the module state before `InitInstance` and then switches it back after `InitInstance` returns. The same is true for all message map handlers. Regular MFC DLLs actually have a special master window procedure that automatically switches the module state before routing any message.
9898

9999
## Process Local Data
100100
Process local data would not be of such great concern had it not been for the difficulty of the Win32s DLL model. In Win32s all DLLs share their global data, even when loaded by multiple applications. This is very different from the "real" Win32 DLL data model, where each DLL gets a separate copy of its data space in each process that attaches to the DLL. To add to the complexity, data allocated on the heap in a Win32s DLL is in fact process specific (at least as far as ownership goes). Consider the following data and code:

0 commit comments

Comments
 (0)