"Eric Kaplan"
>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