home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / misc / 4221 < prev    next >
Encoding:
Text File  |  1992-12-14  |  824 b   |  30 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!spool.mu.edu!umn.edu!lynx!nmsu.edu!usenet
  3. From: jsalcido@nmsu.edu   (Jason Salcido)
  4. Subject: need help please!
  5. Message-ID: <1992Dec14.234649.21893@nmsu.edu>
  6. Sender: usenet@nmsu.edu
  7. Organization: New Mexico State University
  8. Date: Mon, 14 Dec 1992 23:46:49 GMT
  9. Lines: 19
  10.  
  11.  
  12. I need help understanding how to instantiate a window class from within another  
  13. window class method.   When I try I know that constructor is run but nothing  
  14. happens.  If I stick the command in the constructor of the first window class  
  15. it does work.  Can someone tell me what I'm doing wrong?
  16.  
  17. for example:
  18.  
  19. (in window class)
  20. private:
  21.    AnotherWindow *A;
  22.  
  23. (in window method)
  24.  
  25. A = new AnotherWindow(this,"Another Window");
  26.  
  27. please e-mail me with any suggestions.
  28.  
  29. jsalcido@nmsu.edu
  30.