| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|||||||
| Managed C++ and C++/CLI Discuss Managed C++ and .NET-specific questions related to C++. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Create global Array in GUI (Windows Forms)
How do I create a global integer array of size 32 in a Windows Forms application? Thanks!
Last edited by Elite Commando; May 21st, 2009 at 02:03 PM. |
|
#2
|
||||
|
||||
|
Re: Create global Array in GUI (Windows Forms)
What do you mean by global? You should avoid global variables.
You do it just like you do in C++. Code:
int arr[15]; Code:
array<int>^ arr = gcnew array<int>;
__________________
Marius BancilaHome Page | Blog My CodeGuru articles My latest articles: Visual Studio 2010 series: VC++, C++ compiler, MFC Try my VSBuildStatus add-in for Visual Studio 2005, 2008 & 2010 (v1.2.0). I do not offer technical support via PM or e-mail. Please use vbBulletin codes. Please answer my multi-core and concurrency questionnaire. |
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|