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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Microsoft common dialog control

Microsoft common dialog control

Scheduled Pinned Locked Moved C / C++ / MFC
c++databasetutorial
2 Posts 1 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.
  • V Offline
    V Offline
    vc programmer 0
    wrote on last edited by
    #1

    >> i use microsoft common dialog control. >> i open browser >> and choice file(eg:C:/mydatabase/mydb.mdb) >> save this file path "C:/mydatabase/mydb.mdb" in my.dat(data file). my problems >> my.dat file is create C:/mydatabase/ >> i want to create this data file in my project folder. (eg:C:/myvc++project/mytestvc++) >> how to create my data file in my project folder >> please explain me >> my code is following //mydlg.h CCommonDialog1 m_com; //mydlg.cpp void CMYDLG::OnLoad() { CString file; file.Empty(); m_com.ShowOpen(); file=m_com.GetFileName(); file.TrimRight(); if(file.Right(3)!="mdb") { AfxMessageBox("Please Select a .mdb file"); } else { datafile.m_dataArray.Add(file); datafile.Save_file_path(); //save database file path name eg:C:/mydatabase/mydb.mdb } }

    V 1 Reply Last reply
    0
    • V vc programmer 0

      >> i use microsoft common dialog control. >> i open browser >> and choice file(eg:C:/mydatabase/mydb.mdb) >> save this file path "C:/mydatabase/mydb.mdb" in my.dat(data file). my problems >> my.dat file is create C:/mydatabase/ >> i want to create this data file in my project folder. (eg:C:/myvc++project/mytestvc++) >> how to create my data file in my project folder >> please explain me >> my code is following //mydlg.h CCommonDialog1 m_com; //mydlg.cpp void CMYDLG::OnLoad() { CString file; file.Empty(); m_com.ShowOpen(); file=m_com.GetFileName(); file.TrimRight(); if(file.Right(3)!="mdb") { AfxMessageBox("Please Select a .mdb file"); } else { datafile.m_dataArray.Add(file); datafile.Save_file_path(); //save database file path name eg:C:/mydatabase/mydb.mdb } }

      V Offline
      V Offline
      vc programmer 0
      wrote on last edited by
      #2

      #define DATA_FILE_MY _T("C:/myvc++project/mytestvc++/my.dat") >>>>i change this way >>>>now, okkk.. >>>>but, always this is not okkk. >>>>i think

      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