Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

Raj Indian

@Raj Indian
About
Posts
6
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Troublesome Handling of Files in C++
    R Raj Indian

    fstream::eof() - returns true if the 'eofbit' has been set by a previous i/o operation. fstream::read(s, n) - sets 'eofbit' if the End-of-File is reached before n characters have been read. The file has only 5 characters and the while loop will execute twice. In the first pass you try to read 5 bytes and it will be success. In the second pass read will fail and sets the 'eofbit'. Since you are not checking how many bytes read, you cout the old buffer contents again. This is the reason why you got "abcfabcf". The code can be changed to print "abcf" once, by checking the bytes read using fstream::gcount() as ................. if(file.is_open()) { //file.write(data,sizeof(data)); while(!file.eof()) { file.read(data,sizeof(data)); if(file.gcount()) cout<<data; } file.close(); } ..................

    C / C++ / MFC help c++ ios tutorial question

  • How to get Dialog handle
    R Raj Indian

    Could you please post you code snippet?

    C / C++ / MFC help tutorial

  • CListCtrl text underline?
    R Raj Indian

    Try CListCtrl::SetExtendedStyle() refer: http://msdn.microsoft.com/en-us/library/bb774732(VS.85).aspx

    C / C++ / MFC help question

  • char str[] help
    R Raj Indian

    if b is a pointer: char *b = str; or if b is an array and you need to copy the whole null terminated string to it: #define SIZE 200 // or any suitable value char b[SIZE]; strcpy( b, str ); One suggestion: please use meaningful names as variable names instead of b

    C / C++ / MFC help question c++

  • Perform the Restart device ,after installation of cab
    R Raj Indian

    Using SetSystemPowerState() API a Windows CE device can be restarted.

    Mobile csharp com question

  • Windows CE 6.0 n .net 2005(C#)- pendrive connect event
    R Raj Indian

    Try handling WM_DEVICECHANGE message, if your device is a host.

    Mobile csharp help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups