Why does CreateProcess give error 193 (%1 is not a valid Win32 app)

后端 未结 4 1187
花落未央
花落未央 2020-11-28 16:13

The code below fails to start documents. I get error 193 (%1 is not a valid Win32 app). Starting executables work fine. The files are properly associated, they start the cor

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-28 17:09

    Your Button2Click and Button3Click functions pass klad.xls and smimime.txt. These files most likely aren't actual executables indeed.

    In order to open arbitrary files using the application associated with them, use ShellExecute

提交回复
热议问题