Can't print DWORD using WriteFile RRS feed

  • Question

  • HI all

    I am tring to print 3 DWORD to a binary log and all I get is garbage

    this is me code :

    DWORD dwCount=0;

    DWORD Tick=GetTickCount();

    int anser = WriteFile(buffer->address,&ProcessId,sizeof(DWORD),&NumberIRwrit1,NULL);

    anser = WriteFile(buffer->address,&Tick,sizeof(DWORD),&NumberIRwrit2,NULL);

    anser = WriteFile(buffer->address,&dwCount,sizeof(DWORD),&NumberIRwrit3,NULL);DWORD ProcessId=GetCurrentProcessId();


    can you ples help me? this is so important  and I am losing my mayend!!!!!



    Monday, March 29, 2010 8:35 AM


  • Did ya note this is the "Training and Certification" forum?  Your question should be posted in the appropriate MSDN forum - http://social.msdn.microsoft.com/Forums/en/categories/
    • Marked as answer by Rubel Khan Saturday, April 10, 2010 3:10 AM
    Monday, March 29, 2010 12:31 PM