Solved

Passing of an array from Form1.h to Form2.h

Posted on 2004-08-08
3
173 Views
Last Modified: 2013-11-20
Suppose an array is created in Form1.h. How can it be passed to Form2.h?
0
Comment
Question by:judico
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
amit1978 earned 50 total points
ID: 11751567
you can create the global array which is accessable from form1.h and form2.h

0
 

Author Comment

by:judico
ID: 11751825
I had a similar problem in VB.NET. There I solved it by declaring the arrays in the Module1. So far, the only way VC++ allows me to declare String *data[] = new String*[ 1000 ]; is as local. -- doesn't accept it declared outside  __gc or outside public: System::Void button1_Click or even inside public: System::Void button1_Click but outside try.
0
 

Author Comment

by:judico
ID: 11759603
I giot it ... this can be done through using static members ...
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how do i create updater to My Activex application? 3 94
Named range not carried over 10 65
Doc'in system (example?) BA 7 115
haveThree challenge 22 121
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question