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. Many tabs using one file

Many tabs using one file

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

    It's me again. I'm still fighting with tabs. I have 7 tabs with spins on them, and one Dialog. I use Propertypage, and use the instruction "AddPage" to make the 7 tabs on the dialog. Now I want to store the spin value in a flie when the user click and change the spin value. (or maybe in 7 different file, for one tab own one file belong to itself) Then, I have to communicate with a controller throu RS-232 under modbus portocol. Because I'm slave on modbus, I only can send data out when the controller send out query message. So I planning to store the spin value in files, then waiting untill the query message, then I send the data I stored in the file. I would like to ask how to deal with the file pointer. I use the code: in my base dialog' cpp: FILE *filedlg; filelog = fopen( "file_page1.txt", "r+" ) What code about pointer assignment I suppose to write in tab page1' cpp or h file to complete the rest? I mean page1 doesn't know the exitance of file pointer filedlg. I'm new about pointer and MFC, and would be many appriciate about your help. chauteen

    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