Hi,
Thanks to support me. I'm beginner only.

I didn't use Queue before that. I learned the queue concept. By using the queue concept, feeling very difficulty.

I stored the data into the queue , now how can I retrieve the data from that?. I know the method pop(). But i want byte array format.
The sample code, i didn't try just i share my doubt before use the code.
Code:
#include <queue>
using namespace std;
queue<PVOID> mypvoidQ;

void CMyDlg::realData()
{	
  while (forever)
  {
       while (card_says_I_have_data)
              AddDataFromCardToBackOfQueue();

      if (!mypvoidQ.empty() )
      {
             RemoveDataFromFrontOfQueue(); //How is possible? how can i copy the data into byte array
             DrawMyImageWithTheData();
      }

  }
}
void CMyDlg::AddDataFromCardToBackOfQueue()
{
  pDaqData = GetData(m_nDevNo, &rc);	 
  mypvoidQ.push(pDaqData);
  mypvoidQ.back();
}
void CMyDlg::RemoveDataFromFrontOfQueue()
{
  mypvoidQ.front();
  mypvoidQ.pop();//How is possible? how can i copy the data into byte array
}
Really I felt very bad about me. before use codegure, no one here to help me. But now, all of then help me but my knowledge, I'm felt very difficult
I will study the concept and use and come back with you. Please give any sample code for me about queue.