| | |
pointers to windows forms
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Sep 2006
Posts: 12
Reputation:
Solved Threads: 0
Hi, it's me again lol...
Ok i havea windows forms application. I have several classes with pointers to other classes eg:
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
Ok i havea windows forms application. I have several classes with pointers to other classes eg:
c Syntax (Toggle Plain Text)
class1 { public: function(void); class2* c2; }; class1::function { c2->variable = 3; return 0; }
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!
![]() |
Similar Threads
- About Windows Forms C# .net 2003 (C#)
- Arranging Windows Forms (C#)
- Windows Forms Question (C#)
- Forms authorization, only want a few links (ASP.NET)
- Using Windows XP Visual Styles with Controls on Windows Forms (VB.NET)
- C# : Client windows in client windows (C#)
- Error message when passing property changes between forms (VB.NET)
- Displaying pictures on Windows Forms using subprocedures in VB.NET (VB.NET)
- Controlling windows scroll (VB.NET)
Other Threads in the C Forum
- Previous Thread: Flapjacks input Problem
- Next Thread: 15 puzzle problem
Views: 1373 | Replies: 0
| Thread Tools | Search this Thread |
Tag cloud for C
adobe ansi api array arrays bash binarysearch centimeter char convert copyanyfile copypdffile cprogramme createcopyoffile createprocess() csyntax directory drawing dynamic executable fflush file floatingpointvalidation fork frequency getlasterror getlogicaldrivestrin givemetehcodez global graphics gtkgcurlcompiling hardware highest homework i/o ide inches infiniteloop initialization interest kilometer lazy linked linkedlist linux linuxsegmentationfault list logical_drives match matrix meter microsoft motherboard multi mysql open opendocumentformat openwebfoundation pattern pause pdf pointer pointers posix power problem program programming pyramidusingturboccodes read recursion recv repetition scanf scheduling segmentationfault send shape single socketprograming socketprogramming spoonfeeding stack standard strchr string strings structures student suggestions system test testautomation unix urboc user voidmain() win32 win32api windows.h





