Click here to Skip to main content
15,903,201 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reading delimited files... Pin
Roger Scudder27-Oct-00 11:26
Roger Scudder27-Oct-00 11:26 
GeneralRe: Reading delimited files... Pin
Joshua27-Oct-00 11:40
Joshua27-Oct-00 11:40 
GeneralInvisible buttons Pin
David Gallagher26-Oct-00 6:54
David Gallagher26-Oct-00 6:54 
QuestionSetText doesn't work on TextBox? Pin
Member 1176625726-Oct-00 5:38
Member 1176625726-Oct-00 5:38 
AnswerRe: SetText doesn't work on TextBox? Pin
Brendan Tregear26-Oct-00 15:53
Brendan Tregear26-Oct-00 15:53 
Generalcom client crash Pin
P e t e r25-Oct-00 23:23
P e t e r25-Oct-00 23:23 
GeneralUsing MSXML.DLL in Visual C++ 5 Pin
Alexander Bischofberger25-Oct-00 21:48
Alexander Bischofberger25-Oct-00 21:48 
GeneralVERSION resource question Pin
Jonathan Gilligan25-Oct-00 20:09
Jonathan Gilligan25-Oct-00 20:09 
The MSDN documentation says that when you programmatically retrieve the fixed file info from a version resource, it comes in a VS_FIXEDFILEINFO structure, which contains a 64-bit date stamp for the file:

dwFileDateMS
Specifies the most significant 32 bits of the file's 64-bit binary creation date and time stamp.
dwFileDateLS
Specifies the least significant 32 bits of the file's 64-bit binary creation date and time stamp.


However, if I retrieve this resource from an MFC project using code like this:
bRetCode = VerQueryValue(pVffInfo,
    _T("\\"),
    reinterpret_cast<LPVOID *>(&lpVersion),
    &uVersionLen);

if (bRetCode && uVersionLen && lpVersion) {
    VS_FIXEDFILEINFO * pFFVer =
        reinterpret_cast<VS_FIXEDFILEINFO *>(lpVersion);
    FILETIME ftime;
    ftime.dwHighDateTime = pFFVer->dwFileDateMS;
    ftime.dwLowDateTime = pFFVer->dwFileDateLS;
    }

then both ftime.dwHighDateTime and ftime.dwLowDateTime are zero.

Does anyone know anything about what the deal is here? Is there some way I can set the date/time stamp when I build my code and then retrieve it at run-time for the About Box?

Otherwise I could use the __DATE__ and __TIME__ macros in my code, but that would only tell me when a particular module was compiled. I was hoping that there was a good way to get the approximate time the build finished.
GeneralRe: VERSION resource question Pin
Mike Eriksson27-Oct-00 1:56
Mike Eriksson27-Oct-00 1:56 
GeneralRe: VERSION resource question Pin
Jonathan Gilligan27-Oct-00 17:11
Jonathan Gilligan27-Oct-00 17:11 
QuestionHow to make toolbar in the scrollbar? Pin
1mao25-Oct-00 14:21
suss1mao25-Oct-00 14:21 
GeneralDCOM Server Pin
Roger25-Oct-00 9:42
Roger25-Oct-00 9:42 
GeneralRe: DCOM Server Pin
Roger26-Oct-00 1:33
Roger26-Oct-00 1:33 
GeneralRe: DCOM Server Pin
Roger31-Oct-00 2:00
Roger31-Oct-00 2:00 
GeneralRe: DCOM Server Pin
Roger31-Oct-00 2:01
Roger31-Oct-00 2:01 
QuestionHow can I enable/disable CEdit control context menu items? Pin
Byron Thomas Cullen25-Oct-00 9:27
Byron Thomas Cullen25-Oct-00 9:27 
AnswerRe: How can I enable/disable CEdit control context menu items? Pin
Erik Funkenbusch25-Oct-00 11:06
Erik Funkenbusch25-Oct-00 11:06 
GeneralRe: How can I enable/disable CEdit control context menu items? Pin
Byron Thomas Cullen26-Oct-00 7:57
Byron Thomas Cullen26-Oct-00 7:57 
GeneralRe: How can I enable/disable CEdit control context menu items? Pin
Andrew Truckle26-Jan-22 21:38
professionalAndrew Truckle26-Jan-22 21:38 
Questionhow to disable focus on button when using arrows key Pin
eucalyptus25-Oct-00 6:03
eucalyptus25-Oct-00 6:03 
AnswerRe: how to disable focus on button when using arrows key Pin
Erik Funkenbusch25-Oct-00 9:25
Erik Funkenbusch25-Oct-00 9:25 
GeneralRe: how to disable focus on button when using arrows key Pin
eucalyptus25-Oct-00 21:49
eucalyptus25-Oct-00 21:49 
GeneralRe: how to disable focus on button when using arrows key Pin
Erik Funkenbusch26-Oct-00 11:32
Erik Funkenbusch26-Oct-00 11:32 
GeneralChange task bar menu "Start->Shut down ..." Pin
Mouez25-Oct-00 4:23
Mouez25-Oct-00 4:23 
GeneralRe: Change task bar menu Pin
Erik Funkenbusch25-Oct-00 9:26
Erik Funkenbusch25-Oct-00 9:26 

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.