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

C / C++ / MFC

 
GeneralRe: CString Find Pin
Preethi_12323-Jul-08 3:21
Preethi_12323-Jul-08 3:21 
QuestionCreating dynamic CStatic control without Dialog in VC++ Pin
Member 437038523-Jul-08 3:04
Member 437038523-Jul-08 3:04 
AnswerRe: Creating dynamic CStatic control without Dialog in VC++ Pin
Cedric Moonen23-Jul-08 3:26
Cedric Moonen23-Jul-08 3:26 
QuestionRe: Creating dynamic CStatic control without Dialog in VC++ Pin
David Crow23-Jul-08 3:29
David Crow23-Jul-08 3:29 
AnswerRe: Creating dynamic CStatic control without Dialog in VC++ Pin
CPallini23-Jul-08 7:00
mveCPallini23-Jul-08 7:00 
Questionxml reading using vc++ Pin
V K 223-Jul-08 2:54
V K 223-Jul-08 2:54 
AnswerRe: xml reading using vc++ Pin
CPallini23-Jul-08 7:11
mveCPallini23-Jul-08 7:11 
QuestionProblem with DateTime picker control. Pin
Sanjay K23-Jul-08 2:45
Sanjay K23-Jul-08 2:45 
Hi All,

I am trying to use the Date Time picker with the CDateTimeCtrl but seem to be having some difficulties.

I have added a Date Time Picker to my dialog box, used the microsoft ClassWizard to add a CDateTimeCtrl for the Date Time Picker but nothing seems to work correctly.

I have copied the code below.

I am getting the correct time information in 'Release' mode, but the same is crashing (Debug assertion failure)
in 'Debug' mode.

Pls tell me how to make this code works in 'Debug' mode ???

CDateTimeCtrl m_StartTimeCtrl;

BOOL CLicenseGeneratorDlg::OnInitDialog()
{
CDialog::OnInitDialog();

CTime time = CTime::GetCurrentTime();

m_StartTimeCtrl.SetTime(&time);
}

void CLicenseGeneratorDlg::OnOK()
{
UpdateData(true);

CTime time1;

if (GDT_VALID == m_StartTimeCtrl.GetTime(time1))
{
CString strDate = time1.Format("%d.%m.%Y");

MessageBox(strDate);
}
}

Regards,
Sanjeeva K Kanakam.
AnswerRe: Problem with DateTime picker control. Pin
Cedric Moonen23-Jul-08 3:25
Cedric Moonen23-Jul-08 3:25 
GeneralRe: Problem with DateTime picker control. Pin
Sanjay K23-Jul-08 17:55
Sanjay K23-Jul-08 17:55 
QuestionRe: Problem with DateTime picker control. Pin
David Crow23-Jul-08 3:31
David Crow23-Jul-08 3:31 
Questionfatal error C1093: API call 'ImportFile' failed '0x80070003' : ErrorMessage: The system cannot find the path specified. Pin
Le@rner23-Jul-08 2:14
Le@rner23-Jul-08 2:14 
AnswerRe: fatal error C1093: API call 'ImportFile' failed '0x80070003' : ErrorMessage: The system cannot find the path specified. Pin
David Crow23-Jul-08 3:34
David Crow23-Jul-08 3:34 
GeneralRe: fatal error C1093: API call 'ImportFile' failed '0x80070003' : ErrorMessage: The system cannot find the path specified. Pin
WEEDFIN18-Feb-10 7:47
WEEDFIN18-Feb-10 7:47 
QuestionMPI Program Error Pin
Member 393641122-Jul-08 23:46
Member 393641122-Jul-08 23:46 
QuestionMDI file association problem (about ddeexec) [Solved] [modified] Pin
followait22-Jul-08 22:38
followait22-Jul-08 22:38 
QuestionSystem(pause) Pin
T.RATHA KRISHNAN22-Jul-08 22:21
T.RATHA KRISHNAN22-Jul-08 22:21 
AnswerRe: System(pause) Pin
Cedric Moonen22-Jul-08 22:27
Cedric Moonen22-Jul-08 22:27 
QuestionRe: System(pause) Pin
T.RATHA KRISHNAN22-Jul-08 22:42
T.RATHA KRISHNAN22-Jul-08 22:42 
QuestionRe: System(pause) Pin
CPallini22-Jul-08 22:58
mveCPallini22-Jul-08 22:58 
AnswerRe: System(pause) Pin
Rajesh R Subramanian1-Aug-08 20:41
professionalRajesh R Subramanian1-Aug-08 20:41 
QuestionRe: System(pause) Pin
David Crow23-Jul-08 3:35
David Crow23-Jul-08 3:35 
AnswerRe: System(pause) Pin
Cedric Moonen23-Jul-08 4:24
Cedric Moonen23-Jul-08 4:24 
GeneralRe: System(pause) Pin
David Crow23-Jul-08 4:57
David Crow23-Jul-08 4:57 
QuestionRe: System(pause) Pin
Rajesh R Subramanian22-Jul-08 23:23
professionalRajesh R Subramanian22-Jul-08 23:23 

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.