Sign in to follow this  
Followers 0
TIapko

WinExec() doesn`t works

4 posts in this topic

I make my first steps in Visual C++ and i read one book, after few chapters i saw one problem, this code doesn`t works correctly

WinExec("pbrush.exe", SW_SHOW);

az i start my program and click on button for this action nothing hapend, why ? Can you tell me other ways to start any aplication because they mentioned som functions but i have no idea how to work with them..

My PC is 64bits

Share this post


Link to post
Share on other sites



I make my first steps in Visual C++ and i read one book, after few chapters i saw one problem, this code doesn`t works correctly

az i start my program and click on button for this action nothing hapend, why ? Can you tell me other ways to start any aplication because they mentioned som functions but i have no idea how to work with them..

My PC is 64bits

In AutoIt:

Run("pbrush.exe",@SystemDir,@SW_SHOW)

When the words fail... music speaks

Share this post


Link to post
Share on other sites

Throw away that book, it must be older than hell. WinExec() is a carry-over function from the 16-bit era of Windows. Starting with Windows 95 it was superseded by CreateProcess().

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0