Skip to content

Commit 268a56d

Browse files
TylerMSFTTylerMSFT
authored andcommitted
acrolinx
1 parent cbf41cc commit 268a56d

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

docs/error-messages/compiler-errors-1/compiler-error-c2039.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ helpviewer_keywords: ["C2039"]
77
---
88
# Compiler Error C2039
99

10-
'identifier1' : is not a member of 'identifier2'
10+
`'identifier1' : is not a member of 'identifier2'`
1111

1212
The code incorrectly calls or refers to a member of a structure, class, or union.
1313

1414
## Examples
1515

16-
The following sample generates C2039.
16+
The following sample generates C2039:
1717

1818
```cpp
1919
// C2039.cpp
@@ -27,7 +27,7 @@ int main() {
2727
}
2828
```
2929
30-
The following sample generates C2039.
30+
The following sample generates C2039:
3131
3232
```cpp
3333
// C2039_b.cpp
@@ -40,7 +40,7 @@ int main() {
4040
}
4141
```
4242

43-
The following sample generates C2039.
43+
The following sample generates C2039:
4444

4545
```cpp
4646
// C2039_c.cpp
@@ -56,7 +56,7 @@ int S::get_Count() { return 0; } // C2039
5656
int S::Count::get() { return 0; } // OK
5757
```
5858
59-
C2039 can also occur if you attempt to access a default indexer incorrectly. To demonstrate, the following code defines a component authored in C# that will be accessed by the C++/CLI code that follows:
59+
C2039 can also occur if you attempt to access a default indexer incorrectly. To demonstrate, this code defines a C# component that is used by the C++/CLI code that follows:
6060
6161
```c#
6262
// C2039_d.cs
@@ -88,7 +88,7 @@ int main() {
8888
}
8989
```
9090

91-
C2039 can also occur if you use generics. The following sample generates C2039.
91+
C2039 can also occur if you use generics. The following sample generates C2039:
9292

9393
```cpp
9494
// C2039_f.cpp
@@ -113,7 +113,7 @@ int main() {
113113
114114
C2039 can occur when you try to release managed or unmanaged resources. For more information, see [Destructors and finalizers](../../dotnet/how-to-define-and-consume-classes-and-structs-cpp-cli.md#BKMK_Destructors_and_finalizers).
115115
116-
The following sample generates C2039.
116+
The following sample generates C2039:
117117
118118
```cpp
119119
// C2039_g.cpp

docs/mfc/reference/connection-maps.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ The interface ID of the connection.
210210
*`bRefCount`*\
211211
For out-of-process connections, this parameter must be `TRUE`, and indicates that creating the connection should cause the reference count of *`pUnkSink`* to be incremented.
212212

213-
For in-process connections, `TRUE` indicates that creating the connection should cause the reference count of *`pUnkSink`* to be incremented. `FALSE` indicates that the reference count should not be incremented.
213+
For in-process connections, `TRUE` indicates that creating the connection should cause the reference count of *`pUnkSink`* to be incremented. `FALSE` indicates that the reference count shouldn't be incremented.
214214

215215
**Warning**: In general, it can't be predicted which connections are in-process and which connections are out-of-process, so it is recommended to always set this parameter to `TRUE`.
216216

@@ -231,7 +231,7 @@ Nonzero if a connection was established; otherwise 0.
231231

232232
## <a name="AfxConnectionUnadvise"></a> `AfxConnectionUnadvise`
233233

234-
Call this function to disconnect a connection between a source, specified by *pUnkSrc*, and a sink, specified by *`pUnkSink`*.
234+
Call this function to disconnect a connection between a source, specified by *`pUnkSrc`*, and a sink, specified by *`pUnkSink`*.
235235

236236
```cpp
237237
BOOL AFXAPI AfxConnectionUnadvise(
@@ -256,9 +256,9 @@ The interface ID of the connection point interface.
256256
*`bRefCount`*\
257257
For out-of-process connections, this parameter must be `TRUE`, and indicates that creating the connection should cause the reference count of *`pUnkSink`* to be decremented.
258258
259-
For in-process connections, `TRUE` indicates that creating the connection should cause the reference count of *`pUnkSink`* to be decremented. `FALSE` indicates that the reference count should not be decremented.
259+
For in-process connections, `TRUE` indicates that creating the connection should cause the reference count of *`pUnkSink`* to be decremented. `FALSE` indicates that the reference count shouldn't be decremented.
260260
261-
**Warning**: In general, it cannot be predicted which connections are in-process and which connections are out-of-process, so it is recommended to always set this parameter to `TRUE`.
261+
**Warning**: In general, it can't be predicted which connections are in-process and which connections are out-of-process, so it is recommended to always set this parameter to `TRUE`.
262262
263263
*`dwCookie`*\
264264
The connection identifier returned by ``AfxConnectionAdvise``.
@@ -273,7 +273,7 @@ Nonzero if a connection was disconnected; otherwise 0.
273273
274274
### Requirements
275275
276-
**Header:** afxctl.h
276+
**Header:** `afxctl.h`
277277
278278
## See also
279279

0 commit comments

Comments
 (0)