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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by sjmolloy

  1. sjmolloy

    Linux question ...

    No sorry to the best of my knowledge this is not supported !!! If it is I would be very interested to hear about it.
  2. sjmolloy

    CreateFile: Opening but not appending !!

    Hi all, I am sure I am missing something really obvious here BUT.. I want to open file using CreateFile. If it does not exist I want to create it and write to it... If it already exists, I want to append to it. To this end, I used...
  3. sjmolloy

    Need to load application data from a text file??

    Thanks for the time ..I am now happily reading data in from files !!!!
  4. sjmolloy

    Need to load application data from a text file??

    I have written a simple MFC application. Up until now I have been hard coding a lot of information in the code. I know need to set up a configuration file that will hold values for everything from listbox contents to values for single variables. A bit like an ini file I believe. Can anyone tell...
  5. sjmolloy

    Application only working in debug !!

    Thanks for reply - cause was a number of variables not initialised . The debugger was initialising them by default and spoiling me !!! Lesson learned !
  6. sjmolloy

    Application only working in debug !!

    I am using Microsoft Visual Studio 6.0 to build a “simple” C++ application. Basically, in the dialog box, the user should : ·select an item from a list box ·click on a button ·some processing is done by the application ·the dialog is updated and some text should appear in an edit box that forms...
  7. sjmolloy

    Conditional declaration of a variable.

    Thanks a million for the responses ! Have it cleared up now.
  8. sjmolloy

    Conditional declaration of a variable.

    Hi, I am using Microsoft Visual C++ and I want to declare a variable and initialise it to zero the first time a function is called. To this end I created a condition to check if it the first time through. I tried to do the following: if(first) { int j=0; } I then go on to use j BUT the...
  9. sjmolloy

    Difficulty opening Com port using CreateFile

    I am trying to open a Com port using the following Code: CComPort aCD; aCD.m_hComm=CreateFile(aCD.m_cgzPort,GENERIC_READ|GENERIC_WRITE,0,NULL,OPEN_EXISTING,0,NULL); Unfortunately, something is going wrong and it is failing to open. I am using GetLastError to find out what is going wrong and...
  10. sjmolloy

    \n not giving new line in edit box ????

    Excellent guys ...thanks a million ! You don't know how many hours I have spent on such a little problem !! "\r\n" works.... "\n\r" gives the funny characters.
  11. sjmolloy

    \n not giving new line in edit box ????

    Yes , Multiline is checked in the "Styles" tab of the Edit properties box.
  12. sjmolloy

    \n not giving new line in edit box ????

    Thanks for response but unfortunately this doesn't work either. \n gives one funny character at the end of the text. \n\r gives two funny characters and still no new line !! It seems a bit quirky !!
  13. sjmolloy

    carriage return

    Sorry - didn't see this thread and have raised another one on the same issue. I have tried all the obvious things (\n\r etc) I assume the funny character you are getting is the same ....a bit like a | but in bold ??
  14. sjmolloy

    \n not giving new line in edit box ????

    Hi, I want to display several lines of text in a multiline edit box. Eachline is displayed when an element of a list box is double clicked. The text is being put into the associated variable in a switch about in the following way ......m_output = "ok - print this out \n"; The text is...

Part and Inventory Search

Back
Top