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. some queries i not sure of. (urgent)

some queries i not sure of. (urgent)

Scheduled Pinned Locked Moved C / C++ / MFC
comhelpquestion
2 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.
  • C Offline
    C Offline
    chubbie
    wrote on last edited by
    #1

    when i execute my programe, a dialogue box will appear with the title F32x_FileTransfer. at the Open File row, when i click Browse, another dialogue box will appear with the title Open. in this dialogue, i can select the file that i want to Open. after selecting the file, click the Open button to get the path name. the path name will be taken to the first dialogue box title F32x_FileTransfer.. at the first row, when i click on the Open File button, the file that i selected at dialogue box title Open will be opened.. that is the sequence that i want the program to do.. but somehow i couldnt get things right.. thanks for the attention to this message. your help will be very much appreciated.. not clear about the question ask, you may contact me at confusegirl85@hotmail.com -DarkangeL-

    P 1 Reply Last reply
    0
    • C chubbie

      when i execute my programe, a dialogue box will appear with the title F32x_FileTransfer. at the Open File row, when i click Browse, another dialogue box will appear with the title Open. in this dialogue, i can select the file that i want to Open. after selecting the file, click the Open button to get the path name. the path name will be taken to the first dialogue box title F32x_FileTransfer.. at the first row, when i click on the Open File button, the file that i selected at dialogue box title Open will be opened.. that is the sequence that i want the program to do.. but somehow i couldnt get things right.. thanks for the attention to this message. your help will be very much appreciated.. not clear about the question ask, you may contact me at confusegirl85@hotmail.com -DarkangeL-

      P Offline
      P Offline
      PJ Arends
      wrote on last edited by
      #2

      Your question is not clear so I will make some assumptions here.

      chubbie wrote:

      at the Open File row, when i click Browse, another dialogue box will appear with the title Open. in this dialogue, i can select the file that i want to Open.

      I am assuming you are using the windows "Open File" dialog either through MFC's CFileDialog class or the GetOpenFileName() API.

      chubbie wrote:

      after selecting the file, click the Open button to get the path name. the path name will be taken to the first dialogue box title F32x_FileTransfer.. at the first row, when i click on the Open File button, the file that i selected at dialogue box title Open will be opened..

      You can use CFileDialog's GetPathName() member function to get the full path to the file selected. If you are using the GetOpenFileName() API the the file is in the lpstrFile member of the OPENFILENAME structure


      You may be right I may be crazy -- Billy Joel -- Within you lies the power for good - Use it!

      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