Using WinExec and Code Example for Clear Understanding

  • Thread starter Thread starter Pattielli
  • Start date Start date
Click For Summary
Using Winexec is discouraged unless absolutely necessary, as it is primarily for accessing older 16-bit programs. Instead, it is recommended to use CreateProcess for better control and functionality in Windows programming. MSDN is a valuable resource for understanding these functions and their proper usage. The discussion highlights the importance of being aware of the limitations of Winexec, particularly when managing process activity, especially for those new to Windows programming.
Pattielli
Messages
296
Reaction score
0
Can you tell me how to use it correctly ?
can you please give me a piece of code to clearify what you mean ?

Thank you very much.
 
Computer science news on Phys.org
Don't use it unless you absolutely positevly have to. It's function for accessing older 16-bit programs.

Here, if you're going to fiddle with windows programming then you should get acquanted with MSDN http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/winexec.asp
 
Last edited by a moderator:
Oh, thank you very much, tat means i should use CreateProcess instead of Winexec, ?
I am trying to turn off the "activeness" of some processes that are running by using Winexec, I am still new to this, really. I honestly didn't know about its drawbacks when compared to CreateProcess...I learn new things from you, faust9.
Again, Thank you very much...
 
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 10 ·
Replies
10
Views
1K
Replies
10
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
16
Views
3K
Replies
15
Views
10K
  • · Replies 1 ·
Replies
1
Views
2K