这个"简单"问题似乎充满了侧面问题.
例如.新进程是否打开了多个窗口; 它有闪屏吗?
有一个简单的方法吗?(我正在开始一个新的Notepad ++实例)
...
std::tstring tstrNotepad_exe = tstrProgramFiles + _T("\\Notepad++\\notepad++.exe");
SHELLEXECUTEINFO SEI={0};
sei.cbSize = sizeof(SHELLEXECUTEINFO);
sei.fMask = SEE_MASK_NOCLOSEPROCESS;
sei.hwnd = hWndMe; // This app's window handle
sei.lpVerb = _T("open");
sei.lpFile = tstrNotepad_exe.c_str();
sei.lpParameters = _T(" -multiInst -noPlugins -nosession -notabbar ";
sei.lpDirectory = NULL;
sei.nShow = SW_SHOW;
sei.hInstApp = NULL;
if( ShellExecuteEx(&sei) )
{ // I have sei.hProcess, but how best to utilize it from here?
}
...
Run Code Online (Sandbox Code Playgroud) 我在VBA中有一个包含Unicode字符的字符串。
我想在包含该字符串的消息框中显示该字符串。
但是,消息框仅包含一个问号,而不是字符串。
MCVE:
Dim s As String
s = ChrW(5123)
MsgBox s
Run Code Online (Sandbox Code Playgroud)