Thursday, April 03, 2008

How To: make asynchronous functions synchronous?

Simply add WaitForRequest() and remove SetActive();

Example:
TRequestStatus iStat = KRequestPending;
iEncoder->Convert(&iStat, *iImage, iJpgImageData);
User::WaitForRequest(iStat); //Remove SetActive();

No comments:

stats counter