Eric Kaplan
2008-04-12 21:44:53 UTC
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()
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?
Thanks
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()
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?
Thanks