Skip to content

Commit 413ebf1

Browse files
author
Colin Robertson
committed
Rethink use of *
1 parent bd4874a commit 413ebf1

24 files changed

+76
-68
lines changed

docs/atl/reference/aggregation-and-class-factory-macros.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,11 @@ class CComClassFactory2 : public IClassFactory2,
138138
*license*
139139
A class that implements the following static functions:
140140

141-
- **static BOOL VerifyLicenseKey( BSTR** `bstr` **);**
141+
- `static BOOL VerifyLicenseKey( BSTR bstr );`
142142

143-
- **static BOOL GetLicenseKey( DWORD** `dwReserved` **, BSTR*** `pBstr` **);**
143+
- `static BOOL GetLicenseKey( DWORD dwReserved, BSTR * pBstr );`
144144

145-
- **static BOOL IsLicenseValid( );**
145+
- `static BOOL IsLicenseValid( );`
146146

147147
### Remarks
148148
`CComClassFactory2` implements the [IClassFactory2](http://msdn.microsoft.com/library/windows/desktop/ms692720) interface, which is an extension of [IClassFactory](http://msdn.microsoft.com/library/windows/desktop/ms694364). `IClassFactory2` controls object creation through a license. A class factory executing on a licensed machine can provide a run-time license key. This license key allows an application to instantiate objects when a full machine license does not exist.

docs/atl/reference/ccomclassfactory2-class.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ class CComClassFactory2 : public IClassFactory2,
2828
*license*
2929
A class that implements the following static functions:
3030

31-
- **static BOOL VerifyLicenseKey( BSTR** `bstr` **);**
31+
- `static BOOL VerifyLicenseKey( BSTR bstr );`
3232

33-
- **static BOOL GetLicenseKey( DWORD** `dwReserved` **, BSTR*** `pBstr` **);**
33+
- `static BOOL GetLicenseKey( DWORD dwReserved, BSTR * pBstr );`
3434

35-
- **static BOOL IsLicenseValid( );**
35+
- `static BOOL IsLicenseValid( );`
3636

3737
## Members
3838

docs/c-runtime-library/reference/rtc-seterrorfuncw.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,15 @@ Before you can call this function, you must first call one of the run-time error
5050

5151
**_RTC_error_fnW** is defined as follows:
5252

53-
> **typedef int (__cdecl * _RTC_error_fnW)(int** *errorType* **, const wchar_t *** *filename* **, int** *linenumber* **, const wchar_t *** *moduleName* **, const wchar_t *** *format* **, ...);**
53+
```cpp
54+
typedef int (__cdecl * _RTC_error_fnW)(
55+
int errorType,
56+
const wchar_t * filename,
57+
int linenumber,
58+
const wchar_t * moduleName,
59+
const wchar_t * format,
60+
... );
61+
```
5462
5563
where:
5664

docs/cpp/algorithms-modern-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ The range-based **for** loop is a C++11 language feature, not a C++ Standard Lib
6565
6666
- A `begin` method that returns an iterator to the beginning of the structure and an `end` method that returns an iterator to the end of the structure.
6767
68-
- Support in the iterator for these methods: **operator***, **operator!=**, and **operator++** (prefix version).
68+
- Support in the iterator for these methods: <strong>operator\*</strong>, **operator!=**, and **operator++** (prefix version).
6969
7070
These methods can be either members or stand-alone functions.
7171

docs/mfc/mfc-activex-controls-adding-stock-events-to-an-activex-control.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Stock events differ from custom events in that they are automatically fired by c
2626
|DblClick|**void FireDblClick( )**|Similar to Click but fired when a **BUTTONDBLCLK** message is received.<br /><br /> Event map entry: **EVENT_STOCK_DBLCLICK( )**|
2727
|Error|**void FireError( SCODE** *scode* **, LPCSTR** `lpszDescription` **, UINT** `nHelpID` **= 0 )**|Fired when an error occurs within your ActiveX control outside of the scope of a method call or property access.<br /><br /> Event map entry: **EVENT_STOCK_ERROREVENT( )**|
2828
|KeyDown|**void FireKeyDown( short** `nChar` **, short** `nShiftState` **)**|Fired when a `WM_SYSKEYDOWN` or `WM_KEYDOWN` message is received.<br /><br /> Event map entry: **EVENT_STOCK_KEYDOWN( )**|
29-
|KeyPress|**void FireKeyPress( short &ast;** `pnChar` **)**|Fired when a `WM_CHAR` message is received.<br /><br /> Event map entry: **EVENT_STOCK_KEYPRESS( )**|
29+
|KeyPress|<strong>void FireKeyPress( short \*</strong> `pnChar` **)**|Fired when a `WM_CHAR` message is received.<br /><br /> Event map entry: **EVENT_STOCK_KEYPRESS( )**|
3030
|KeyUp|**void FireKeyUp( short** `nChar` **, short** `nShiftState` **)**|Fired when a `WM_SYSKEYUP` or `WM_KEYUP` message is received.<br /><br /> Event map entry: **EVENT_STOCK_KEYUP( )**|
3131
|MouseDown|**void FireMouseDown( short** `nButton` **, short** `nShiftState` **, float** *x* **, float** *y* **)**|Fired if any **BUTTONDOWN** (left, middle, or right) is received. The mouse is captured immediately before this event is fired.<br /><br /> Event map entry: **EVENT_STOCK_MOUSEDOWN( )**|
3232
|MouseMove|**void FireMouseMove( short** `nButton` **, short** `nShiftState` **, float** *x* **, float** *y* **)**|Fired when a WM_MOUSEMOVE message is received.<br /><br /> Event map entry: **EVENT_STOCK_MOUSEMOVE( )**|

docs/mfc/mfc-activex-controls-using-fonts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ If your ActiveX control displays text, you can allow the control user to change
109109

110110
6. For **Implementation Type**, click **Get/Set Methods**.
111111

112-
7. In the **Property Type** box, select **IDispatch&ast;** for the property's type.
112+
7. In the **Property Type** box, select <strong>IDispatch\*</strong> for the property's type.
113113

114114
8. Click **Finish**.
115115

docs/mfc/mfc-activex-controls-using-pictures-in-an-activex-control.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ This article describes the common Picture type and how to implement it in your A
8484

8585
5. In the **Property Name** box, type the property name. For example purposes, `ControlPicture` is used in this procedure.
8686

87-
6. In the **Property Type** box, select **IPictureDisp&ast;** for the property type.
87+
6. In the **Property Type** box, select <strong>IPictureDisp\*</strong> for the property type.
8888

8989
7. For **Implementation Type**, click **Get/Set Methods**.
9090

docs/mfc/reference/ccombobox-class.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -641,13 +641,13 @@ DWORD_PTR GetItemData(int nIndex) const;
641641
The 32-bit value associated with the item, or CB_ERR if an error occurs.
642642

643643
### Remarks
644-
The 32-bit value can be set with the *dwItemData* parameter of a [SetItemData](#setitemdata) member function call. Use the `GetItemDataPtr` member function if the 32-bit value to be retrieved is a pointer (**void &ast;**).
644+
The 32-bit value can be set with the *dwItemData* parameter of a [SetItemData](#setitemdata) member function call. Use the `GetItemDataPtr` member function if the 32-bit value to be retrieved is a pointer (<strong>void \*</strong>).
645645

646646
### Example
647647
[!code-cpp[NVC_MFC_CComboBox#21](../../mfc/reference/codesnippet/cpp/ccombobox-class_21.cpp)]
648648

649649
## <a name="getitemdataptr"></a> CComboBox::GetItemDataPtr
650-
Retrieves the application-supplied 32-bit value associated with the specified combo-box item as a pointer (**void &ast;**).
650+
Retrieves the application-supplied 32-bit value associated with the specified combo-box item as a pointer (<strong>void \*</strong>).
651651

652652
```
653653
void* GetItemDataPtr(int nIndex) const;
@@ -1094,7 +1094,7 @@ int SetItemData(
10941094
[!code-cpp[NVC_MFC_CComboBox#36](../../mfc/reference/codesnippet/cpp/ccombobox-class_38.cpp)]
10951095

10961096
## <a name="setitemdataptr"></a> CComboBox::SetItemDataPtr
1097-
Sets the 32-bit value associated with the specified item in a combo box to be the specified pointer (**void &ast;**).
1097+
Sets the 32-bit value associated with the specified item in a combo box to be the specified pointer (<strong>void \*</strong>).
10981098

10991099
```
11001100
int SetItemDataPtr(

docs/mfc/reference/cinternetfile-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ virtual LPTSTR ReadString(
221221
A reference to the [CString](../../atl-mfc-shared/reference/cstringt-class.md) object that receives the read line.
222222

223223
### Return Value
224-
A pointer to the buffer containing plain data retrieved from the [CInternetFile](../../mfc/reference/cinternetfile-class.md) object. Regardless of the data type of the buffer passed to this method, it does not perform any manipulations on the data (for example, conversion to Unicode), so you must map the returned data to the structure you expect, as if the **void &ast;** type were returned.
224+
A pointer to the buffer containing plain data retrieved from the [CInternetFile](../../mfc/reference/cinternetfile-class.md) object. Regardless of the data type of the buffer passed to this method, it does not perform any manipulations on the data (for example, conversion to Unicode), so you must map the returned data to the structure you expect, as if the <strong>void \*</strong> type were returned.
225225

226226
NULL if end-of-file was reached without reading any data; or, if boolean, FALSE if end-of-file was reached without reading any data.
227227

docs/mfc/reference/clistbox-class.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ DWORD_PTR GetItemData(int nIndex) const;
537537
[!code-cpp[NVC_MFC_CListBox#15](../../mfc/codesnippet/cpp/clistbox-class_15.cpp)]
538538

539539
## <a name="getitemdataptr"></a> CListBox::GetItemDataPtr
540-
Retrieves the application-supplied 32-bit value associated with the specified list-box item as a pointer ( **void &ast;**).
540+
Retrieves the application-supplied 32-bit value associated with the specified list-box item as a pointer (<strong>void \*</strong>).
541541

542542
```
543543
void* GetItemDataPtr(int nIndex) const;
@@ -1037,7 +1037,7 @@ int SetItemData(
10371037
[!code-cpp[NVC_MFC_CListBox#34](../../mfc/codesnippet/cpp/clistbox-class_34.cpp)]
10381038

10391039
## <a name="setitemdataptr"></a> CListBox::SetItemDataPtr
1040-
Sets the 32-bit value associated with the specified item in a list box to be the specified pointer ( **void &ast;**).
1040+
Sets the 32-bit value associated with the specified item in a list box to be the specified pointer ( <strong>void \*</strong>).
10411041

10421042
```
10431043
int SetItemDataPtr(

0 commit comments

Comments
 (0)