Click here to Skip to main content
15,899,825 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Read a file on click event Pin
CodingLover15-Oct-07 21:22
CodingLover15-Oct-07 21:22 
AnswerRe: Read a file on click event Pin
Naveen15-Oct-07 21:12
Naveen15-Oct-07 21:12 
GeneralRe: Read a file on click event Pin
CodingLover15-Oct-07 21:18
CodingLover15-Oct-07 21:18 
GeneralRe: Read a file on click event Pin
Naveen15-Oct-07 21:27
Naveen15-Oct-07 21:27 
GeneralRe: Read a file on click event Pin
CodingLover15-Oct-07 21:33
CodingLover15-Oct-07 21:33 
GeneralRe: Read a file on click event Pin
Naveen15-Oct-07 22:50
Naveen15-Oct-07 22:50 
GeneralRe: Read a file on click event Pin
CodingLover15-Oct-07 22:55
CodingLover15-Oct-07 22:55 
GeneralRe: Read a file on click event Pin
Naveen15-Oct-07 22:59
Naveen15-Oct-07 22:59 
Eranga Thennakoon wrote:
UINT readText = 0;
readText = openFile.Read(tempBuffer, strlen(tempBuffer)) ;


Mad | :mad:
This is not the code I suggested you earlier

void CSRFToolDlg::OnBnClickedRead()
{
TCHAR tempBuffer[256] ;
UINT readText = 0;
readText = openFile.Read(tempBuffer, 256 ) ;
SetDlgItemText(IDC_S_READ, tempBuffer ) ;
}

The readtext is having the number og bytes read by the read function. And you are trying to set that UINT value to the edit box???? the tempBuffer containes the data actaully read from the file.


GeneralRe: Read a file on click event Pin
CodingLover15-Oct-07 23:05
CodingLover15-Oct-07 23:05 
GeneralRe: Read a file on click event Pin
Naveen15-Oct-07 23:08
Naveen15-Oct-07 23:08 
GeneralRe: Read a file on click event Pin
CodingLover15-Oct-07 23:13
CodingLover15-Oct-07 23:13 
GeneralRe: Read a file on click event Pin
Naveen15-Oct-07 23:20
Naveen15-Oct-07 23:20 
GeneralRe: Read a file on click event Pin
CodingLover15-Oct-07 23:28
CodingLover15-Oct-07 23:28 
GeneralRe: Read a file on click event Pin
Naveen15-Oct-07 23:33
Naveen15-Oct-07 23:33 
GeneralRe: Read a file on click event Pin
CodingLover16-Oct-07 0:46
CodingLover16-Oct-07 0:46 
GeneralRe: Read a file on click event Pin
Naveen16-Oct-07 3:32
Naveen16-Oct-07 3:32 
GeneralRe: Read a file on click event Pin
chandu00416-Oct-07 1:36
chandu00416-Oct-07 1:36 
GeneralRe: Read a file on click event Pin
Naveen16-Oct-07 3:35
Naveen16-Oct-07 3:35 
GeneralRe: Read a file on click event Pin
chandu00416-Oct-07 4:12
chandu00416-Oct-07 4:12 
GeneralRe: Read a file on click event Pin
Naveen16-Oct-07 5:12
Naveen16-Oct-07 5:12 
GeneralRe: Read a file on click event Pin
chandu00416-Oct-07 20:49
chandu00416-Oct-07 20:49 
AnswerRe: Read a file on click event Pin
Roger Broomfield15-Oct-07 21:36
Roger Broomfield15-Oct-07 21:36 
GeneralRe: Read a file on click event Pin
CodingLover15-Oct-07 21:54
CodingLover15-Oct-07 21:54 
GeneralRe: Read a file on click event Pin
Roger Broomfield15-Oct-07 22:00
Roger Broomfield15-Oct-07 22:00 
GeneralRe: Read a file on click event Pin
chandu00415-Oct-07 22:01
chandu00415-Oct-07 22:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.