Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CDateTimeCtrl

CDateTimeCtrl

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Djibril
    wrote on last edited by
    #1

    Hi, I added a CDateTimeCtrl on my dialog. Then I added a CTime member variable like this: in MyDialog.h : CTime m_dateWarranty; in MyDialog.cpp : DDX_DateTimeCtrl(pDX, IDC_DATETIMEPICKER_WARR, m_dateWarranty); Link gives the following error: error LNK2001: unresolved external symbol "void __stdcall DDX_DateTimeCtrl(class CDataExchange *,int,class CTime &)" (?DDX_DateTimeCtrl@@YGXPAVCDataExchange@@HAAVCTime@@@Z) Thanks, Where there is a WISH, there is a WILL.

    J 1 Reply Last reply
    0
    • D Djibril

      Hi, I added a CDateTimeCtrl on my dialog. Then I added a CTime member variable like this: in MyDialog.h : CTime m_dateWarranty; in MyDialog.cpp : DDX_DateTimeCtrl(pDX, IDC_DATETIMEPICKER_WARR, m_dateWarranty); Link gives the following error: error LNK2001: unresolved external symbol "void __stdcall DDX_DateTimeCtrl(class CDataExchange *,int,class CTime &)" (?DDX_DateTimeCtrl@@YGXPAVCDataExchange@@HAAVCTime@@@Z) Thanks, Where there is a WISH, there is a WILL.

      J Offline
      J Offline
      Joaquin M Lopez Munoz
      wrote on last edited by
      #2

      Try #includeing <afxdtctl.h>. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

      D 1 Reply Last reply
      0
      • J Joaquin M Lopez Munoz

        Try #includeing <afxdtctl.h>. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

        D Offline
        D Offline
        Djibril
        wrote on last edited by
        #3

        This solved my problem! Thank you so much. Where there is a WISH, there is a WILL.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups