Solved

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

Posted on 2004-08-08
3
171 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Separate into files by filename 12 83
Whole sheet autoscrub still needed 19 51
string initialization in java 11 113
JQuery serialize and unserialize 8 87
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
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.

803 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