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...
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))...
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)...
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...
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?
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...
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
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...
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
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)
{...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.