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. Managed C++/CLI
  4. Problem with Dialogs....

Problem with Dialogs....

Scheduled Pinned Locked Moved Managed C++/CLI
helpquestiontutorial
3 Posts 3 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
    dSolariuM
    wrote on last edited by
    #1

    Hi ... I have asked this question but nobody answered ... I want to call a function in the parent class of a dialog... How to do that? p.s When I include parent header file in the child and child header file in header I get this error: /////// Form1 #include "Form2.h" Form2 ^f=gcnew Form2; f->ShowDialog(); /////////Form2 #include "Form1.h" Error: syntax error : identifier 'Form2' error C2065: 'f' : undeclared identifier error C2065: 'Form2' : undeclared identifier error C2227: left of '->ShowDialog' must point to class/struct/union/generic type

    Every new thing you learn,Gives you a new personality.

    M 1 Reply Last reply
    0
    • D dSolariuM

      Hi ... I have asked this question but nobody answered ... I want to call a function in the parent class of a dialog... How to do that? p.s When I include parent header file in the child and child header file in header I get this error: /////// Form1 #include "Form2.h" Form2 ^f=gcnew Form2; f->ShowDialog(); /////////Form2 #include "Form1.h" Error: syntax error : identifier 'Form2' error C2065: 'f' : undeclared identifier error C2065: 'Form2' : undeclared identifier error C2227: left of '->ShowDialog' must point to class/struct/union/generic type

      Every new thing you learn,Gives you a new personality.

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      Is the Form2 class in a different namespace than the code throwing the errors? Mark

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      L 1 Reply Last reply
      0
      • M Mark Salsbery

        Is the Form2 class in a different namespace than the code throwing the errors? Mark

        Mark Salsbery Microsoft MVP - Visual C++ :java:

        L Offline
        L Offline
        led mike
        wrote on last edited by
        #3

        http://www.codeproject.com/script/Forums/View.aspx?fid=1650&msg=2500937[^]

        led mike

        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