Click here to Skip to main content
15,890,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Sending mails in VC++ Pin
Syamlal S Nair1-Jan-07 17:37
Syamlal S Nair1-Jan-07 17:37 
AnswerRe: Sending mails in VC++ Pin
Hamid_RT1-Jan-07 17:22
Hamid_RT1-Jan-07 17:22 
GeneralRe: Sending mails in VC++ Pin
Syamlal S Nair1-Jan-07 17:37
Syamlal S Nair1-Jan-07 17:37 
QuestionHow to display progress bar in the list view control in win32 Pin
amitmistry_petlad 31-Dec-06 23:00
amitmistry_petlad 31-Dec-06 23:00 
AnswerRe: How to display progress bar in the list view control in win32 Pin
Mark Salsbery1-Jan-07 9:28
Mark Salsbery1-Jan-07 9:28 
GeneralRe: How to display progress bar in the list view control in win32 Pin
amitmistry_petlad 1-Jan-07 17:03
amitmistry_petlad 1-Jan-07 17:03 
QuestionPrevent ofstream from making same strings [modified] Pin
dellthinker31-Dec-06 16:50
dellthinker31-Dec-06 16:50 
AnswerRe: Prevent ofstream from making same strings Pin
Gary R. Wheeler1-Jan-07 4:44
Gary R. Wheeler1-Jan-07 4:44 
int main()
{
  char prev_date[9],curr_date[9];
  char prev_time[9],curr_time[9];
  strcpy(prev_date,"");
  strcpy(prev_time,"");
  for (;;) {
    _strdate(curr_date);
    _strtime(curr_time);
    if (strcmp(prev_date,curr_date) ||
        strcmp(prev_time,curr_time)) {
      ofstream file1;
      file1.open("time.txt",ios::app);
      file1 << "[Date]: " << curr_date << endl;
      file1 << "[Time]: " << curr_time << endl;
      file1.close();
      strcpy(prev_date,curr_date);
      strcpy(prev_time,curr_time);
    }
  }
}



Software Zen: delete this;

GeneralRe: Prevent ofstream from making same strings Pin
dellthinker2-Jan-07 9:46
dellthinker2-Jan-07 9:46 
QuestionNavigation Error Pin
Shouvik Das31-Dec-06 16:43
Shouvik Das31-Dec-06 16:43 
JokeNavigation Error Pin
Shouvik Das31-Dec-06 19:21
Shouvik Das31-Dec-06 19:21 
AnswerRe: Navigation Error Pin
Nibu babu thomas31-Dec-06 21:06
Nibu babu thomas31-Dec-06 21:06 
GeneralRe: Navigation Error Pin
Shouvik Das31-Dec-06 23:02
Shouvik Das31-Dec-06 23:02 
GeneralRe: Navigation Error Pin
Nibu babu thomas31-Dec-06 23:04
Nibu babu thomas31-Dec-06 23:04 
GeneralRe: Navigation Error Pin
Shouvik Das31-Dec-06 23:10
Shouvik Das31-Dec-06 23:10 
GeneralRe: Navigation Error Pin
Nibu babu thomas1-Jan-07 18:38
Nibu babu thomas1-Jan-07 18:38 
GeneralRe: Navigation Error Pin
Shouvik Das1-Jan-07 18:52
Shouvik Das1-Jan-07 18:52 
QuestionCompression - RAR Pin
Imtiaz Murtaza31-Dec-06 16:37
Imtiaz Murtaza31-Dec-06 16:37 
QuestionDirectshow question Pin
godspeed12331-Dec-06 9:29
godspeed12331-Dec-06 9:29 
AnswerRe: Directshow question Pin
Mark Salsbery31-Dec-06 10:51
Mark Salsbery31-Dec-06 10:51 
QuestionWill do this generate a memory leak? Pin
Joan M30-Dec-06 23:17
professionalJoan M30-Dec-06 23:17 
AnswerRe: Will do this generate a memory leak? Pin
Gary R. Wheeler31-Dec-06 1:22
Gary R. Wheeler31-Dec-06 1:22 
AnswerRe: Will do this generate a memory leak? Pin
Gary R. Wheeler31-Dec-06 1:25
Gary R. Wheeler31-Dec-06 1:25 
AnswerRe: Will do this generate a memory leak? Pin
toxcct31-Dec-06 2:15
toxcct31-Dec-06 2:15 
AnswerYes, if the caller doesn't delete the pointer. Pin
CPallini31-Dec-06 6:58
mveCPallini31-Dec-06 6:58 

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.