I want to call it .. Well as ShellExecute (handles, 'Open', 'C: \ Windows Notepad .exe ', zero, zero, SW_SOWNOWNMAL) I can call it without a method of form1
But I had only one process "process transsetset ();" That I want to call it in and this handle does not recognize ... do I need to make this process a form of Form 1? How do I do that? This is the solution.
Yes, shellexecute requires window handle The simplest solution is to pass it in your method. I think it's a bit ugly though, personally, I consider calling on ShellExecute when the method returns if the call is optional (data dependent), then consider returning a status flag from the method that says ShellExecute call Is it necessary or not? Works in any way, though.
Comments
Post a Comment