Click here to Skip to main content
16,005,206 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Question About Classes Pin
Nick Parker10-Sep-02 7:42
protectorNick Parker10-Sep-02 7:42 
QuestionCan I include like this #include "C:/1.prv"? Pin
ooosawaddee39-Sep-02 11:54
ooosawaddee39-Sep-02 11:54 
AnswerRe: Can I include like this #include "C:/1.prv"? Pin
Christian Graus9-Sep-02 12:28
protectorChristian Graus9-Sep-02 12:28 
QuestionGetDocument() for CDialog? Pin
Brad Jennings9-Sep-02 11:12
Brad Jennings9-Sep-02 11:12 
AnswerRe: GetDocument() for CDialog? Pin
Joaquín M López Muñoz9-Sep-02 11:25
Joaquín M López Muñoz9-Sep-02 11:25 
Generalmem_fun & stl question Pin
Jurgen9-Sep-02 11:00
Jurgen9-Sep-02 11:00 
GeneralRe: mem_fun & stl question Pin
Joaquín M López Muñoz9-Sep-02 11:07
Joaquín M López Muñoz9-Sep-02 11:07 
QuestionCMonthCalCtrl bug? Pin
Deian9-Sep-02 10:55
Deian9-Sep-02 10:55 
Is there anyone that knows why the following piece of code does not work as it's supposed to?

void CStomGraphDlg::OnSelectMonthcalendar(NMHDR* pNMHDR, LRESULT* pResult)
{
COleDateTime dtSel;

if(m_ctlMonthCalendar.GetCurSel(dtSel)!=0)
{
MessageBox(dtSel.Format("%x"));
// set current selection
GetDlgItem(IDC_STATIC_SEL)->SetWindowText(dtSel.Format(_T("%x")));
}
else
{
MessageBox(_T("Error getting current selection"), _T("Error"), MB_OK|MB_ICONERROR);
}
*pResult = 0;
}

It is supposed to return the date selection in COleDateTime format but the only time it works is after the program has just started, and you select the current date. After changing the selection it crashes and returns invalid date format or something. GetCurSel should return the selection date, right?

Any help appreciated,

Mad | :mad: Confused | :confused: Mad | :mad:

Deian
AnswerRe: CMonthCalCtrl bug? Pin
adamUK9-Sep-02 12:40
adamUK9-Sep-02 12:40 
GeneralRe: CMonthCalCtrl bug? Pin
Deian10-Sep-02 4:19
Deian10-Sep-02 4:19 
GeneralOpening Access 2000 database from CD !!! Pin
Hadi Rezaee9-Sep-02 10:32
Hadi Rezaee9-Sep-02 10:32 
GeneralRe: Opening Access 2000 database from CD !!! Pin
Steen Krogsgaard10-Sep-02 3:10
Steen Krogsgaard10-Sep-02 3:10 
GeneralFile Loading Question Pin
SanShou9-Sep-02 10:35
SanShou9-Sep-02 10:35 
GeneralRe: File Loading Question Pin
Pavel Klocek9-Sep-02 10:57
Pavel Klocek9-Sep-02 10:57 
GeneralRe: File Loading Question Pin
valikac9-Sep-02 16:59
valikac9-Sep-02 16:59 
GeneralMap Container & Sorting :: STL Pin
valikac9-Sep-02 9:52
valikac9-Sep-02 9:52 
GeneralRe: Map Container & Sorting :: STL Pin
Joaquín M López Muñoz9-Sep-02 11:01
Joaquín M López Muñoz9-Sep-02 11:01 
GeneralRe: Map Container & Sorting :: STL Pin
jhwurmbach10-Sep-02 4:04
jhwurmbach10-Sep-02 4:04 
GeneralRe: Map Container & Sorting :: STL Pin
Alexandru Savescu10-Sep-02 4:48
Alexandru Savescu10-Sep-02 4:48 
GeneralRe: Map Container & Sorting :: STL Pin
valikac10-Sep-02 10:19
valikac10-Sep-02 10:19 
QuestionHow to change editbox's background color when it is set to read-only? Pin
Vincent Ye9-Sep-02 9:19
Vincent Ye9-Sep-02 9:19 
AnswerRe: How to change editbox's background color when it is set to read-only? Pin
Carlos Antollini9-Sep-02 9:34
Carlos Antollini9-Sep-02 9:34 
AnswerRe: How to change editbox's background color when it is set to read-only? Pin
adamUK9-Sep-02 9:39
adamUK9-Sep-02 9:39 
GeneralRe: How to change editbox's background color when it is set to read-only? Pin
Vincent Ye9-Sep-02 9:45
Vincent Ye9-Sep-02 9:45 
GeneralRe: How to change editbox's background color when it is set to read-only? Pin
adamUK9-Sep-02 10:04
adamUK9-Sep-02 10:04 

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.