Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Drag & Drop to another application Pin
Michael P Butler29-Nov-01 22:51
Michael P Butler29-Nov-01 22:51 
GeneralRe: Drag & Drop to another application Pin
Michael Groeger2-Dec-01 21:26
Michael Groeger2-Dec-01 21:26 
GeneralMenu selection in an exploreur-like app Pin
Jerome Conus29-Nov-01 20:12
Jerome Conus29-Nov-01 20:12 
GeneralCComboBox----Right Alligned Property Pin
Ahmad9929-Nov-01 19:48
Ahmad9929-Nov-01 19:48 
GeneralEmail Pin
Ralfy29-Nov-01 18:32
Ralfy29-Nov-01 18:32 
GeneralRe: Email Pin
Bernhard29-Nov-01 19:42
Bernhard29-Nov-01 19:42 
GeneralCreate CTime with myself Day of Week Pin
Eugene Pustovoyt29-Nov-01 18:17
Eugene Pustovoyt29-Nov-01 18:17 
GeneralRe: Create CTime with myself Day of Week Pin
Michael P Butler29-Nov-01 23:13
Michael P Butler29-Nov-01 23:13 
Looking at the CTime constructor

CTime::CTime(const SYSTEMTIME& sysTime, int nDST)
{
	if (sysTime.wYear < 1900)
	{
		time_t time0 = 0L;
		CTime timeT(time0);
		*this = timeT;
	}
	else
	{
		CTime timeT(
			(int)sysTime.wYear, (int)sysTime.wMonth, (int)sysTime.wDay,
			(int)sysTime.wHour, (int)sysTime.wMinute, (int)sysTime.wSecond,
			nDST);
		*this = timeT;
	}
}


The Constructor ignores the DayOfWeek value passed in. You'll have to set it afterwards. I'm puzzled to why you would want to pass your own day of the week. Surely that is determined by the date?

Michael Smile | :)
GeneralRe: Create CTime with myself Day of Week Pin
Eugene Pustovoyt30-Nov-01 0:02
Eugene Pustovoyt30-Nov-01 0:02 
GeneralRe: Create CTime with myself Day of Week Pin
(Steven Hicks)n+130-Nov-01 4:51
(Steven Hicks)n+130-Nov-01 4:51 
QuestionHow to get and display the timecode in audio? Pin
chen29-Nov-01 18:14
chen29-Nov-01 18:14 
GeneralRe: Windows Resizing Pin
Christian Graus29-Nov-01 17:56
protectorChristian Graus29-Nov-01 17:56 
GeneralRe: Windows Resizing Pin
Mark Donkers29-Nov-01 18:01
Mark Donkers29-Nov-01 18:01 
GeneralRe: Windows Resizing Pin
Nish Nishant29-Nov-01 18:03
sitebuilderNish Nishant29-Nov-01 18:03 
GeneralRe: Windows Resizing Pin
Mark Donkers29-Nov-01 18:32
Mark Donkers29-Nov-01 18:32 
GeneralRe: Windows Resizing Pin
Christian Graus29-Nov-01 23:57
protectorChristian Graus29-Nov-01 23:57 
QuestionCAsyncSocket - Does OnReceive() get called multiple times? Pin
foobat29-Nov-01 16:44
foobat29-Nov-01 16:44 
AnswerRe: CAsyncSocket - Does OnReceive() get called multiple times? Pin
Masaaki Onishi29-Nov-01 17:50
Masaaki Onishi29-Nov-01 17:50 
GeneralSystem Tray Icon Problem Pin
Steve L.29-Nov-01 15:57
Steve L.29-Nov-01 15:57 
GeneralHelp :) Pin
RobJones29-Nov-01 15:23
RobJones29-Nov-01 15:23 
GeneralRe: Help :) Pin
Rick York29-Nov-01 15:47
mveRick York29-Nov-01 15:47 
GeneralRe: Help :) Pin
RobJones29-Nov-01 15:56
RobJones29-Nov-01 15:56 
GeneralRe: Help :) Pin
Nish Nishant29-Nov-01 16:10
sitebuilderNish Nishant29-Nov-01 16:10 
General[pure C] how to know if a FILE* is opened Pin
Stephane Routelous29-Nov-01 14:20
Stephane Routelous29-Nov-01 14:20 
GeneralRe: [pure C] how to know if a FILE* is opened Pin
Jon Sagara29-Nov-01 14:27
Jon Sagara29-Nov-01 14:27 

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.