Click here to Skip to main content
15,919,931 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to create assembly file Pin
Ritu Kwatra16-Oct-05 21:04
Ritu Kwatra16-Oct-05 21:04 
AnswerRe: How to create assembly file Pin
ThatsAlok16-Oct-05 21:45
ThatsAlok16-Oct-05 21:45 
AnswerRe: How to create assembly file Pin
Rage16-Oct-05 23:36
professionalRage16-Oct-05 23:36 
QuestionHow to create assembly file Pin
Ritu Kwatra16-Oct-05 21:04
Ritu Kwatra16-Oct-05 21:04 
QuestionChecking Windows Version in installation Pin
Anonymous16-Oct-05 20:38
Anonymous16-Oct-05 20:38 
QuestionLine Profiling Pin
ashwath200516-Oct-05 20:31
ashwath200516-Oct-05 20:31 
QuestionInstallation for VC++ project Pin
Anonymous16-Oct-05 20:28
Anonymous16-Oct-05 20:28 
Questionhelp! why the compiler kept modifying my source file? Pin
ewighell16-Oct-05 19:29
ewighell16-Oct-05 19:29 
AnswerRe: help! why the compiler kept modifying my source file? Pin
Rage16-Oct-05 23:39
professionalRage16-Oct-05 23:39 
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 

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.