Go to Post Do you think it's important? Is it actually possible for the students to change the lives of the mentors? - Rich Kressly [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 17-09-2006, 12:49
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Visual C++ 2005 Forms

I am using Visual C++ 2005 Express Edition with .NET2 Framework to create an application with multiple forms.

I have one main form which is the MDI (Multiple Document Interface) parent. Then I have multiple other MDI Children forms. I am using the designer to create my forms and then using the code editor to program the functionality that I want. This way I use all header files, no .cpp files.
I am able to access/inherit the other MDI Children forms from the main parent form, using this syntax, static Form1^ form1 = gcnew Form1;. And I also have the #include "Form1.h" defined in the main.h.

The problem occurs when I try to inherit the main form or any of its components form the other forms. For example, I need to inherit seralPort1 form main.h, but I can't. It gives me some basic errors which are related to not including the main.h in the other form, but I did include it.
If I add this under the public ref class Form1...
private: static Main::serialPort1^ serialport = gcnew Main::serialPort1; I get errors like Main is an undecleared identifier... and so on.

I searched the help files and the internet, but I could not find anything helpful. Now I know that C (RC code ) and C++ are quite different, but I don't know what these differences are.

Can you guys help me?

Thanks a lot
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
forms Michael Leicht Inventor 2 06-03-2006 17:24
Release Forms??? jakey General Forum 3 28-02-2006 13:08
Forms Josh Siegel 3D Animation and Competition 1 15-02-2004 13:09
medical forms archiver 1999 1 23-06-2002 22:34
Location of Forms? Nicoleaqueen General Forum 2 06-01-2002 21:10


All times are GMT -5. The time now is 03:17.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi