Wednesday, August 3, 2011

The WaitForSingleObject() Example

Create a new empty Win32 console application project. Give a suitable project name and change the project location if needed.

Then, add the source file and give it a suitable name.



Project file created:

The following source codes to add and build:

#include "stdafx.h"
#include

#include

// Thread counts till PassVal

void ThreadMain(LONG PassVal)
{
LONG i;
for(i=0;iApplication testing:



No comments:

Post a Comment