Solved

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

Posted on 2004-08-08
3
169 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
Comment Utility
you can create the global array which is accessable from form1.h and form2.h

0
 

Author Comment

by:judico
Comment Utility
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
Comment Utility
I giot it ... this can be done through using static members ...
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now