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 strongm 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. ncwizad

    copying contents of a file to another?

    Hello, Is there a simple way of copying one file into another from within an application. Basically i'm writing a log file of the success/failiure of th e application. At the end it would be helpful to have a record of the data used in the application. Ideally a function similar to...
  2. ncwizad

    Am i losing Focus?

    Hi, I'm writing a Dialog aplication that includes a progress bar control and a simple edit box that i use as a status bar. during various parts of the prog i'll write to these items within a loop similar to as shown, m_ProgressControl1.SetPos(Percent(LineNum+1,NoOfRecords))...
  3. ncwizad

    First-chance exception problem?

    Thanks for that, but just to be sure i've rewritten the code using fopen() and fgets() which seems to solve my problems. FILE *IniFile; IniFile = fopen(m_IniFileName, "r"); if (IniFile == NULL) { command.Format("%s","Cannot Open Config File: %s",m_IniFileName)...
  4. ncwizad

    First-chance exception problem?

    Hi, This code produces First-chance exception warnings on its last pass while reading the contents of the file m_IniFileName into the CString variable strAptLine. ie. CArchive exception: endOfFile. First-chance exception in Prog.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception...
  5. ncwizad

    General Help in Putting things in the right place!

    Yea Thanks i sort of get that, but do all functions need to be members of a class? i have a few functions that i want to be able to use globally. where do i declare them and where do i write the code?... inside the Post class?
  6. ncwizad

    General Help in Putting things in the right place!

    i dont think i'm very hot but i do claim to know at least the basics of C++, maybe i didnt phrase my question too well. Visual C++ seems to create a .cpp file for each class but i'm confused as to how all these files interact (especially at compile and linkage time) For instance the project is...
  7. ncwizad

    General Help in Putting things in the right place!

    Hello, I'm new to MFC and i'm confused! I have some procedures that need to be accessed in several areas of a program, which is the best source or Header file to write them in? or if i create a new file, how do i make sure the other bits of the program see them correctly. Thanks
  8. ncwizad

    CListCtrl::HitTest....Whats the Point?

    OK I get it!, the HitTest doesnt work I've had to create my own function to do its job void CTls2csvDlg::OnDblclkList(NMHDR* pNMHDR, LRESULT* pResult) { int pos1 = GetPickedItem(); sprintf(stat,"Editing %s", m_List.GetItemText( pos1,0) ); SendDlgItemMessage( IDC_STATUS, SB_SETTEXT...
  9. ncwizad

    CListCtrl::HitTest....Whats the Point?

    More Info........ The problem seems to lie with the CPoint class, as the x and y values of the picked position are not being passed along. What do i need to do to get these values to the HitTest proc??? Dave H
  10. ncwizad

    CListCtrl::HitTest....Whats the Point?

    Hi. My CListCtrl is called m_List, which i've populated with some data. i've added an event (NM_CLICK) with the expectation that i could use HitTest to determine which row number was highlighted. The code is as follows... void CTls2csvDlg::OnClickList(NMHDR* pNMHDR, LRESULT* pResult) {...

Part and Inventory Search

Back
Top