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
{{ message }}
Repository navigation
Commit f31ceb7
Browse filesBrowse the repository at this point in the historyBrowse files
The first example syntax declares a class to be abstract. The *class-declaration* component can be either a native C++ declaration (`class` or `struct`), or a C++ extension declaration (`ref class` or `ref struct`) if the **/ZW** or **/clr** compiler option is specified.
34
+
The first example syntax declares a class to be abstract. The *class-declaration* component can be either a native C++ declaration (**class** or **struct**), or a C++ extension declaration (**ref class** or **ref struct**) if the `/ZW` or `/clr` compiler option is specified.
37
35
38
36
The second example syntax declares a virtual member function to be abstract. Declaring a function abstract is the same as declaring it a pure virtual function. Declaring a member function abstract also causes the enclosing class to be declared abstract.
39
37
40
-
The `abstract` keyword is supported in native and platform-specific code; that is, it can be compiled with or without the **/ZW** or **/clr** compiler option.
38
+
The **abstract** keyword is supported in native and platform-specific code; that is, it can be compiled with or without the `/ZW` or `/clr` compiler option.
41
39
42
40
You can detect at compile time if a type is abstract with the `__is_abstract(type)` type trait. For more information, see [Compiler Support for Type Traits](../windows/compiler-support-for-type-traits-cpp-component-extensions.md).
43
41
44
-
The `abstract` keyword is a context-sensitive override specifier. For more information about context-sensitive keywords, see [Context-Sensitive Keywords](../windows/context-sensitive-keywords-cpp-component-extensions.md). For more information about override specifiers, see [How to: Declare Override Specifiers in Native Compilations](../dotnet/how-to-declare-override-specifiers-in-native-compilations-cpp-cli.md).
42
+
The **abstract** keyword is a context-sensitive override specifier. For more information about context-sensitive keywords, see [Context-Sensitive Keywords](../windows/context-sensitive-keywords-cpp-component-extensions.md). For more information about override specifiers, see [How to: Declare Override Specifiers in Native Compilations](../dotnet/how-to-declare-override-specifiers-in-native-compilations-cpp-cli.md).
45
43
46
44
## Windows Runtime
47
45
For more information, see [Ref classes and structs](http://msdn.microsoft.com/library/windows/apps/hh699870.aspx).
The following code example generates an error because class `X` is marked `abstract`.
61
59
62
-
```
60
+
```cpp
63
61
// abstract_keyword.cpp
64
62
// compile with: /clr
65
63
ref classX abstract {
@@ -74,9 +72,9 @@ int main() {
74
72
75
73
**Example**
76
74
77
-
The following code example generates an error because it instantiates a native class that is marked `abstract`. This error will occur with or without the **/clr** compiler option.
75
+
The following code example generates an error because it instantiates a native class that is marked `abstract`. This error will occur with or without the `/clr` compiler option.
78
76
79
-
```
77
+
```cpp
80
78
// abstract_keyword_2.cpp
81
79
class X abstract {
82
80
public:
@@ -86,14 +84,13 @@ public:
86
84
int main() {
87
85
X * MyX = new X; // C3622: 'X': a class declared as 'abstract'
88
86
// cannot be instantiated. See declaration of 'X'}
89
-
90
87
```
91
88
92
89
**Example**
93
90
94
91
The following code example generates an error because function `f` includes a definition but is marked `abstract`. The final statement in the example shows that declaring an abstract virtual function is equivalent to declaring a pure virtual function.
Copy file name to clipboardExpand all lines: docs/windows/accelerator-editor.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ An accelerator table is a Windows resource that contains a list of accelerator k
17
17
18
18
Normally, accelerators are used as keyboard shortcuts for program commands that are also available on a menu or toolbar. However, you can use the accelerator table to define key combinations for commands that don't have a user-interface object associated with them.
19
19
20
-
You can use [Class View](http://msdn.microsoft.com/en-us/8d7430a9-3e33-454c-a9e1-a85e3d2db925) to hook accelerator key commands to code.
20
+
You can use [Class View](http://msdn.microsoft.com/8d7430a9-3e33-454c-a9e1-a85e3d2db925) to hook accelerator key commands to code.
21
21
22
22
With the Accelerator editor, you can:
23
23
@@ -41,5 +41,4 @@ An accelerator table is a Windows resource that contains a list of accelerator k
Below are the default accelerator keys for the Dialog editor commands. To change shortcut keys, click **Options** on the **Tools** menu, then choose **Keyboard** under the **Environment** folder. For more information, see [Identifying and Customizing Keyboard Shortcuts](/visualstudio/ide/identifying-and-customizing-keyboard-shortcuts-in-visual-studio).
17
17
18
18
> [!NOTE]
19
-
> The options available in dialog boxes, and the names and locations of menu commands you see, might differ from what is described in Help depending on your active settings or edition. To change your settings, choose **Import and Export Settings** on the **Tools** menu. For more information, see [Customizing Development Settings in Visual Studio](http://msdn.microsoft.com/en-us/22c4debb-4e31-47a8-8f19-16f328d7dcd3).
19
+
> The options available in dialog boxes, and the names and locations of menu commands you see, might differ from what is described in Help depending on your active settings or edition. To change your settings, choose **Import and Export Settings** on the **Tools** menu. For more information, see [Customizing Development Settings in Visual Studio](http://msdn.microsoft.com/22c4debb-4e31-47a8-8f19-16f328d7dcd3).
20
20
21
21
|Command|Keys|Description|
22
22
|-------------|----------|-----------------|
@@ -44,5 +44,4 @@ Below are the default accelerator keys for the Dialog editor commands. To change
Copy file name to clipboardExpand all lines: docs/windows/activationfactory-class.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,17 +27,17 @@ class ActivationFactory : public Details::RuntimeClass<typename Details::Interfa
27
27
```
28
28
29
29
#### Parameters
30
-
`I0`
30
+
*I0*
31
31
The zeroth interface.
32
32
33
-
`I1`
33
+
*I1*
34
34
The first interface.
35
35
36
-
`I2`
36
+
*I2*
37
37
The second interface.
38
38
39
39
## Remarks
40
-
ActivationFactory provides registration methods and basic functionality for the IActivationFactory interface. ActivationFactory also enables you to provide a custom factory implementation.
40
+
**ActivationFactory** provides registration methods and basic functionality for the `IActivationFactory` interface. **ActivationFactory** also enables you to provide a custom factory implementation.
41
41
42
42
The following code fragment symbolically illustrates how to use ActivationFactory.
43
43
@@ -53,18 +53,18 @@ class ActivationFactory : public Details::RuntimeClass<typename Details::Interfa
53
53
54
54
|Name|Description|
55
55
|----------|-----------------|
56
-
|[ActivationFactory::ActivationFactory Constructor](../windows/activationfactory-activationfactory-constructor.md)|Initializes the ActivationFactory class.|
56
+
|[ActivationFactory::ActivationFactory Constructor](../windows/activationfactory-activationfactory-constructor.md)|Initializes the **ActivationFactory** class.|
57
57
58
58
### Public Methods
59
59
60
60
|Name|Description|
61
61
|----------|-----------------|
62
-
|[ActivationFactory::AddRef Method](../windows/activationfactory-addref-method.md)|Increments the reference count of the current ActivationFactory object.|
62
+
|[ActivationFactory::AddRef Method](../windows/activationfactory-addref-method.md)|Increments the reference count of the current **ActivationFactory** object.|
63
63
|[ActivationFactory::GetIids Method](../windows/activationfactory-getiids-method.md)|Retrieves an array of implemented interface IDs.|
64
-
|[ActivationFactory::GetRuntimeClassName Method](../windows/activationfactory-getruntimeclassname-method.md)|Gets the runtime class name of the object that the current ActivationFactory instantiates.|
64
+
|[ActivationFactory::GetRuntimeClassName Method](../windows/activationfactory-getruntimeclassname-method.md)|Gets the runtime class name of the object that the current **ActivationFactory** instantiates.|
65
65
|[ActivationFactory::GetTrustLevel Method](../windows/activationfactory-gettrustlevel-method.md)|Gets the trust level of the object that the current ActivationFactory instantiates.|
66
66
|[ActivationFactory::QueryInterface Method](../windows/activationfactory-queryinterface-method.md)|Retrieves a pointer to the specified interface.|
67
-
|[ActivationFactory::Release Method](../windows/activationfactory-release-method.md)|Decrements the reference count of the current ActivationFactory object.|
67
+
|[ActivationFactory::Release Method](../windows/activationfactory-release-method.md)|Decrements the reference count of the current **ActivationFactory** object.|
Copy file name to clipboardExpand all lines: docs/windows/activationfactory-getruntimeclassname-method.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ ms.author: "mblome"
13
13
ms.workload: ["cplusplus", "uwp"]
14
14
---
15
15
# ActivationFactory::GetRuntimeClassName Method
16
-
Gets the runtime class name of the object that the current ActivationFactory instantiates.
16
+
Gets the runtime class name of the object that the current **ActivationFactory** instantiates.
17
17
18
18
## Syntax
19
19
@@ -24,8 +24,8 @@ STDMETHOD(
24
24
```
25
25
26
26
#### Parameters
27
-
`runtimeName`
28
-
When this operation completes, a handle to a string that contains the runtime class name of the object that the current ActivationFactory instantiates.
27
+
*runtimeName*
28
+
When this operation completes, a handle to a string that contains the runtime class name of the object that the current **ActivationFactory** instantiates.
29
29
30
30
## Return Value
31
31
S_OK if successful; otherwise, an HRESULT that describes the failure.
0 commit comments