Click here to Skip to main content
14,739,281 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CDialog Update Pin
Neville Franks27-Jan-05 10:35
MemberNeville Franks27-Jan-05 10:35 
GeneralRe: CDialog Update Pin
Anonymous27-Jan-05 11:13
MemberAnonymous27-Jan-05 11:13 
GeneralRe: CDialog Update Pin
Neville Franks27-Jan-05 11:30
MemberNeville Franks27-Jan-05 11:30 
GeneralRe: CDialog Update Pin
David Crow27-Jan-05 10:37
MemberDavid Crow27-Jan-05 10:37 
GeneralRe: CDialog Update Pin
Anonymous27-Jan-05 11:21
MemberAnonymous27-Jan-05 11:21 
GeneralGetSystemTime(LPSYSTEMTIME st) Pin
Jnewg527-Jan-05 7:31
MemberJnewg527-Jan-05 7:31 
GeneralRe: GetSystemTime(LPSYSTEMTIME st) Pin
Neville Franks27-Jan-05 10:46
MemberNeville Franks27-Jan-05 10:46 
GeneralRe: GetSystemTime(LPSYSTEMTIME st) Pin
rwestgraham30-Jan-05 0:14
Memberrwestgraham30-Jan-05 0:14 
Are you passing the SYSTEMTIME structure in correctly?

The structure has to be an [out] parameter. So you need to call the API with the pointer to the structure.


This will NOT work:

////////////////////////////////////////
//Declare a SYSTEMTIME structure
SYSTEMTIME stSystemTime;

//Call GetSystemTime
GetSystemTime(stSystemTime);

////////////////////////////////////////




Instead you should call something like this:

////////////////////////////////////////
//Declare a SYSTEMTIME structure
SYSTEMTIME stSystemTime;

//Call GetSystemTime

GetSystemTime(&stSystemTime);

////////////////////////////////////////

Good Luck,

Robert
GeneralNetAPI32 Pin
Richard Hudson27-Jan-05 7:04
MemberRichard Hudson27-Jan-05 7:04 
GeneralRe: NetAPI32 Pin
David Crow27-Jan-05 11:49
MemberDavid Crow27-Jan-05 11:49 
QuestionCan someone explain this please Pin
Tom Wright27-Jan-05 6:22
MemberTom Wright27-Jan-05 6:22 
AnswerRe: Can someone explain this please Pin
David Crow27-Jan-05 6:25
MemberDavid Crow27-Jan-05 6:25 
GeneralRe: Can someone explain this please Pin
Tom Wright27-Jan-05 6:34
MemberTom Wright27-Jan-05 6:34 
GeneralRe: Can someone explain this please Pin
Chris Losinger27-Jan-05 6:38
professionalChris Losinger27-Jan-05 6:38 
GeneralRe: Can someone explain this please Pin
Tom Wright27-Jan-05 6:44
MemberTom Wright27-Jan-05 6:44 
GeneralRe: Can someone explain this please Pin
Chris Losinger27-Jan-05 6:51
professionalChris Losinger27-Jan-05 6:51 
GeneralRe: Can someone explain this please Pin
Tom Wright27-Jan-05 11:48
MemberTom Wright27-Jan-05 11:48 
GeneralRe: Can someone explain this please Pin
Chris Losinger27-Jan-05 11:55
professionalChris Losinger27-Jan-05 11:55 
GeneralRe: Can someone explain this please Pin
Tom Wright27-Jan-05 12:09
MemberTom Wright27-Jan-05 12:09 
GeneralRe: Can someone explain this please Pin
Chris Losinger27-Jan-05 13:07
professionalChris Losinger27-Jan-05 13:07 
GeneralRe: Can someone explain this please Pin
David Crow27-Jan-05 6:42
MemberDavid Crow27-Jan-05 6:42 
GeneralRe: Can someone explain this please Pin
Tom Wright27-Jan-05 6:49
MemberTom Wright27-Jan-05 6:49 
GeneralRe: Can someone explain this please Pin
David Crow27-Jan-05 6:53
MemberDavid Crow27-Jan-05 6:53 
GeneralRe: Can someone explain this please Pin
Tom Wright27-Jan-05 11:26
MemberTom Wright27-Jan-05 11:26 
GeneralDocument order Pin
vineas27-Jan-05 5:33
Membervineas27-Jan-05 5:33 

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.