Skip to content

Commit be5ce4a

Browse files
author
Colin Robertson
committed
Fix broken links reported by OPS
1 parent 9faaef6 commit be5ce4a

10 files changed

+19
-19
lines changed

docs/_breadcrumb/toc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@
8686
tocHref: /cpp/data/odbc/
8787
topicHref: /cpp/data/odbc/open-database-connectivity-odbc
8888
- name: Edit, navigate, and refactor code
89-
tocHref: /cpp/ide
90-
topicHref: /cpp/overview-of-cpp-development
89+
tocHref: /cpp/overview
90+
topicHref: /cpp/overview/overview-of-cpp-development
9191
items:
9292
- name: IDE
9393
tocHref: /cpp/ide/

docs/build/reference/sourcelink.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: "/SOURCELINK (Include Sourcelink file in PDB)"
3-
ms.date: "08/20/2018"
3+
description: "Reference guide to the /SOURCELINK linker option in Microsoft C++."
4+
ms.date: "03/31/2020"
45
f1_keywords: ["/sourcelink"]
56
helpviewer_keywords: ["/SOURCELINK linker option", "/SOURCELINK"]
67
---
@@ -10,28 +11,28 @@ Specifies a Source Link configuration file to include in the PDB file generated
1011

1112
## Syntax
1213

13-
> **/SOURCELINK:**_filename_
14+
> **`/SOURCELINK:`**_`filename`_
1415
1516
## Arguments
1617

1718
*filename*<br/>
18-
Specifies a JSON-formatted configuration file that contains a simple mapping of local file paths to URLs where the source file can be retrieved for display by the debugger. For more information on the format of this file, see [Source Link JSON Schema](https://github.com/dotnet/designs/blob/master/accepted/diagnostics/source-link.md#source-link-json-schema).
19+
Specifies a JSON-formatted configuration file that contains a simple mapping of local file paths to URLs for source files to display in the debugger. For more information on the format of this file, see [Source Link JSON Schema](https://github.com/dotnet/designs/blob/master/accepted/2020/diagnostics/source-link.md#source-link-json-schema).
1920

2021
## Remarks
2122

22-
Source Link is a language- and source-control agnostic system for providing source debugging for binaries. Source Link is supported for native C++ binaries starting in Visual Studio 2017 version 15.8. For an overview of Source Link, see [Source Link](https://github.com/dotnet/designs/blob/master/accepted/diagnostics/source-link.md). For information on how to use Source Link in your projects and how to generate the SourceLink file as part of your project, see [Using Source Link](https://github.com/dotnet/sourcelink#using-source-link-in-c-projects).
23+
Source Link is a language- and source-control agnostic system for providing source debugging for binaries. Source Link is supported for native C++ binaries starting in Visual Studio 2017 version 15.8. For an overview of Source Link, see [Source Link](https://github.com/dotnet/designs/blob/master/accepted/2020/diagnostics/source-link.md). For information on how to use Source Link in your projects, and how to generate the SourceLink file as part of your project, see [Using Source Link](https://github.com/dotnet/sourcelink#using-source-link-in-c-projects).
2324

2425
### To set the /SOURCELINK linker option in Visual Studio
2526

2627
1. Open the **Property Pages** dialog box for the project. For more information, see [Set C++ compiler and build properties in Visual Studio](../working-with-project-properties.md).
2728

2829
1. Select the **Configuration Properties** > **Linker** > **Command Line** property page.
2930

30-
1. In the **Additional options** box, add **/SOURCELINK:**_filename_ and then choose **OK** or **Apply** to save your changes.
31+
1. In the **Additional options** box, add **`/SOURCELINK:`**_`filename`_ and then choose **OK** or **Apply** to save your changes.
3132

3233
### To set this linker option programmatically
3334

34-
- This option does not have a programmatic equivalent.
35+
- This option doesn't have a programmatic equivalent.
3536

3637
## See also
3738

docs/cppcx/interfaces-c-cx.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ When a ref class implements multiple interfaces, and those interfaces have metho
5757

5858
## Generic interfaces
5959

60-
In C++/CX, the `generic` keyword is used to represent a Windows Runtime parameterized type. A parameterized type is emitted in metadata and can be consumed by code that's written in any language that supports type parameters. The Windows Runtime defines some generic interfaces—for example, [Windows::Foundation::Collections::IVector\<T>](Windows::Foundation::Collections::IVector)—but it doesn't support the creation of public user-defined generic interfaces in C++/CX. However, you can create private generic interfaces.
60+
In C++/CX, the `generic` keyword is used to represent a Windows Runtime parameterized type. A parameterized type is emitted in metadata and can be consumed by code that's written in any language that supports type parameters. The Windows Runtime defines some generic interfaces—for example, [Windows::Foundation::Collections::IVector\<T>](/uwp/api/Windows.Foundation.Collections.IVector_T_)—but it doesn't support the creation of public user-defined generic interfaces in C++/CX. However, you can create private generic interfaces.
6161

6262
Here's how Windows Runtime types can be used to author a generic interface:
6363

docs/cppcx/operator-windows-ui-xaml-interop-typename.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,15 @@ Returns a [Windows::UI::Xaml::Interop::TypeName](/uwp/api/windows.ui.xaml.intero
2121
2222
`TypeName` is the language-neutral Windows Runtime struct for representing type information. [Platform::Type](../cppcx/platform-type-class.md) is specific to C++ and can’t be passed across the application binary interface (ABI). Here's one use of `TypeName`, in the [Navigate](/uwp/api/windows.ui.xaml.controls.frame.navigate) function:
2323
24-
```
24+
```cpp
2525
rootFrame->Navigate(TypeName(MainPage::typeid), e->Arguments);
2626
```
2727

2828
### Example
2929

3030
The next example shows how to convert between `TypeName` and `Type`.
3131

32-
```
33-
32+
```cpp
3433
// Convert from Type to TypeName
3534
Windows::UI::Xaml::Interop::TypeName tn = TypeName(MainPage::typeid);
3635

@@ -40,7 +39,7 @@ Type^ tx2 = (Type^)(tn);
4039

4140
## .NET Framework Equivalent
4241

43-
.NET Framework programs project `TypeName` as [System.Type](assetId:///System.Type?qualifyHint=False&autoUpgrade=True).
42+
.NET Framework programs project `TypeName` as [System.Type](/dotnet/api/system.type).
4443

4544
### Requirements
4645

docs/mfc/reference/delegate-and-interface-maps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ MAKE_DELEGATE( DELEGATE, MEMBER) ;
242242
### Parameters
243243
244244
*DELEGATE*<br/>
245-
The type of the managed event handler delegate, such as [EventHandler](assetId:///T:System.EventHandler?qualifyHint=False&autoUpgrade=True).
245+
The type of the managed event handler delegate, such as [EventHandler](/dotnet/api/system.eventhandler).
246246
247247
*MEMBER*<br/>
248248
The name of the event handler method to be attached to the control.

docs/mfc/reference/record-field-exchange-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ For more information, see the articles [Recordset: Fetching Records in Bulk (ODB
859859

860860
### Example
861861

862-
You must manually write calls in your `DoBulkFieldExchange` override. This example shows a call to `RFX_Text_Bulk`, as well as a call to `RFX_Long_Bulk`, for data transfer. These calls are preceded by a call to [CFieldExchange::SetFieldType](CFieldExchange::SetFieldType.md). Note that for parameters, you must call the RFX functions instead of the Bulk RFX functions.
862+
You must manually write calls in your `DoBulkFieldExchange` override. This example shows a call to `RFX_Text_Bulk`, as well as a call to `RFX_Long_Bulk`, for data transfer. These calls are preceded by a call to [CFieldExchange::SetFieldType](cfieldexchange-class.md#setfieldtype). Note that for parameters, you must call the RFX functions instead of the Bulk RFX functions.
863863

864864
```cpp
865865
void CMultiCustomer::DoBulkFieldExchange(CFieldExchange* pFX)

docs/porting/porting-from-unix-to-win32.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ To run a Linux program on Windows, you have these options:
1010

1111
- Run the program as-is on the Windows Subsystem for Linux (WSL). In WSL your program executes directly on the machine hardware, not in a virtual machine. WSL also enables direct filesystem calls between Windows and Linux systems, removing the need for SSL transport. WSL is designed as a command-line environment and is not recommended for graphics-intensive applications. For more information, see [Windows Subsystem for Linux Documentation](/windows/wsl/about).
1212
- Run the program as-is in a Linux virtual machine or Docker container, either on your local machine or on Azure. For more information, see [Virtual Machines](https://azure.microsoft.com/services/virtual-machines/) and [Docker on Azure](https://docs.microsoft.com/azure/docker/).
13-
- Compile the program using gcc or clang in the [MinGW](http://MinGW.org/) or [MinGW-w64](https://MinGW-w64.org/doku.php) environments, which provide a translation layer from Linux to Windows system calls.
13+
- Compile the program using gcc or clang in the [MinGW](http://MinGW.org/) or [MinGW-w64](https://sourceforge.net/p/mingw-w64/wiki2/Home/) environments, which provide a translation layer from Linux to Windows system calls.
1414
- Compile and run the program using gcc or clang in the [Cygwin](https://www.cygwin.com/) environment, which provides a more complete Linux environment on Windows compared to MinGW or MinGW-w64.
1515
- Manually port your code from Linux and compile for Windows using Microsoft C++ (MSVC). This involves refactoring platform-independent code into separate libraries, and then re-writing the Linux-specific code to use Windows-specific code (for example, Win32 or DirectX APIs). For applications that require high performance graphics, this is probably the best option.

docs/porting/visual-cpp-change-history-2003-2015.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2166,7 +2166,7 @@ Although these differences can affect your source code or other build artifacts,
21662166
warning C4720: unreachable code
21672167
```
21682168
2169-
In many cases, this warning might only be issued when compiling with optimizations enabled, since optimizations may inline more function calls, eliminate redundant code, or otherwise make it possible to determine that certain code is unreachable. We have observed that new instances of warning C4720 have frequently occurred in **try/catch** blocks, especially in relation to use of [std::find](assetId:///std::find?qualifyHint=False&autoUpgrade=True).
2169+
In many cases, this warning might only be issued when compiling with optimizations enabled, since optimizations may inline more function calls, eliminate redundant code, or otherwise make it possible to determine that certain code is unreachable. We have observed that new instances of warning C4720 have frequently occurred in **try/catch** blocks, especially in relation to use of [std::find](../standard-library/algorithm-functions.md#find).
21702170
21712171
Example (before)
21722172

docs/porting/visual-cpp-what-s-new-2003-through-2015.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ Although these differences can affect your source code or other build artifacts,
979979
warning C4720: unreachable code
980980
```
981981

982-
In many cases, this warning might only be issued when compiling with optimizations enabled, since optimizations may inline more function calls, eliminate redundant code, or otherwise make it possible to determine that certain code is unreachable. We have observed that new instances of warning C4720 have frequently occurred in **try/catch** blocks, especially in relation to use of [std::find](assetId:///std::find?qualifyHint=False&autoUpgrade=True).
982+
In many cases, this warning might only be issued when compiling with optimizations enabled, since optimizations may inline more function calls, eliminate redundant code, or otherwise make it possible to determine that certain code is unreachable. We have observed that new instances of warning C4720 have frequently occurred in **try/catch** blocks, especially in relation to use of [std::find](../standard-library/algorithm-functions.md#find).
983983

984984
Example (before)
985985

docs/text/how-to-convert-between-various-string-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ Hello, World! (System::String)
690690

691691
### Description
692692

693-
This example demonstrates how to convert from a wide character (Unicode) [System::String](assetId:///System::String?qualifyHint=True&autoUpgrade=True) to the other string types listed above.
693+
This example demonstrates how to convert from a wide character (Unicode) [System::String](/dotnet/api/system.string) to the other string types listed above.
694694

695695
### Code
696696

0 commit comments

Comments
 (0)