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
Copy file name to clipboardExpand all lines: docs/cppcx/crt-functions-not-supported-in-universal-windows-platform-apps.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ The following table lists the CRT functions that are unavailable when you build
12
12
13
13
## Unsupported CRT Functions
14
14
15
-
|Function|Description|Workaround|
15
+
|Function|Description|Workaround|
16
16
|-|-|-|
17
17
|`_beep``_sleep``_seterrormode`|These functions were obsolete in previous versions of the CRT. Also, the corresponding Win32 APIs are not available for UWP apps.|No workaround.|
18
18
|`chdir``_chdrive``getcwd`|These functions are obsolete or are not thread-safe.|Use `_chdir`, `_getcwd` and related functions.|
@@ -32,7 +32,7 @@ The following table lists the CRT functions that are unavailable when you build
32
32
33
33
The following functions are available in the CRT for UWP apps. However, use them only when you can't use the corresponding Win32 or Windows Runtime APIs, such as when you're porting large code bases:
34
34
35
-
|Functions|Workaround|
35
+
|Functions|Workaround|
36
36
|-|-|
37
37
|Single-byte string functions—for example, `strcat`, `strcpy`, `strlwr`, and so on.|Make your UWP apps strictly Unicode because all Win32 APIs and Windows Runtime APIs that are exposed use Unicode character sets only. Single-byte functions were left for porting large code bases, but should otherwise be avoided. The corresponding wide char functions should be used instead when possible.|
38
38
|Stream IO and low-level file IO functions—for example, `fopen`, `open`, and so on.|These functions are synchronous, which isn't recommended for UWP apps. In your UWP apps, use asynchronous APIs to open, read from, and write to files to prevent locking of the UI thread. Examples of such APIs are the ones in the `Windows::Storage::FileIO` class.|
@@ -41,7 +41,7 @@ The following functions are available in the CRT for UWP apps. However, use them
41
41
42
42
Both the previously mentioned APIs and the following APIs are unavailable in Windows 8.x Store apps and Windows Phone 8.x apps.
43
43
44
-
|Functions|Description|Workaround|
44
+
|Functions|Description|Workaround|
45
45
|-|-|-|
46
46
|`_beginthread``_beginthreadex``_endthread``_endthreadex`|Threading Win32 APIs are not available in Windows 8.x Store apps.|Use the `Windows Runtime Windows::System::Threading::ThreadPool` or `concurrency::task` instead.|
47
47
|`_chdir``_wchdir``_getcwd``_getdcwd``_wgetcwd``_wgetdcwd`|The concept of a working directory doesn't apply to Windows 8.x Store apps.|Use full paths instead.|
0 commit comments