CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Thread: Checksum

Threaded View

  1. #5
    Join Date
    May 2004
    Posts
    103
    hey dude...
    hope this helps....
    (i'm assuming u are sending this to a device connected to serial port)

    Code:
    byte buf[4];
    buf[1] = 0xAA;
    buf[2] = 0x01;
    buf[3] = 0x00;
    buf[4] = ...... // u can do ur calculations for ur checksum here dude 
    
    WriteFile (m_hCommPort,buf,sizeof(buf),&dwBytesWritten ,&ov);....
    hopefully this helps....

    later
    Last edited by thamizh07; July 14th, 2004 at 10:32 PM.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured