CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 1999
    Location
    Winter Park, FL
    Posts
    29

    Use of DDX_FieldDateTimeCtrl gives Undeclared Identifier

    I have a simple RecordView which has several DateTimePicker boxes in it. When I link the DateTimePicker boxes with member variables in my RecordSet, ClassWizard adds the following to the DoDataExchange method in my View:


    DDX_FieldDateTimeCtrl(pDX, IDC_REP_DATE, m_pSet->m_DATE_RPT, m_pSet);
    DDX_FieldDateTimeCtrl(pDX, IDC_SATIS_DATE, m_pSet->m_DATE_PAID, m_pSet);




    When I try to compile/build, it says:
    error C2065: 'DDX_FieldDateTimeCtrl' : undeclared identifier

    What might I be doing wrong?

    John




  2. #2
    Join Date
    Sep 1999
    Location
    Boca Raton, Florida
    Posts
    10

    Re: Use of DDX_FieldDateTimeCtrl gives Undeclared Identifier

    Do you have the latest comctrl.h file? Are you using VC 6.x?

    Jeff

    Principal Software Engineer
    CASI-RUSCO, Inc.

  3. #3
    Join Date
    Aug 1999
    Location
    Winter Park, FL
    Posts
    29

    Re: Use of DDX_FieldDateTimeCtrl gives Undeclared Identifier

    I am using VC++ 6.0 Enterprise with SP3.
    I searched my hard drive and did not find any file called comctrl.h.
    A 'Find in Files' search on my entire hard disk for "FieldDateTimeCtrl" did not find any occurances either.

    John



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured