ADO 2.8 not working Asynchronously in C++
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: ADO 2.8 not working Asynchronously in C++

  1. #1
    Join Date
    Feb 2012
    Posts
    2

    Exclamation ADO 2.8 not working Asynchronously in C++

    Hi Guys,

    I have some C++ code that is working in Real-Time with a decoder. Its job is to Insert into SQL 2008 R2 and its currently using ADO 2.8 to do it.

    However i dont want it to block while doing the Insert, because it holds up other packets arriving from the decoder. So i am trying to convert it to perform its calls Asynchronously, so i can blindly Insert my packets and not wait, which will be faster. Although depending on the speed, it is possible that i may need to Insert a 2nd packet before the 1st one had finished.

    I have written some sample code in C# (ADO.NET) and proved that Async mode works, but as i said earlier, the code is already in C++ and i cannot get any sample code (ADO 2.8) to work in Async mode. This is now driving me nuts!! As the docs say that i can do it, but not exactly talk you through how it is done. I think i should be using the ExecuteComplete event but that does not fire?

    Please would somebody help me find out what the heck i need to do make some progress on making Async work?

    Many many thanks,
    Rich.

  2. #2
    Join Date
    Feb 2012
    Posts
    2

    Re: ADO 2.8 not working Asynchronously in C++

    [subscribing...]

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center