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

C / C++ / MFC

 
GeneralRe: Output window of Visual C++ Pin
Carlos Antollini2-Oct-01 9:30
Carlos Antollini2-Oct-01 9:30 
GeneralCreate Dll in VC++ for client that works in Delphi Pin
2-Oct-01 9:13
suss2-Oct-01 9:13 
GeneralRe: Create Dll in VC++ for client that works in Delphi Pin
Chris Losinger2-Oct-01 9:48
professionalChris Losinger2-Oct-01 9:48 
GeneralRe: Create Dll in VC++ for client that works in Delphi Pin
Tim Deveaux2-Oct-01 9:52
Tim Deveaux2-Oct-01 9:52 
GeneralThank you !! Pin
2-Oct-01 11:09
suss2-Oct-01 11:09 
GeneralMultimedia Timer question Pin
RobJones2-Oct-01 8:10
RobJones2-Oct-01 8:10 
GeneralNever Mind Pin
RobJones2-Oct-01 11:03
RobJones2-Oct-01 11:03 
QuestionWhat's wrong with this code? Pin
2-Oct-01 8:05
suss2-Oct-01 8:05 
I just thought this code is correct, but my app crashes. Here it is:

void Log()
{
	FILE *log;
	if((log = fopen("C:\\foo.log","a+t")) == NULL)
		return;

	
         SYSTEMTIME systime;
	GetSystemTime(&systime);

        
         // log time and date in european or at least german format like 1.10.2001 20:00
	char text[128];
	sprintf(text,"%s.%s.%s\t%s:%s",systime.wDay,systime.wMonth,systime.wYear,systime.wHour,systime.wMinute);

         
         // should write "text" into logfile, but crashes at "fwrite" :confused:
	size_t len = strlen(text);
	fwrite(text,sizeof(char),len,log);
	fclose(log);
}


any help is apreciated
AnswerRe: What's wrong with this code? Pin
Chris Losinger2-Oct-01 8:21
professionalChris Losinger2-Oct-01 8:21 
AnswerRe: What's wrong with this code? Pin
Tim Deveaux2-Oct-01 8:52
Tim Deveaux2-Oct-01 8:52 
AnswerRe: What's wrong with this code? Pin
Rashid Thadha2-Oct-01 9:49
Rashid Thadha2-Oct-01 9:49 
GeneralCWinThread Pin
kakuni2-Oct-01 5:44
kakuni2-Oct-01 5:44 
GeneralRe: CWinThread Pin
Michael Dunn2-Oct-01 5:53
sitebuilderMichael Dunn2-Oct-01 5:53 
GeneralRe: CWinThread Pin
kakuni2-Oct-01 11:39
kakuni2-Oct-01 11:39 
GeneralRe: CWinThread Pin
Michael Dunn2-Oct-01 17:46
sitebuilderMichael Dunn2-Oct-01 17:46 
Generalwindow messages in com Pin
Christer2-Oct-01 3:22
Christer2-Oct-01 3:22 
GeneralSTLPort-4.5 Pin
Michael Martin2-Oct-01 2:35
professionalMichael Martin2-Oct-01 2:35 
GeneralRe: STLPort-4.5 Pin
Jim Crafton2-Oct-01 3:13
Jim Crafton2-Oct-01 3:13 
GeneralRe: STLPort-4.5 Pin
Michael Martin2-Oct-01 3:59
professionalMichael Martin2-Oct-01 3:59 
GeneralRe: STLPort-4.5 Pin
CodeGuy2-Oct-01 3:39
CodeGuy2-Oct-01 3:39 
QuestionWhat did I get in the call stack??? Pin
Chaos Lawful2-Oct-01 2:16
Chaos Lawful2-Oct-01 2:16 
GeneralMultiprocessor resources/Realtime Pin
Stan the man2-Oct-01 2:05
Stan the man2-Oct-01 2:05 
GeneralJust a question on WININET Pin
Chaos Lawful2-Oct-01 2:05
Chaos Lawful2-Oct-01 2:05 
GeneralGetting rid of the title bar Pin
Stan the man2-Oct-01 1:58
Stan the man2-Oct-01 1:58 
GeneralRe: Getting rid of the title bar Pin
2-Oct-01 8:21
suss2-Oct-01 8:21 

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.