Jump to content

Recommended Posts

Posted

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

Posted

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)
Posted

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().

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...