CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: 2kaud

Search: Search took 0.04 seconds.

  1. Re: Processing Time For PVOID Into Byte Array Conversion

    Er... No. queue needs a type of data that is to be stored. PVOID is not a suitable type as this is just a pointer to void.

    I've knocked up some code to demonstrate the idea between a producer...
  2. Re: Processing Time For PVOID Into Byte Array Conversion

    for(int i = 0; i < 2048; i++)
    {
    TempRealDataArray[i] = (*(bTo + i)); //This array data passed to paint method to drawn an image.
    if(i == 1030) Temp[cnt] = TempRealDataArray[i]; //To find the...
  3. Re: Processing Time For PVOID Into Byte Array Conversion

    Where is this data coming from and how does it get set into the memory pointed to by pvData? Is one thread producing this data and another thread processing it?
  4. Re: Processing Time For PVOID Into Byte Array Conversion

    If all you need is a byte pointer to the data for drawing purposes, then replace



    PVOID pvData = (PVOID)data;
    byte *bPoint = (byte*) pvData;

    byte TempArr[1024];
    byte *bTo = TempArr;
  5. Re: Processing Time For PVOID Into Byte Array Conversion

    The numbers are the difference between two calls to QueryPerformanceCounter. For the sake of the comparisons I did it doesn't really matter what are the units of measurement - just the relative...
  6. Re: Processing Time For PVOID Into Byte Array Conversion

    First, your code has a problem



    TempArr[i] = (byte) (*bPoint + i);


    should be
Results 1 to 6 of 6





Click Here to Expand Forum to Full Width

Featured