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. Modeless Dialog

Modeless Dialog

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

    Hi, My application interacts with the device through RS232 Data sent/Received over the port should be displayed while still programming is communicating with the device. For this I created one modeless dialog class with edit member variable Now Consider one packet tobe sent, contents of this packet should be assigned to the dialog class member variable and it should be updated but when I tried todo so my application is crashing. But if I do with Modal Dialog it is working fine. can anyone please explain me Thanks in advance Uday

    I 1 Reply Last reply
    0
    • U udayGovekar

      Hi, My application interacts with the device through RS232 Data sent/Received over the port should be displayed while still programming is communicating with the device. For this I created one modeless dialog class with edit member variable Now Consider one packet tobe sent, contents of this packet should be assigned to the dialog class member variable and it should be updated but when I tried todo so my application is crashing. But if I do with Modal Dialog it is working fine. can anyone please explain me Thanks in advance Uday

      I Offline
      I Offline
      includeh10
      wrote on last edited by
      #2

      too many about communication. does ur app crash from comm or modeless dialog box? normally, modeless must be global or class member, can not be local as modal one because it returns at once then local modeless dialog box is destoyed. hope hit ur point :confused: includeh10

      U 1 Reply Last reply
      0
      • I includeh10

        too many about communication. does ur app crash from comm or modeless dialog box? normally, modeless must be global or class member, can not be local as modal one because it returns at once then local modeless dialog box is destoyed. hope hit ur point :confused: includeh10

        U Offline
        U Offline
        udayGovekar
        wrote on last edited by
        #3

        It is crashing at modeless, further I have not created this as local. When communication is happening I wnat to show the data sent/received for which I am using the modeless. If I assign the packet(CString type) to my edit variable(CString type of modeless dialog class), it is getting crashed.When I tried to assign it to the local variable it is not crashing

        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