共 4 篇文章 |
|
下面我们为安装文件增加桌面快捷方式图标和开始菜单的快捷方式,并且修改可执行文件的作者、描述等等信息。首先,我们左键选中项目,然后选择属性,注意,不是右键选择属性,而是如下图一样选择属性。用户菜单的快捷方式就是在User''''''''s Programs Menu里设置,其设置的方法和桌面快捷方式的设置方法是一模... 阅41 转0 评0 公众公开 20-07-02 15:01 |
[C#]使用Process的StandardInput与StandardOutput写入读取控制台数据。//再次启动 proc.Start(); proc.StandardInput.WriteLine("T"); string content = proc.StandardOutput.ReadToEnd(); Console.WriteLine(content); proc.WaitForExit(); Console.ReadKey(); } }}RedirectStandardInput:标准输入流的重定向,重定向至Process,我... 阅521 转0 评0 公众公开 20-06-04 10:07 |
3 4 [DllImport("TestDll", EntryPoint = "PrintString")] 5 public static extern void PrintStringByMarshal([MarshalAs(UnmanagedType.1 [DllImport("TestDll", EntryPoint = "GetStringParam")] 2 public static extern void GetStringParamByBytes(byte[] outHello, int len);6 7 [DllImport(&... 阅103 转1 评0 公众公开 20-06-02 13:45 |
阅234 转0 评0 公众公开 20-05-19 14:01 |