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
K

kelprinc

@kelprinc
About
Posts
47
Topics
15
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Number of files and folders
    K kelprinc

    I need it programatically. I tried FindFirstFile/FindNextFile but recursion is a bit too slow and uses up too much resources. I thought there was a data structure for each partition that had all the partition information including number of files and folders. Kelvin Chikomo

    C / C++ / MFC tutorial

  • Number of files and folders
    K kelprinc

    Does anybody know how to get the number of files and folders on a windows machine. Kelvin Chikomo -- modified at 6:47 Sunday 12th February, 2006

    C / C++ / MFC tutorial

  • Read tab delimited file
    K kelprinc

    I managed to sort out the problem by reading the whole line into a istringstream object then tokenize the object using the getline method and '\t' as the delimiter. But for interest sake how wld you do it? Kelvin Chikomo

    C / C++ / MFC help tutorial

  • Read tab delimited file
    K kelprinc

    Thanks but strtok() does not work well if you have empty columns. i.e concurrent tabs

    C / C++ / MFC help tutorial

  • Read tab delimited file
    K kelprinc

    I got it I read each line into an an istringstream object and i use getline(buffer,num_chars,'\t') to seperate the the string. COOL Kelvin Chikomo

    C / C++ / MFC help tutorial

  • Read tab delimited file
    K kelprinc

    DO you have any suggestions

    C / C++ / MFC help tutorial

  • Read tab delimited file
    K kelprinc

    Yah they have spaces between them

    C / C++ / MFC help tutorial

  • Read tab delimited file
    K kelprinc

    Does anybody know how to read a tab delimited file at the same time using the '\n' as a delimiter if its encountered first. I tried using getline(buffer, num_chars, '\t') It works fine when i know the number of columns. Say i had a file like line1:Col1 Col2 Col3 line2:Col1 Col2 line3:Col1 Col2 Col3 using getline(buffer, num_chars, '\t') would return Col1 Col2 Col3 Col1 Col2 Col1 Col2 Col3 everything in one line. I tried defining a macro like #define tab_eol '\t'|'\n' then use it as getline(buffer,num_chars,tab_eol) but it does not really work Any help Please Kelvin Chikomo

    C / C++ / MFC help tutorial

  • Checking if a user is in a group
    K kelprinc

    Let me try it. I want to check both local and global groups. I have spent the whole day struggling Kelvin Chikomo

    C / C++ / MFC tutorial

  • Checking if a user is in a group
    K kelprinc

    Does anybody know how to check if a user is part of a WINNT group.

    C / C++ / MFC tutorial

  • Wbemuuid.lib
    K kelprinc

    Thanks let me google XP SP2 Kelvin Chikomo

    C / C++ / MFC question

  • Wbemuuid.lib
    K kelprinc

    Hello does anybody have the Wbemuuid.lib library? I do not have it in my SDK. If you know a link to the source of this library, please hook it up. or if you have it please email it to me. Kelvin Chikomo

    C / C++ / MFC question

  • [Message Deleted]
    K kelprinc

    [Message Deleted]

    System Admin

  • [Message Deleted]
    K kelprinc

    [Message Deleted]

    System Admin

  • [Message Deleted]
    K kelprinc

    [Message Deleted]

    System Admin

  • Binary to Text File
    K kelprinc

    I don`t realy understand your question, but from what i understand i suggest you open your file in binary mode and write it to a nuew file with a .txt extension. ifstream infile; infile.open("file_name.lnr", ios::bin); //get the number of characters infile.read(buffer,size); ofstream outfile; outfile.open("new_file.txt"); outfile.write(buffer,size); The syntax might be wrong Kelvin Chikomo

    C / C++ / MFC c++ tutorial question

  • Binary to Text File
    K kelprinc

    I don`t realy understand your question, but from what i understand i suggest you open your file in binary mode and write it to a nuew file with a .txt extension. ifstream infile; infile.open("file_name.lnr", ios::bin); //get the number of characters infile.read(buffer,size); ofstream outfile; outfile.open("new_file.txt"); outfile.write(buffer,size); The syntax might be wrong Kelvin Chikomo

    C / C++ / MFC c++ tutorial question

  • [Message Deleted]
    K kelprinc

    [Message Deleted]

    System Admin

  • Share permissions
    K kelprinc

    What do you mean? Can I get some help please. Kelvin Chikomo

    C / C++ / MFC tutorial question

  • [Message Deleted]
    K kelprinc

    [Message Deleted]

    System Admin
  • Login

  • Don't have an account? Register

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