Ian Collins wrote:
alex wrote: I want to implement an async-function,just like Oracle OCI function:
for example:
I call oci "execute(strSQL)" function, and I can call "cancle"
function to cancle the process if the SQL execute too long.
How to implement the execute and cancle functions?
Lookup threading on your platform.
In addition to threading there are other possibilities, some employ
concurrency and some don't.
For example you can launch a server process and send signals,
alternatively, if the program involves a message pump you can chop the
task into small chunks and use the message system for non-concurrent
execution.
Regards,
Ben