You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
60
60
61
61
```c#
62
62
// C2039_d.cs
@@ -88,7 +88,7 @@ int main() {
88
88
}
89
89
```
90
90
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:
92
92
93
93
```cpp
94
94
// C2039_f.cpp
@@ -113,7 +113,7 @@ int main() {
113
113
114
114
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).
Copy file name to clipboardExpand all lines: docs/mfc/reference/connection-maps.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -210,7 +210,7 @@ The interface ID of the connection.
210
210
*`bRefCount`*\
211
211
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.
212
212
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.
214
214
215
215
**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`.
216
216
@@ -231,7 +231,7 @@ Nonzero if a connection was established; otherwise 0.
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`*.
235
235
236
236
```cpp
237
237
BOOL AFXAPI AfxConnectionUnadvise(
@@ -256,9 +256,9 @@ The interface ID of the connection point interface.
256
256
*`bRefCount`*\
257
257
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.
258
258
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.
260
260
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`.
262
262
263
263
*`dwCookie`*\
264
264
The connection identifier returned by ``AfxConnectionAdvise``.
@@ -273,7 +273,7 @@ Nonzero if a connection was disconnected; otherwise 0.
0 commit comments