Click here to Skip to main content
15,895,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Find path of a selected file in explorer Pin
David Crow25-Jan-06 5:10
David Crow25-Jan-06 5:10 
GeneralRe: Find path of a selected file in explorer Pin
Arumugarani Sundaram26-Jan-06 17:38
Arumugarani Sundaram26-Jan-06 17:38 
QuestionRe: Find path of a selected file in explorer Pin
David Crow27-Jan-06 2:49
David Crow27-Jan-06 2:49 
QuestionFM20.DLL sucks! Pin
<color>Aljechin 24-Jan-06 19:13
<color>Aljechin 24-Jan-06 19:13 
QuestionRe: FM20.DLL sucks! Pin
David Crow25-Jan-06 5:15
David Crow25-Jan-06 5:15 
Questionhow to personlize print dialog using PRINTDLG Pin
a_david12324-Jan-06 18:43
a_david12324-Jan-06 18:43 
QuestionProblem in getting strings with space. Pin
Anu_Bala24-Jan-06 16:49
Anu_Bala24-Jan-06 16:49 
AnswerRe: Problem in getting strings with space. Pin
_AnsHUMAN_ 24-Jan-06 16:57
_AnsHUMAN_ 24-Jan-06 16:57 
Laugh | :laugh: Why don't you use CFile :

CFile file;
if(!file.Open("c:\\log.txt",CFile::modeRead))
{
AfxMessageBox("Unable to Read File");
return;
}
char * str=new char[100];
file.Read((void*)str,100);
delete[] str;

str is the buffer that contains data retrieved from the file .
Does this solve your problem????
Now you can use file.Seek() to get the data from a certain location in the file



Regards
Anshuman
Happy Programming

-- modified at 22:57 Tuesday 24th January, 2006
AnswerRe: Problem in getting strings with space. Pin
Laxman924-Jan-06 17:09
Laxman924-Jan-06 17:09 
GeneralRe: Problem in getting strings with space. Pin
David Crow25-Jan-06 5:17
David Crow25-Jan-06 5:17 
AnswerRe: Problem in getting strings with space. Pin
MANISH RASTOGI24-Jan-06 17:43
MANISH RASTOGI24-Jan-06 17:43 
AnswerRe: Problem in getting strings with space. Pin
toxcct24-Jan-06 21:39
toxcct24-Jan-06 21:39 
AnswerRe: Problem in getting strings with space. Pin
_anil_25-Jan-06 2:13
_anil_25-Jan-06 2:13 
AnswerRe: Problem in getting strings with space. Pin
David Crow25-Jan-06 5:24
David Crow25-Jan-06 5:24 
GeneralRe: Problem in getting strings with space. Pin
cpp_prgmer25-Jan-06 21:38
cpp_prgmer25-Jan-06 21:38 
GeneralRe: Problem in getting strings with space. Pin
David Crow26-Jan-06 2:48
David Crow26-Jan-06 2:48 
Questionhow to make a file use unicode in windows 98?? Pin
ebinaini24-Jan-06 15:19
ebinaini24-Jan-06 15:19 
AnswerRe: how to make a file use unicode in windows 98?? Pin
Prakash Nadar24-Jan-06 18:15
Prakash Nadar24-Jan-06 18:15 
AnswerRe: how to make a file use unicode in windows 98?? Pin
<color>Aljechin 24-Jan-06 19:38
<color>Aljechin 24-Jan-06 19:38 
QuestionRe: how to make a file use unicode in windows 98?? Pin
David Crow25-Jan-06 5:29
David Crow25-Jan-06 5:29 
Questionhow to make a window always stay on the top Pin
the Jimmy24-Jan-06 13:40
the Jimmy24-Jan-06 13:40 
AnswerRe: how to make a window always stay on the top Pin
Axonn Echysttas24-Jan-06 13:43
Axonn Echysttas24-Jan-06 13:43 
GeneralRe: how to make a window always stay on the top Pin
the Jimmy24-Jan-06 16:04
the Jimmy24-Jan-06 16:04 
GeneralRe: how to make a window always stay on the top Pin
Axonn Echysttas24-Jan-06 19:43
Axonn Echysttas24-Jan-06 19:43 
GeneralRe: how to make a window always stay on the top Pin
the Jimmy24-Jan-06 20:53
the Jimmy24-Jan-06 20:53 

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.