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

Managed C++/CLI

 
GeneralRe: Forward Declaration and no appropriate default constructor Pin
Luc Pattyn20-Aug-07 14:53
sitebuilderLuc Pattyn20-Aug-07 14:53 
GeneralRe: Forward Declaration and no appropriate default constructor Pin
George L. Jackson21-Aug-07 0:21
George L. Jackson21-Aug-07 0:21 
GeneralRe: Forward Declaration and no appropriate default constructor Pin
iddqd51521-Aug-07 3:46
iddqd51521-Aug-07 3:46 
GeneralRe: Forward Declaration and no appropriate default constructor [modified] Pin
George L. Jackson21-Aug-07 4:52
George L. Jackson21-Aug-07 4:52 
GeneralRe: Forward Declaration and no appropriate default constructor Pin
iddqd51521-Aug-07 5:03
iddqd51521-Aug-07 5:03 
GeneralRe: Forward Declaration and no appropriate default constructor Pin
George L. Jackson21-Aug-07 5:06
George L. Jackson21-Aug-07 5:06 
GeneralRe: Forward Declaration and no appropriate default constructor Pin
iddqd51521-Aug-07 5:45
iddqd51521-Aug-07 5:45 
GeneralRe: Forward Declaration and no appropriate default constructor Pin
George L. Jackson21-Aug-07 5:53
George L. Jackson21-Aug-07 5:53 
Yes I do. I will try to post it as soon as I get time! Also, the problem you refering to is something like the following where I have to use a safe_cast to get it to work:

using namespace System;
using namespace System::Collections::Generic;

generic <typename T>
void Foo(IEnumerable<T>^ col)
{
	for each (T val in col)
	{
		Console::WriteLine(val);
	}
}

int main(array<System::String ^> ^args)
{
	array<int>^ arr = {10, 20, 30, 40, 50};
	
	Foo(safe_cast<IEnumerable<int>^>(arr));

    return 0;
}






"We make a living by what we get, we make a life by what we give." --Winston Churchill

GeneralRe: Forward Declaration and no appropriate default constructor Pin
iddqd51521-Aug-07 6:16
iddqd51521-Aug-07 6:16 
Questionis there a way for using a global variable in several Form??? Pin
aefmaaradji20-Aug-07 7:16
aefmaaradji20-Aug-07 7:16 
AnswerRe: is there a way for using a global variable in several Form??? Pin
Mark Salsbery20-Aug-07 9:08
Mark Salsbery20-Aug-07 9:08 
AnswerRe: is there a way for using a global variable in several Form??? Pin
George L. Jackson20-Aug-07 9:50
George L. Jackson20-Aug-07 9:50 
Questionhelp Pin
philiptabraham19-Aug-07 18:48
philiptabraham19-Aug-07 18:48 
AnswerRe: help Pin
Giorgi Dalakishvili19-Aug-07 20:51
mentorGiorgi Dalakishvili19-Aug-07 20:51 
AnswerRe: help Pin
Russell'19-Aug-07 23:03
Russell'19-Aug-07 23:03 
GeneralRe: help Pin
Giorgi Dalakishvili19-Aug-07 23:24
mentorGiorgi Dalakishvili19-Aug-07 23:24 
GeneralRe: help Pin
Russell'19-Aug-07 23:56
Russell'19-Aug-07 23:56 
GeneralRe: help Pin
Giorgi Dalakishvili20-Aug-07 0:01
mentorGiorgi Dalakishvili20-Aug-07 0:01 
GeneralRe: help Pin
Russell'20-Aug-07 0:36
Russell'20-Aug-07 0:36 
GeneralRe: help Pin
Giorgi Dalakishvili20-Aug-07 0:39
mentorGiorgi Dalakishvili20-Aug-07 0:39 
AnswerRe: help Pin
Christian Graus20-Aug-07 0:53
protectorChristian Graus20-Aug-07 0:53 
GeneralRe: help Pin
Russell'20-Aug-07 2:05
Russell'20-Aug-07 2:05 
GeneralRe: help Pin
Christian Graus20-Aug-07 15:01
protectorChristian Graus20-Aug-07 15:01 
AnswerRe: help Pin
Justin Perez20-Aug-07 11:15
Justin Perez20-Aug-07 11:15 
Questionhow to use several Form and use called her methods ? Pin
aefmaaradji19-Aug-07 10:54
aefmaaradji19-Aug-07 10:54 

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.