Click here to Skip to main content
15,884,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Open a URL with extra information (# character) Pin
Stuart Dootson14-Apr-09 23:32
professionalStuart Dootson14-Apr-09 23:32 
GeneralRe: Open a URL with extra information (# character) Pin
lolividalgil15-Apr-09 1:59
lolividalgil15-Apr-09 1:59 
GeneralRe: Open a URL with extra information (# character) Pin
Stuart Dootson15-Apr-09 2:19
professionalStuart Dootson15-Apr-09 2:19 
QuestionGetVolumeInformation not giving any information its return error code 123 Pin
chandrakar ashish14-Apr-09 22:00
chandrakar ashish14-Apr-09 22:00 
AnswerRe: GetVolumeInformation not giving any information its return error code 123 [modified] Pin
_AnsHUMAN_ 14-Apr-09 22:32
_AnsHUMAN_ 14-Apr-09 22:32 
GeneralRe: GetVolumeInformation not giving any information its return error code 123 Pin
chandrakar ashish14-Apr-09 22:48
chandrakar ashish14-Apr-09 22:48 
GeneralRe: GetVolumeInformation not giving any information its return error code 123 Pin
_AnsHUMAN_ 14-Apr-09 23:03
_AnsHUMAN_ 14-Apr-09 23:03 
QuestionRe: GetVolumeInformation not giving any information its return error code 123 Pin
David Crow15-Apr-09 3:30
David Crow15-Apr-09 3:30 
chandrakar ashish wrote:
CHAR szBuf[80];
DWORD dw = GetLastError();

sprintf(szBuf, "failed: GetLastError returned %lu\n",dw);

MessageBox(NULL, szBuf, "Error", MB_OK);


It's not a mistake per se, but since you are using MFC, why not have:

CString szBuf; <br />
DWORD dw = GetLastError(); <br />
<br />
szBuf.Format("failed: GetLastError returned %u\n",dw); <br />
<br />
AfxMessageBox(szBuf);


"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons


AnswerRe: GetVolumeInformation not giving any information its return error code 123 Pin
binyo665-Jun-09 11:46
binyo665-Jun-09 11:46 
QuestionThemes in MFC - pls help Pin
Tomas(cz)14-Apr-09 21:49
Tomas(cz)14-Apr-09 21:49 
QuestionNot able to Debug SetFont in Activex control. Pin
girishog14-Apr-09 21:15
girishog14-Apr-09 21:15 
AnswerRe: Not able to Debug SetFont in Activex control. Pin
KarstenK14-Apr-09 21:33
mveKarstenK14-Apr-09 21:33 
QuestionProblem with Socket Pin
Abhijit D. Babar14-Apr-09 20:51
Abhijit D. Babar14-Apr-09 20:51 
AnswerRe: Problem with Socket Pin
Divyang Mithaiwala14-Apr-09 21:31
Divyang Mithaiwala14-Apr-09 21:31 
AnswerRe: Problem with Socket Pin
KarstenK14-Apr-09 21:36
mveKarstenK14-Apr-09 21:36 
AnswerRe: Problem with Socket Pin
ParagPatel14-Apr-09 21:45
ParagPatel14-Apr-09 21:45 
GeneralRe: Problem with Socket Pin
Abhijit D. Babar14-Apr-09 21:55
Abhijit D. Babar14-Apr-09 21:55 
GeneralRe: Problem with Socket Pin
ThatsAlok14-Apr-09 23:18
ThatsAlok14-Apr-09 23:18 
GeneralRe: Problem with Socket Pin
ParagPatel14-Apr-09 23:22
ParagPatel14-Apr-09 23:22 
GeneralRe: Problem with Socket Pin
Abhijit D. Babar16-Apr-09 19:53
Abhijit D. Babar16-Apr-09 19:53 
GeneralRe: Problem with Socket Pin
ParagPatel25-Apr-09 0:52
ParagPatel25-Apr-09 0:52 
QuestionUrldownloadToFile Pin
p_196014-Apr-09 20:42
p_196014-Apr-09 20:42 
AnswerRe: UrldownloadToFile Pin
Rajesh R Subramanian14-Apr-09 20:47
professionalRajesh R Subramanian14-Apr-09 20:47 
AnswerRe: UrldownloadToFile Pin
Hamid_RT14-Apr-09 20:49
Hamid_RT14-Apr-09 20:49 
AnswerRe: UrldownloadToFile Pin
KarstenK14-Apr-09 21:38
mveKarstenK14-Apr-09 21:38 

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.