Click here to Skip to main content
15,915,164 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionmapping mode prob? Pin
R. Thomas2-Dec-03 20:40
R. Thomas2-Dec-03 20:40 
QuestionHow do I make wrapper funtion such as "sprintf" without using "va_arg"? Pin
dowa2-Dec-03 19:53
dowa2-Dec-03 19:53 
AnswerRe: How do I make wrapper funtion such as "sprintf" without using "va_arg"? Pin
Anonymous2-Dec-03 21:33
Anonymous2-Dec-03 21:33 
AnswerRe: How do I make wrapper funtion such as "sprintf" without using "va_arg"? Pin
BaldwinMartin2-Dec-03 23:01
BaldwinMartin2-Dec-03 23:01 
AnswerRe: How do I make wrapper funtion such as "sprintf" without using "va_arg"? Pin
David Crow3-Dec-03 3:39
David Crow3-Dec-03 3:39 
AnswerRe: How do I make wrapper funtion such as "sprintf" without using "va_arg"? Pin
Tim Smith3-Dec-03 4:24
Tim Smith3-Dec-03 4:24 
GeneralGetUserName() fails in ATL COM object Pin
bryces2-Dec-03 19:47
bryces2-Dec-03 19:47 
GeneralRe: GetUserName() fails in ATL COM object Pin
Michael P Butler2-Dec-03 20:20
Michael P Butler2-Dec-03 20:20 
bryces wrote:
LPTSTR username;
DWORD cchBuff = 1024;
BOOL result = GetUserName(username, &cchBuff);


Well off the top of my head,

Doesn't GetUserName require the buffer to have the memory allocated for the username string?

I'd double check on MSDN.


Michael

Blue canary in the outlet by the light switch
Who watches over you
Make a little birdhouse in your soul - They Might Be Giants

GeneralRe: GetUserName() fails in ATL COM object Pin
bryces2-Dec-03 21:09
bryces2-Dec-03 21:09 
GeneralRe: GetUserName() fails in ATL COM object Pin
BaldwinMartin2-Dec-03 23:21
BaldwinMartin2-Dec-03 23:21 
Generalgripper in top left corner of resiable combo box Pin
Suneet Chandok2-Dec-03 19:08
Suneet Chandok2-Dec-03 19:08 
GeneralDisplay a MessageBox in CDialog::OnActivate() Pin
Chris Ormerod2-Dec-03 18:16
Chris Ormerod2-Dec-03 18:16 
GeneralRe: Display a MessageBox in CDialog::OnActivate() Pin
Chris Ormerod2-Dec-03 18:22
Chris Ormerod2-Dec-03 18:22 
GeneralQuestion regarding inheritance Pin
lsanil2-Dec-03 17:24
lsanil2-Dec-03 17:24 
GeneralRe: Question regarding inheritance Pin
Christian Graus2-Dec-03 17:29
protectorChristian Graus2-Dec-03 17:29 
GeneralRe: Question regarding inheritance Pin
lsanil2-Dec-03 18:57
lsanil2-Dec-03 18:57 
GeneralRe: Question regarding inheritance Pin
lsanil2-Dec-03 19:05
lsanil2-Dec-03 19:05 
QuestionCFormView: adding a CHeaderCtrl? Pin
ckorda2-Dec-03 16:48
ckorda2-Dec-03 16:48 
AnswerRe: CFormView: adding a CHeaderCtrl? Pin
Monty22-Dec-03 19:09
Monty22-Dec-03 19:09 
GeneralRe: CFormView: adding a CHeaderCtrl? Pin
ckorda4-Dec-03 11:43
ckorda4-Dec-03 11:43 
GeneralRe: CFormView: adding a CHeaderCtrl? Pin
Monty25-Dec-03 20:28
Monty25-Dec-03 20:28 
GeneralArrows keys Pin
Gagnon Claude2-Dec-03 16:00
Gagnon Claude2-Dec-03 16:00 
GeneralRe: Arrows keys Pin
Antti Keskinen3-Dec-03 3:07
Antti Keskinen3-Dec-03 3:07 
Generalabout record voice Pin
yingkou2-Dec-03 15:39
yingkou2-Dec-03 15:39 
GeneralRe: about record voice Pin
Peter Molnar3-Dec-03 14:45
Peter Molnar3-Dec-03 14:45 

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.