CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: ra96

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Re: Break from While loop upon Control read/check

    Thank you, Mr. GCDEF!
  2. Re: Break from While loop upon Control read/check

    What I'm finding is once the code has entered the While loop,
    my manual check box clicks are ignored and the app freezes up.
  3. Break from While loop upon Control read/check

    Upon completion of each iteration of a While loop, what do I call to read a check box state & either break/continue?
  4. Replies
    2
    Views
    805

    Automate file select

    Looking to add code for the following case:

    I often use CFileDialog to select text files, parse them, manipulate the data, etc.
    If I'm always using the same directory location and all files...
  5. Replies
    7
    Views
    1,529

    Re: CFileDialog - Save As dialog doesn't launch?

    Skizmo-
    I tried replacing "lpszFileName" w/ "sName". Same result.
  6. Replies
    7
    Views
    1,529

    Re: CFileDialog - Save As dialog doesn't launch?

    Sorry (knew I would end up leaving something out):

    CFileDialog savedlg(FALSE, "txt", lpszFileName);

    //launch the "File Open" dialog, and if the user selects 'Save'(IDOK):...
  7. Replies
    7
    Views
    1,529

    CFileDialog - Save As dialog doesn't launch?

    VC++ 2008:
    I parse a .txt file, find the value I'm looking for, then put it into a CString (i.e.: CString sName).
    I then want to create a file (launching the Save As dialog) using sName value as...
  8. Replies
    1
    Views
    2,011

    Cmd Line: Run local file over network

    2 boxes exist on network (Box1 & Box2).
    File X.vbs toggles Microsoft Mute (volume) property.
    X.vbs exists on Box1 @ C:\
    From the Box1 command line, I want to run the Box1 file C:\X.vbs, but I want...
  9. Thread: Read in HTML file

    by ra96
    Replies
    16
    Views
    2,268

    Re: Read in HTML file

    While I greatly appreciate the willingness to help, the level of difficulty of this task has gone over my head.

    I admit it's a cheat, but this quick file conversion works for me:...
  10. Thread: Read in HTML file

    by ra96
    Replies
    16
    Views
    2,268

    Re: Read in HTML file

    Again, tried .tsv. However, I'm getting the same end result as when the file is saved .html.
  11. Thread: Read in HTML file

    by ra96
    Replies
    16
    Views
    2,268

    Re: Read in HTML file

    Example of 1st few lines of read-in text as it appears in .html file (as well as when the .html file type is changed to .txt -still doesn't work):

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0...
  12. Thread: Read in HTML file

    by ra96
    Replies
    16
    Views
    2,268

    Re: Read in HTML file

    Purpose:
    All I want to do is use the data in the .html file (this data can be viewed when the .html file is opened in Notepad -is surrounded by <tags> of course), to do some math in C++ code.
  13. Thread: Read in HTML file

    by ra96
    Replies
    16
    Views
    2,268

    Re: Read in HTML file

    Thx for the discussion, Mike.
    To clarify, the Perfmon session I'm viewing is launched from a .msc file.
    I then right-click in the display of the Perfmon data, right click & Save As, and the default...
  14. Thread: Read in HTML file

    by ra96
    Replies
    16
    Views
    2,268

    Re: Read in HTML file

    No change when applying the wifstream method.
    Additional info: the html file is the saved output of perfmon (i.e.: viewing Perfmon output, Save As the output, default file type is .html). I then...
  15. Thread: Read in HTML file

    by ra96
    Replies
    16
    Views
    2,268

    Read in HTML file

    I have an html file.
    Trying to read it into VC++ 8.

    I've done this before w/ non-HTML files by reading it in as a block when dealing w/ binary. Example:
    ifstream file.read (char * buffer,...
  16. Re: Any tips for updating progress bar during std::search?

    Sorry, do not have the experience to implement solution based on the info in the reply.
    Upon execution of std:search, how to recognize when the search is at (for example) 10&#37; of int length (size of...
  17. Any tips for updating progress bar during std::search?

    I would like to update a progressbar (i.e.: CProgressCtrl pBarControl) during a search of data read in as a block.
    The search takes awhile (app "appears" to freeze) so I would like to show progress....
  18. Replies
    11
    Views
    1,863

    Re: VC++ 2008: can only read in a portion of file?

    Ok, Philip (or anyone else who would like to be helpful).
    I have used Philip's advice to read the db (.txt file) as a block to avoid embedded NULLs.
    Obviously that is new to me.
    Using Philip's...
  19. Replies
    11
    Views
    1,863

    Need to search only a portion of a text file for a value -no CString

    Looking for a tip on the following:
    I want to search only a portion of a text file for a value.
    Note: The variable, holder, has embedded NULLs.


    char * holder;

    //create the...
  20. Replies
    11
    Views
    1,863

    Re: VC++ 2008: can only read in a portion of file?

    Philip, Skizmo - you guys are great - always trying to help..

    Response to Skizmo: yes I'm using the debugger and it's output (for some of the files) for char * holder 0x07e90040 "øéÚË _%4"...
  21. Replies
    11
    Views
    1,863

    VC++ 2008: can only read in a portion of file?

    Would very much appreciate any clues here:

    I have a number of different result output files (all ".res" - Silk-based) that I'm treating like .txt files and am trying to read into my VC++2008 code....
  22. Replies
    5
    Views
    1,282

    Re: VC++ 2008: file too large to read into memory

    Skizmo - I think you are correct. When I open my input file in VC++ & do a search for '\0', it appears. Does this make a difference w/ my method for opening file?:
    resexamplefile.open (fname,...
  23. Replies
    0
    Views
    483

    Members: find Y after X

    The following code illustrates reading in a text file.
    Setting char * holder equal to the size of the that text file.
    Reading the data as a block.
    And then searching the entire block for desired...
  24. Replies
    5
    Views
    1,282

    Re: VC++ 2008: file too large to read into memory

    Here's the code. I'm using a CString to "Find" if data that exists in the .txt has been read.
    And it is not (CString.Find returning -1).
    The same code returns a value for CString.Find (not -1) on a...
  25. Replies
    5
    Views
    1,282

    VC++ 2008: file too large to read into memory

    I have a .txt file over 100 mb and it has no delimiters.
    For smaller .txt files I've been successful w/ char *'s and used ifstream functions such as getline.
    Any tips for what to do w/ such a big...
Results 1 to 25 of 27
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured