Skip to content

Commit 2e7556b

Browse files
authored
Clean up redundant relative links in "Adding Connection Points to an Object"
1 parent 60deb01 commit 2e7556b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/atl/adding-connection-points-to-an-object.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.assetid: 843531be-4a36-4db0-9d54-e029b1a72a8b
77
---
88
# Adding Connection Points to an Object
99

10-
The [ATL Tutorial](../atl/active-template-library-atl-tutorial.md) demonstrates how to create a control with support for connection points, how to add events, and then how to implement the connection point. ATL implements connection points with the [IConnectionPointImpl](../atl/reference/iconnectionpointimpl-class.md) class.
10+
The [ATL Tutorial](active-template-library-atl-tutorial.md) demonstrates how to create a control with support for connection points, how to add events, and then how to implement the connection point. ATL implements connection points with the [IConnectionPointImpl](reference/iconnectionpointimpl-class.md) class.
1111

1212
To implement a connection point, you have two choices:
1313

@@ -21,13 +21,13 @@ In either case, the Implement Connection Point Wizard uses a type library to do
2121

2222
1. Define a dispinterface in the library block of the .idl file. If you enabled support for connection points when you created the control with the ATL Control Wizard, the dispinterface will already be created. If you did not enable support for connection points when you created the control, you must manually add a dispinterface to the .idl file. The following is an example of a dispinterface. Outgoing interfaces are not required to be dispatch interfaces but many scripting languages such as VBScript and JScript require this, so this example uses two dispinterfaces:
2323

24-
[!code-cpp[NVC_ATL_Windowing#81](../atl/codesnippet/cpp/adding-connection-points-to-an-object_1.idl)]
24+
[!code-cpp[NVC_ATL_Windowing#81](codesnippet/cpp/adding-connection-points-to-an-object_1.idl)]
2525

2626
Use either the uuidgen.exe or guidgen.exe utility to generate a GUID.
2727

2828
2. Add the dispinterface as the `[default,source]` interface in the coclass for the object in the project's .idl file. Again, if you enabled support for connection points when you created the control, the ATL Control Wizard will create the `[default,source]` entry. To manually add this entry, add the line in bold:
2929

30-
[!code-cpp[NVC_ATL_Windowing#82](../atl/codesnippet/cpp/adding-connection-points-to-an-object_2.idl)]
30+
[!code-cpp[NVC_ATL_Windowing#82](codesnippet/cpp/adding-connection-points-to-an-object_2.idl)]
3131

3232
See the .idl file in the [Circ](../overview/visual-cpp-samples.md) ATL sample for an example.
3333

@@ -55,4 +55,4 @@ In either case, the Implement Connection Point Wizard uses a type library to do
5555

5656
## See also
5757

58-
[Connection Point](../atl/atl-connection-points.md)
58+
[Connection Point](atl-connection-points.md)

0 commit comments

Comments
 (0)