Thread: WriteFile issue

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1,579

    WriteFile issue

    Hello everyone,


    The 3rd parameter of WriteFile is number of bytes to write,

    http://msdn2.microsoft.com/en-us/library/aa365747.aspx

    I am wondering if I want to write multi-byte character string or wide character string on Windows, how could I get the number of bytes?


    thanks in advance,
    George

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Use sizeof()
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. float calculation issue
    By George2 in forum C# Programming
    Replies: 1
    Last Post: 05-26-2008, 04:56 AM
  2. type safe issue
    By George2 in forum C++ Programming
    Replies: 4
    Last Post: 02-12-2008, 09:32 PM
  3. Replies: 14
    Last Post: 06-28-2006, 01:58 AM
  4. Idle Issue.
    By Charmy in forum C++ Programming
    Replies: 7
    Last Post: 06-24-2005, 06:10 AM
  5. my first issue of GDM
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 09-12-2002, 04:02 PM