Group: comp.lang.c++
From: "sk_usenet"
Date: Saturday, April 12, 2008 6:31 PM
Subject: Re: c++ event sink


"Eric Kaplan" wrote in message
>I have a function that will download XML from internet and load XML
> data into database.
>
> The function will take 5 - 20 minutes to finish.
>
> I heard I should use event sink (event listener) when function is
> finished the task, then it will notify the caller.
>
> So I am planning to create a seperate thread to do the long XML
> loading function by using - _beginthreadex()

There is no concept of thread or process as far as the C++ language is
concerned. People would scream your question as OT here :-). You should try
your platform specific newsgroup.

> But how to create a notification / event sink / event listener in C++?
>
> any library can easily just a library function call?
>
> or any sample source code on the internet?

Search engines are your friend.
--
http://techytalk.googlepages.com


Safety Articles | Usenet Groups | Usenet News | Bluegrass