Click here to Skip to main content
15,896,153 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: help! why the compiler kept modifying my source file? Pin
ewighell17-Oct-05 1:00
ewighell17-Oct-05 1:00 
QuestionHow to find data encoding of received buffer with WSARecv Pin
Member 168985516-Oct-05 19:00
Member 168985516-Oct-05 19:00 
AnswerRe: How to find data encoding of received buffer with WSARecv Pin
ThatsAlok16-Oct-05 21:43
ThatsAlok16-Oct-05 21:43 
Questionunable to get all Messages from Clients using IOCP Pin
Member 168985516-Oct-05 18:58
Member 168985516-Oct-05 18:58 
QuestionC++ Serial Loopback port converting to char, where can I correct this Pin
ianfinlay_tyco16-Oct-05 18:19
ianfinlay_tyco16-Oct-05 18:19 
AnswerRe: C++ Serial Loopback port converting to char, where can I correct this Pin
stewartl17-Oct-05 0:11
stewartl17-Oct-05 0:11 
GeneralRe: C++ Serial Loopback port converting to char, where can I correct this Pin
ianfinlay_tyco18-Oct-05 12:53
ianfinlay_tyco18-Oct-05 12:53 
QuestionI have an error Pin
vhazell16-Oct-05 16:33
vhazell16-Oct-05 16:33 
Hi all !!
I practise VC. When I code my program to create a file.
The first time when I click my button2 (create file) I receive a error "access pathdir to file is denied" but I can create file at the second click. I don't know why ??? Please,I need help !!
This's my code when click button2, I use MFC wizard (use dialogbase)
void CTestDlg::OnButton2()
{
// TODO: Add your control notification handler code here
char filename[100];
GetCurrentDirectory(100,filename);
strcat(filename,"\\RongVang.dat");
CFile f;
if(!f.Open(filename,CFile::modeReadWrite))
f.Open(filename,CFile::modeCreate);
f.SeekToEnd();
char s[100];
strcpy(s,"Test Create file");
f.Write(s,100);

}

-- modified at 22:36 Sunday 16th October, 2005
AnswerRe: I have an error Pin
GflPower16-Oct-05 17:07
GflPower16-Oct-05 17:07 
GeneralRe: I have an error Pin
vhazell16-Oct-05 17:28
vhazell16-Oct-05 17:28 
AnswerRe: I have an error Pin
P-Rex16-Oct-05 21:32
P-Rex16-Oct-05 21:32 
GeneralRe: I have an error Pin
vhazell16-Oct-05 21:44
vhazell16-Oct-05 21:44 
GeneralRe: I have an error Pin
P-Rex16-Oct-05 22:07
P-Rex16-Oct-05 22:07 
GeneralRe: I have an error Pin
David Crow17-Oct-05 2:47
David Crow17-Oct-05 2:47 
Questionretrieve MSN messenger conversations Pin
smargada16-Oct-05 14:33
smargada16-Oct-05 14:33 
AnswerRe: retrieve MSN messenger conversations Pin
ThatsAlok16-Oct-05 19:05
ThatsAlok16-Oct-05 19:05 
QuestionRe: retrieve MSN messenger conversations Pin
David Crow17-Oct-05 8:02
David Crow17-Oct-05 8:02 
AnswerRe: retrieve MSN messenger conversations Pin
ThatsAlok17-Oct-05 18:02
ThatsAlok17-Oct-05 18:02 
Questionservices in xp Pin
Archer28216-Oct-05 13:25
Archer28216-Oct-05 13:25 
AnswerRe: services in xp Pin
GflPower16-Oct-05 17:11
GflPower16-Oct-05 17:11 
GeneralRe: services in xp Pin
Archer28216-Oct-05 17:16
Archer28216-Oct-05 17:16 
GeneralRe: services in xp Pin
l a u r e n16-Oct-05 18:46
l a u r e n16-Oct-05 18:46 
GeneralRe: services in xp Pin
ThatsAlok16-Oct-05 18:57
ThatsAlok16-Oct-05 18:57 
AnswerRe: services in xp Pin
Archer28216-Oct-05 19:36
Archer28216-Oct-05 19:36 
QuestionDrawIconEx & ILD_BLEND50 Pin
ClickHeRe16-Oct-05 11:25
ClickHeRe16-Oct-05 11:25 

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.