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

Managed C++/CLI

 
GeneralRe: main form instance name Pin
led mike13-Jun-07 7:02
led mike13-Jun-07 7:02 
AnswerRe: main form instance name Pin
Mark Salsbery13-Jun-07 7:57
Mark Salsbery13-Jun-07 7:57 
GeneralRe: main form instance name Pin
aaron_leese13-Jun-07 18:41
aaron_leese13-Jun-07 18:41 
QuestionRetrieve FileVersion of an exe Pin
IamPoojaa11-Jun-07 1:45
IamPoojaa11-Jun-07 1:45 
AnswerRe: Retrieve FileVersion of an exe Pin
Mark Salsbery11-Jun-07 7:55
Mark Salsbery11-Jun-07 7:55 
Questionstill reflecting / major problem Pin
Xeef10-Jun-07 5:16
Xeef10-Jun-07 5:16 
Questionadding char arrays together for one function arg Pin
NZSmartie9-Jun-07 17:54
NZSmartie9-Jun-07 17:54 
QuestionReflection how to cast to loaded type Pin
Xeef9-Jun-07 10:07
Xeef9-Jun-07 10:07 
hi all

System::Reflection::Assembly^ SampleAssembly;<br />
		System::Type^ myType;<br />
		System::Activator::Object^ myObj;<br />
<br />
		try {<br />
			SampleAssembly = System::Reflection::Assembly::LoadFrom( Path );<br />
		}<br />
		catch (System::IO::FileNotFoundException^ catchException) <br />
		{<br />
			Form->_TabCon->_PageStatus->StatusText->Text += catchException->ToString() + System::Environment::NewLine;<br />
			return 1;<br />
		}<br />
<br />
		try {<br />
			myType = SampleAssembly->GetType("Memory.What"); <br />
			if (!myType) throw (System::String^) "Can´t locate Base Function [incompatible plug ???]";<br />
		}	<br />
		catch (System::String^ catchException)<br />
		{<br />
			Form->_TabCon->_PageStatus->StatusText->Text += catchException + System::Environment::NewLine;<br />
			return 1;<br />
		}<br />
		myObj = System::Activator::CreateInstance( myType ); // creates the instance<br />
		<big>What^ W = (What^)myObj;</big>


how can i cast to "What^" ?
i tryed to have a .h .cpp file whit the same declaration as in "Memmory.what" but i get an error

An unhandled exception of type 'System.InvalidCastException' occurred in WhatsUp.exe
Additional information: Unable to cast object of type 'Memory.What' to type 'WhatsUp.What'.
AnswerRe: Reflection how to cast to loaded type Pin
sarah_malik9-Jun-07 12:03
sarah_malik9-Jun-07 12:03 
GeneralRe: Reflection how to cast to loaded type Pin
Xeef9-Jun-07 13:10
Xeef9-Jun-07 13:10 
QuestionC++ dll problem Pin
sujithkumarsl8-Jun-07 0:11
sujithkumarsl8-Jun-07 0:11 
AnswerRe: C++ dll problem Pin
Mark Salsbery8-Jun-07 4:41
Mark Salsbery8-Jun-07 4:41 
QuestionBest way to learn C++ Pin
Brad Fackrell7-Jun-07 7:46
Brad Fackrell7-Jun-07 7:46 
AnswerRe: Best way to learn C++ Pin
Christian Graus7-Jun-07 12:32
protectorChristian Graus7-Jun-07 12:32 
GeneralRe: Best way to learn C++ Pin
Brad Fackrell8-Jun-07 3:03
Brad Fackrell8-Jun-07 3:03 
QuestionLinker Error LNK2001 Pin
Tal S.6-Jun-07 22:29
Tal S.6-Jun-07 22:29 
QuestionRe: Linker Error LNK2001 Pin
Mark Salsbery7-Jun-07 5:25
Mark Salsbery7-Jun-07 5:25 
AnswerRe: Linker Error LNK2001 Pin
Tal S.10-Jun-07 22:15
Tal S.10-Jun-07 22:15 
GeneralRe: Linker Error LNK2001 Pin
Mark Salsbery11-Jun-07 6:18
Mark Salsbery11-Jun-07 6:18 
GeneralRe: Linker Error LNK2001 Pin
Tal S.11-Jun-07 20:00
Tal S.11-Jun-07 20:00 
GeneralRe: Linker Error LNK2001 Pin
Mark Salsbery12-Jun-07 6:25
Mark Salsbery12-Jun-07 6:25 
Question2 way comunicaion betwean classes Pin
Xeef6-Jun-07 20:18
Xeef6-Jun-07 20:18 
AnswerRe: 2 way comunicaion betwean classes [modified] Pin
Mark Salsbery7-Jun-07 5:30
Mark Salsbery7-Jun-07 5:30 
GeneralRe: 2 way comunicaion betwean classes Pin
Xeef7-Jun-07 7:15
Xeef7-Jun-07 7:15 
QuestionHow to copy data from one listview to another? vs 2005 Pin
sync_austin6-Jun-07 16:28
sync_austin6-Jun-07 16:28 

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.