skw*_*ear 2 c# memory-management managed processstartinfo
我正在将C++代码移植到C#,我在C++代码中遇到了这个问题,
SHELLEXECUTEINFO shell;
memset(&shell, 0, sizeof(shell));
//the properties in shell are set
ShellExecuteEx(&shell);
Run Code Online (Sandbox Code Playgroud)
所以,现在我使用Process.Start(),并ProcessStartInfo为C#代码.ProcessStartInfo当我调用ProcessStartInfo构造函数时,是否必须为内存分配内存?只是为了满足我的好奇心,这种memset在C++ 中使用的方式是一种非托管语言的练习还是我理解错误的东西?
谢谢.
| 归档时间: |
|
| 查看次数: |
88 次 |
| 最近记录: |