question

qiudm-6095 avatar image
0 Votes"
qiudm-6095 asked ·

ShellExecute interrupt the windows message loop?

void CtestfunDlg::OnBnClickedButton1()
{
// TODO: 在此添加控件通知处理程序代码

 OutputDebugString(L"start#############\r\n");

 ShellExecute(NULL ,L"open",L"e:/abc.txt",0,0,SW_SHOW);

 OutputDebugString(L"end#############\r\n");

}
When i quickly click the button ,i think the correct output is:
start#########,end###########,start#########,end###########

But the program actual output is start#########,start#########,end###########,end###########,why?

not-supported
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

FayWang-MSFT avatar image
0 Votes"
FayWang-MSFT answered ·

Hello,​

Welcome to our Microsoft Q&A platform!

Currently, Microsoft Q&A is under a public preview. All the supported topics are on the right top. Your question is more related to c++. It is recommended that you can go to this forum to ask this question.

Thanks.


·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.