Click here to Skip to main content
15,888,984 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Passing Data between Forms ??? Pin
led mike19-Feb-08 7:01
led mike19-Feb-08 7:01 
GeneralRe: Passing Data between Forms ??? Pin
azigreci19-Feb-08 11:11
azigreci19-Feb-08 11:11 
GeneralGet back in the Soapbox Kyle! Pin
led mike19-Feb-08 11:33
led mike19-Feb-08 11:33 
QuestionHow do I generate a System::Drawing::Color array? Pin
Manfr3d18-Feb-08 9:11
Manfr3d18-Feb-08 9:11 
GeneralRe: How do I generate a System::Drawing::Color array? Pin
Mark Salsbery18-Feb-08 10:14
Mark Salsbery18-Feb-08 10:14 
GeneralRe: How do I generate a System::Drawing::Color array? Pin
Manfr3d19-Feb-08 0:37
Manfr3d19-Feb-08 0:37 
GeneralRe: How do I generate a System::Drawing::Color array? [modified] Pin
Mark Salsbery19-Feb-08 6:05
Mark Salsbery19-Feb-08 6:05 
GeneralRe: How do I generate a System::Drawing::Color array? Pin
Manfr3d19-Feb-08 7:32
Manfr3d19-Feb-08 7:32 
Hi Mark,

I tried each of your suggestions, which should, as far as I know, do the same and work, but each caused errors:

array<color> ^Color1 = gcnew array<color>[3];
error C2726: 'gcnew' may only be used to create an object with managed type

array<color> ^Color1 = gcnew array<color>{Color::Black, Color::Brown, Color::Red};
error C3145: 'Color1' : global or static variable may not have managed type 'cli::array<type> ^'
with
[
Type=System::Drawing::Color
]
may not declare a global or static variable, or a member of a native type that refers to objects in the gc heap
error C3145: '$S9' : global or static variable may not have managed type 'cli::array<type> ^'
with
[
Type=System::Drawing::Color
]
may not declare a global or static variable, or a member of a native type that refers to objects in the gc heap

array<color> ^Color1 = {Color::Black, Color::Brown, Color::Red};
error C3145: 'Color1' : global or static variable may not have managed type 'cli::array<type> ^'
with
[
Type=System::Drawing::Color
]
may not declare a global or static variable, or a member of a native type that refers to objects in the gc heap

I really don't know why this doesn't work.
GeneralRe: How do I generate a System::Drawing::Color array? Pin
Mark Salsbery19-Feb-08 7:47
Mark Salsbery19-Feb-08 7:47 
GeneralRe: How do I generate a System::Drawing::Color array? Pin
Manfr3d19-Feb-08 8:55
Manfr3d19-Feb-08 8:55 
GeneralRe: How do I generate a System::Drawing::Color array? Pin
Mark Salsbery19-Feb-08 9:17
Mark Salsbery19-Feb-08 9:17 
GeneralRe: How do I generate a System::Drawing::Color array? Pin
Mark Salsbery19-Feb-08 9:25
Mark Salsbery19-Feb-08 9:25 
GeneralRe: How do I generate a System::Drawing::Color array? [modified] Pin
Dave Doknjas18-Feb-08 12:56
Dave Doknjas18-Feb-08 12:56 
GeneralRe: How do I generate a System::Drawing::Color array? Pin
Mark Salsbery18-Feb-08 13:12
Mark Salsbery18-Feb-08 13:12 
GeneralRe: How do I generate a System::Drawing::Color array? Pin
Manfr3d19-Feb-08 0:40
Manfr3d19-Feb-08 0:40 
GeneralRe: How do I generate a System::Drawing::Color array? Pin
Dave Doknjas19-Feb-08 4:31
Dave Doknjas19-Feb-08 4:31 
GeneralCrystal Report Error Message [modified] Pin
mikobi18-Feb-08 4:35
mikobi18-Feb-08 4:35 
GeneralNon document printing with Visual C++ 2005 NET Pin
mikobi14-Feb-08 20:21
mikobi14-Feb-08 20:21 
GeneralRe: Non document printing with Visual C++ 2005 NET Pin
led mike15-Feb-08 4:25
led mike15-Feb-08 4:25 
GeneralRe: Non document printing with Visual C++ 2005 NET Pin
mikobi19-Feb-08 2:01
mikobi19-Feb-08 2:01 
GeneralTo add items programmatically to Combobox Pin
mikobi13-Feb-08 4:50
mikobi13-Feb-08 4:50 
GeneralRe: To add items programmatically to Combobox Pin
led mike13-Feb-08 6:43
led mike13-Feb-08 6:43 
GeneralRe: To add items programmatically to Combobox Pin
mikobi13-Feb-08 18:28
mikobi13-Feb-08 18:28 
GeneralRe: To add items programmatically to Combobox Pin
led mike14-Feb-08 4:28
led mike14-Feb-08 4:28 
GeneralRe: To add items programmatically to Combobox Pin
mikobi13-Feb-08 18:35
mikobi13-Feb-08 18:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.