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

C / C++ / MFC

 
AnswerRe: How to avoid from ListCtrl flickering??? Pin
Bert [Otherside82] Derijckere13-Jul-05 3:04
Bert [Otherside82] Derijckere13-Jul-05 3:04 
Questionhow to make the application starts with the system? Pin
zhaopi12-Jul-05 23:13
zhaopi12-Jul-05 23:13 
AnswerRe: how to make the application starts with the system? Pin
Andrew Kirillov12-Jul-05 23:21
Andrew Kirillov12-Jul-05 23:21 
AnswerRe: how to make the application starts with the system? Pin
AntonlioX13-Jul-05 21:16
AntonlioX13-Jul-05 21:16 
Questionicon in task bar??? Pin
wasife12-Jul-05 19:57
wasife12-Jul-05 19:57 
AnswerRe: icon in task bar??? Pin
khan++12-Jul-05 20:15
khan++12-Jul-05 20:15 
AnswerRe: icon in task bar??? Pin
David Crow13-Jul-05 3:00
David Crow13-Jul-05 3:00 
Generaltroubles in making a filecopy program in visual c++ Pin
firebolt7712-Jul-05 19:43
firebolt7712-Jul-05 19:43 
hi all..I'm newbie in visual c++ and I'm trying to make a simple file copy program, but it doesn't work. Here is my source code:
#include<afx.h>
#include<stdio.h>

int main()
{
CFile m_LogFile,m_DataFile;
char* a=NULL;
m_DataFile.Open("E:/data.txt", CFile::modeRead|CFile::shareDenyNone);
try
{
m_LogFile.Open("E:/data1.txt", CFile::modeWrite|CFile::modeRead|CFile::modeCreate|CFile::modeNoTruncate|CFile::shareDenyNone);
m_LogFile.SeekToEnd();
}
catch(CException* e)
{
e->ReportError();
e->Delete();
}
m_DataFile.Read(a,m_DataFile.GetLength);
m_LogFile.Write(a,strlen(a));
return 0;
}

The message error said that the m_DataFile.Read(a,m_DataFile.GetLength); part is wrong, but when I change the 2nd parameter into fixed number(I tried 10 and 100), it generate other error. Can somebody help me?
thx
GeneralRe: troubles in making a filecopy program in visual c++ Pin
Christian Graus12-Jul-05 19:50
protectorChristian Graus12-Jul-05 19:50 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
Aamir Butt12-Jul-05 20:40
Aamir Butt12-Jul-05 20:40 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
Christian Graus13-Jul-05 12:18
protectorChristian Graus13-Jul-05 12:18 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
khan++12-Jul-05 19:58
khan++12-Jul-05 19:58 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
firebolt7712-Jul-05 20:19
firebolt7712-Jul-05 20:19 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
munawar196812-Jul-05 20:53
munawar196812-Jul-05 20:53 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
firebolt7712-Jul-05 22:59
firebolt7712-Jul-05 22:59 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
David Crow13-Jul-05 3:06
David Crow13-Jul-05 3:06 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
David Crow13-Jul-05 3:11
David Crow13-Jul-05 3:11 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
Bob Stanneveld13-Jul-05 4:19
Bob Stanneveld13-Jul-05 4:19 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
David Crow13-Jul-05 5:43
David Crow13-Jul-05 5:43 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
Bob Stanneveld13-Jul-05 20:27
Bob Stanneveld13-Jul-05 20:27 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
Trollslayer12-Jul-05 21:58
mentorTrollslayer12-Jul-05 21:58 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
firebolt7712-Jul-05 23:09
firebolt7712-Jul-05 23:09 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
khan++12-Jul-05 23:11
khan++12-Jul-05 23:11 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
Stlan12-Jul-05 23:26
Stlan12-Jul-05 23:26 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
firebolt7713-Jul-05 3:53
firebolt7713-Jul-05 3: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.