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

Managed C++/CLI

 
GeneralRe: Multiple forms problem C++ / CLI Pin
Piotrekneo184-Jun-10 3:59
Piotrekneo184-Jun-10 3:59 
QuestionBatch Help: Delete Oldest File Pin
See_Sharp28-May-10 10:56
See_Sharp28-May-10 10:56 
AnswerRe: Batch Help: Delete Oldest File Pin
Luc Pattyn28-May-10 11:32
sitebuilderLuc Pattyn28-May-10 11:32 
GeneralRe: Batch Help: Delete Oldest File Pin
See_Sharp31-May-10 4:52
See_Sharp31-May-10 4:52 
GeneralRe: Batch Help: Delete Oldest File Pin
Luc Pattyn31-May-10 5:04
sitebuilderLuc Pattyn31-May-10 5:04 
QuestionHow do I make a managed c++ struct that will be usable in c# as an array, while still being able to be passed to unmanaged c++ as an array? Pin
544d4e27-May-10 7:42
544d4e27-May-10 7:42 
AnswerRe: How do I make a managed c++ struct that will be usable in c# as an array, while still being able to be passed to unmanaged c++ as an array? [modified] Pin
Paul Michalik3-Jun-10 2:35
Paul Michalik3-Jun-10 2:35 
QuestionSerialization problem Pin
roshihans20-May-10 21:05
roshihans20-May-10 21:05 
I'm trying to binary serialize a 2D array using [Serializable] and ISerializable. In Special constructor for deserialization, I can't deserialize my array. I don't know what the type in info->GetValue("something", ??Type::typeid). This is my code :

[Serializable]
private ref class SerializedArrayClass : public ISerializable
{
public:
	array<array<float>^>^ jaggedArray;
	array<float, 2>^ genericArray;
	// Matrix is my other class
	Matrix^ matrixArray;

	int width;
	int height;
	int nElement;

	// Constructor
	SerializedArrayClass(int width, int height)
	{
		this->width = width;
		this->height = height;
	}

	// Init those 3 arrays
	InitArray()
	{
		// ...
	}

protected:
	// Special Constructor for deserialize
	SerializedArrayClass(SerializationInfo^ info, StreamingContext context)
	{
		this->width = safe_cast<int>(info->GetValue("width", int::typeid));
		this->height = safe_cast<int>(info->GetValue("height", int::typeid));

		// this is where the problems begin
		this->jaggedArray = safe_cast<array<array<float>^>^>>(info->GetValue("jaggedArray", ??::typeid));
		this->genericArray = safe_cast<array<float, 2>^>>(info->GetValue("genericArray", ??::typeid));
		this->matrixArray = safe_cast<Matrix^>(info->GetValue("matrixArray", ??::typeid));
	}

public:
	// For serialize
	virtual void GetObjectData(SerializationInfo^ info, StreamingContext context)
	{
		info->AddValue("width", this->width);
		info->AddValue("height", this->height);
		info->AddValue("jaggedArray", this->jaggedArray);
		info->AddValue("genericArray", this->genericArray);
		info->AddValue("matrixArray", this->matrixArray);
	}
}


What is the correct Type for 2D array and Matrix object?

Thanks,
Questiona little help ,find a word from text Pin
Gilbertu19-May-10 10:43
Gilbertu19-May-10 10:43 
AnswerRe: a little help ,find a word from text Pin
Luc Pattyn19-May-10 14:05
sitebuilderLuc Pattyn19-May-10 14:05 
AnswerRe: a little help ,find a word from text Pin
T210215-Jun-10 21:26
T210215-Jun-10 21:26 
QuestionGet the button click event from another form Pin
rikterveen18-May-10 20:46
rikterveen18-May-10 20:46 
GeneralRe: Get the button click event from another form Pin
Andreoli Carlo18-May-10 21:56
professionalAndreoli Carlo18-May-10 21:56 
GeneralRe: Get the button click event from another form Pin
rikterveen20-May-10 7:16
rikterveen20-May-10 7:16 
AnswerRe: Get the button click event from another form [modified] Pin
Andreoli Carlo20-May-10 23:14
professionalAndreoli Carlo20-May-10 23:14 
GeneralRe: Get the button click event from another form Pin
rikterveen27-May-10 20:44
rikterveen27-May-10 20:44 
GeneralRe: Get the button click event from another form Pin
Andreoli Carlo31-May-10 12:01
professionalAndreoli Carlo31-May-10 12:01 
AnswerRe: Get the button click event from another form Pin
voo doo125-Jun-10 6:24
voo doo125-Jun-10 6:24 
Questionnot able to built project in release mode Pin
sharada veena17-May-10 19:26
sharada veena17-May-10 19:26 
Questionhelp vc++.net Pin
Gilbertu17-May-10 0:22
Gilbertu17-May-10 0:22 
AnswerRe: help vc++.net Pin
Richard MacCutchan17-May-10 1:26
mveRichard MacCutchan17-May-10 1:26 
Question[] symbol appears in string when reading from / writing to file Pin
KlaasVersteeg16-May-10 23:57
KlaasVersteeg16-May-10 23:57 
QuestionSizeof out of scope? Pin
Xpnctoc8-May-10 6:39
Xpnctoc8-May-10 6:39 
AnswerRe: Sizeof out of scope? Pin
Michel Godfroid8-May-10 8:48
Michel Godfroid8-May-10 8:48 
AnswerRe: Sizeof out of scope? Pin
Richard MacCutchan8-May-10 8:59
mveRichard MacCutchan8-May-10 8:59 

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.