pointers to windows forms

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Sep 2006
Posts: 12
Reputation: Lutzee is an unknown quantity at this point 
Solved Threads: 0
Lutzee Lutzee is offline Offline
Newbie Poster

pointers to windows forms

 
0
  #1
Feb 2nd, 2007
Hi, it's me again lol...

Ok i havea windows forms application. I have several classes with pointers to other classes eg:
  1. class1
  2. {
  3.  
  4. public:
  5. function(void);
  6. class2* c2;
  7. };
  8.  
  9.  
  10.  
  11. class1::function
  12. {
  13.  
  14.  
  15. c2->variable = 3;
  16.  
  17. return 0;
  18. }
I think form1 is an object, maybe this is cos i'm a newbie...
I can declare a pointer to the form1 class but when i try to access a data member intellisense says " -> or . is used incorrectly" and it says expecting class union structure..blah blah. I need to be able to access the variables and functions in form1.h from this class can anyone help me?

Thanks
Last edited by WaltP; Feb 3rd, 2007 at 1:28 am. Reason: Added code tags for the third time -- read the infomation on the text box where you enter your question!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 1373 | Replies: 0
Thread Tools Search this Thread



Tag cloud for C
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC