Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Unrivaled1

    Reading .CSV and displaying in MessageBox

    This turned out to be quite a stumper. Anyone know of other forums that cater to vc++ file access questions?
  2. Unrivaled1

    Reading .CSV and displaying in MessageBox

    It seems this wasn't as simple a process as I thought. Anyone at all have any insight on this?
  3. Unrivaled1

    Really basic question plz answer quickly

    I don't have much experience with running one within another. Didn't even know that could be done.
  4. Unrivaled1

    Really basic question plz answer quickly

    Is this a c++ program, or Visual c++? Try replacing cout with std::cout and see if that helps.
  5. Unrivaled1

    Reading .CSV and displaying in MessageBox

    Ok, this should be a simple one (which is why I am clueless). I have a .csv file with 700+ rows each containing 23 columns of text. All I need to do is referrence the file by specifying which row I want, pulling the entire row of 23 columns and outputting it to a MessageBox with each column...
  6. Unrivaled1

    Reading from .CSV and displaying in MessageBox

    Ok, this should be a simple one (which is why I am clueless). I have a .csv file with 700+ rows each containing 23 columns of text. All I need to do is referrence the file by specifying which row I want, pulling the entire row of 23 columns and outputting it to a MessageBox with each column...
  7. Unrivaled1

    Importing .txt into MS Excel

    Thanks dcompto! That did in fact work nicely. I need to see if I can mass-produce that effect for all of these text files, but if nothing else I now know it can be done.
  8. Unrivaled1

    Importing .txt into MS Excel

    Skip.. Do you mean assuming I have less than 256 columns?? As I stated in my original post, 20 lines per .txt file. That equates to 20 columns per row. I'm pretty sure the amount of rows I can have are nigh endless. CorBlimey.. That would be the simplest way to go, and one I may yet have to...
  9. Unrivaled1

    Importing .txt into MS Excel

    Is there a way to import an msdos .txt file so that each line of text gets imported into a separate column within the same row? For example: A .txt file with 20 lines of text all separated by carriage returns.. Imported into a single row within a spreadsheet, one line per column. Any help...
  10. Unrivaled1

    How do I output .txt file contents into a MessageBox?

    Is there any way to output the contents of a standard ms-dos text file directly into a MessageBox?
  11. Unrivaled1

    New thread for LineScroll problem

    I've started a new thread for this problem since my other post has died out with no resolution. All I am looking to do is have my Edit Box automatically scroll down when the box fills with text and new text appearing goes off the screen. Some sample code illustrating this working would be great.
  12. Unrivaled1

    LineScroll

    Ok, I now have a control variable assigned to the Edit Box in question: m_EDIT2a It seems like I should be able to: m_EDIT2a.LineScroll(1); or m_EDIT2a.SetWindowText->LineScroll(1); Maybe I'm way off base here..
  13. Unrivaled1

    LineScroll

    I guess I'm just not getting it.. The only place in my code that has class CWhatever: public CDialog is the CAboutDlg area. I have a Vertical Scrollbar on my Edit Box window that was added via the Edit Box Properties under Styles. The ID for that Edit Box is IDC_EDIT2 and I've tried using...
  14. Unrivaled1

    LineScroll

    Any chance someone could post some sample code of forcing a Vscroll? I've found countless examples that don't work for me.
  15. Unrivaled1

    Not nearly random

    Nevermind. I found a spot and its working as promised. Much obliged for the assistance.
  16. Unrivaled1

    Not nearly random

    That makes sense. I've tried adding it in near the beginning in several spots, but get a compile error each time. I'm too new to VC++ to know where it should go.
  17. Unrivaled1

    Not nearly random

    I've done my homework and found numerous references to the following code being as close to random as VC++ gets: srand((unsigned)time(NULL)); d100 = 1 + rand()%100; However, if you run this repeated with no pause you get a steadily increasing "random" value until it crests 100 and starts over...
  18. Unrivaled1

    LineScroll

    Thanks for the reply. You're right in that it needed the identifier: Cedit::LineScroll; gives no compiler error, but also gives no line scroll. If I add: Cedit::LineScroll(1); or Cedit::LineScroll(); It gives an error of: illegal call of non-static member function.
  19. Unrivaled1

    LineScroll

    I have found numerous references to using the LineScroll(1); command in VC++ to scroll down one line in an Edit Box window. However, when I add it to my own MFC App, it gets a compile error of it being an Undeclared Identifier. So, it obviously doesn't even recognize the command. In the samples...
  20. Unrivaled1

    Help with a small newbie app

    Sorry.. It was 3am when I wrote that last reply. Turns out what was killing it was using m_EDIT1 = m_EDIT2 + CRLF + m_EDIT1 and then writing m_EDIT1 back out to the screen. Once I created a new CString m_EDIT3 and used it to append the two Edit boxes it worked out fine. Sorry to be a pain.

Part and Inventory Search

Back
Top