Paths and CreateProcess

前端 未结 4 2012
小蘑菇
小蘑菇 2021-01-15 16:46

I have a question regarding a symptom of my misuse of CreateProcess. I\'m using the lpcommandline parameter to feed the path to my executable and parameters. My misuse is t

4条回答
  •  青春惊慌失措
    2021-01-15 17:17

    A good way to diagnose something like that is to build in to your application error and reporting mechanism. This helps for so many purposes- mainly for bugs that you may never see yourself and which some users may just ignore and not report to you. This way you can diagnose what these parameters were when the command was called and the failure occurred.

    Additionally, you can try exploring further the MSDN site and the advanced features associated with this method. You left most of them NULL. By exploring these extended features you will learn and maybe able to find out yourself why there may be that discrepency.

    Another generic answer but I hope this helps you to evaluate your particular situation.

提交回复
热议问题