Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Memory leak in CListCtrl::InsertColumn() and CListCtrl::DeleteColumn(). Can anybody explain why this is happning? Pin
Abhijit_Satpute17-May-11 4:59
Abhijit_Satpute17-May-11 4:59 
GeneralRe: Memory leak in CListCtrl::InsertColumn() and CListCtrl::DeleteColumn(). Can anybody explain why this is happning? Pin
David Crow17-May-11 5:03
David Crow17-May-11 5:03 
GeneralRe: Memory leak in CListCtrl::InsertColumn() and CListCtrl::DeleteColumn(). Can anybody explain why this is happning? Pin
Abhijit_Satpute17-May-11 5:25
Abhijit_Satpute17-May-11 5:25 
QuestionRe: Memory leak in CListCtrl::InsertColumn() and CListCtrl::DeleteColumn(). Can anybody explain why this is happning? Pin
David Crow17-May-11 5:51
David Crow17-May-11 5:51 
AnswerRe: Memory leak in CListCtrl::InsertColumn() and CListCtrl::DeleteColumn(). Can anybody explain why this is happning? Pin
Abhijit_Satpute17-May-11 19:58
Abhijit_Satpute17-May-11 19:58 
QuestionStart application at specific time Pin
Pranit Kothari15-May-11 22:00
Pranit Kothari15-May-11 22:00 
AnswerRe: Start application at specific time Pin
Richard MacCutchan15-May-11 22:09
mveRichard MacCutchan15-May-11 22:09 
GeneralRe: Start application at specific time Pin
Pranit Kothari16-May-11 0:30
Pranit Kothari16-May-11 0:30 
I have tried to use various examples finding Windows Scheduler with VC++. But almost every application give one or other COM exception. Can I have a link or example which shows use of windows scheduler with VC++/MFC.

Here are some links I have tried,

http://msdn.microsoft.com/en-us/library/aa381915(v=vs.85).aspx[^]

http://msdn.microsoft.com/en-us/library/aa446855(v=vs.85).aspx[^]

In second example I am getting exception in
ITask *pITask;
  LPCWSTR lpcwszTaskName;
  lpcwszTaskName = L"Test App";
  hr = pITS->Activate(lpcwszTaskName,
                      IID_ITask,
                      (IUnknown**) &pITask);
  
  pITS->Release();
  if (FAILED(hr))
  {
     wprintf(L"Failed calling ITaskScheduler::Activate; error = 0x%x\n",hr);
     CoUninitialize();
     return 1;
}

GeneralRe: Start application at specific time Pin
Richard MacCutchan16-May-11 1:08
mveRichard MacCutchan16-May-11 1:08 
GeneralRe: Start application at specific time Pin
Pranit Kothari16-May-11 1:12
Pranit Kothari16-May-11 1:12 
GeneralRe: Start application at specific time Pin
ShilpiP16-May-11 1:46
ShilpiP16-May-11 1:46 
GeneralRe: Start application at specific time Pin
Pranit Kothari16-May-11 2:02
Pranit Kothari16-May-11 2:02 
GeneralRe: Start application at specific time Pin
ShilpiP16-May-11 2:11
ShilpiP16-May-11 2:11 
GeneralRe: Start application at specific time Pin
Pranit Kothari16-May-11 2:34
Pranit Kothari16-May-11 2:34 
GeneralRe: Start application at specific time Pin
ShilpiP16-May-11 2:55
ShilpiP16-May-11 2:55 
AnswerRe: Start application at specific time Pin
Rhuros15-May-11 22:46
professionalRhuros15-May-11 22:46 
QuestionStatic class members Pin
csrss15-May-11 5:37
csrss15-May-11 5:37 
AnswerRe: Static class members Pin
Luc Pattyn15-May-11 5:46
sitebuilderLuc Pattyn15-May-11 5:46 
GeneralRe: Static class members Pin
csrss15-May-11 6:02
csrss15-May-11 6:02 
AnswerRe: Static class members Pin
Richard MacCutchan15-May-11 7:13
mveRichard MacCutchan15-May-11 7:13 
GeneralRe: Static class members Pin
csrss16-May-11 5:43
csrss16-May-11 5:43 
AnswerRe: Static class members Pin
Niklas L16-May-11 0:42
Niklas L16-May-11 0:42 
GeneralRe: Static class members Pin
csrss16-May-11 5:46
csrss16-May-11 5:46 
GeneralRe: Static class members Pin
Stefan_Lang17-May-11 0:48
Stefan_Lang17-May-11 0:48 
GeneralRe: Static class members Pin
csrss17-May-11 5:38
csrss17-May-11 5:38 

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.