How can I get the code submitted by user "Brian" at How to send text to Notepad in C#/Win32? to work in Visual Studio Code.
I did a "Dotnet add package System.Runtime" and that seem to add the System.Runtime package, but I am still get a compile error: WriteNotepad.cs(10,50): error CS0246: The type or namespace name 'IntPtr' could not be found (are you missing a using directive or an assembly reference?)
Stephen
IntPtr is in the System namespace so include this up top.
using System;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.