WriteFile issue

This is a discussion on WriteFile issue within the C Programming forums, part of the General Programming Boards category; 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 ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,541
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 08: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21