Click here to Skip to main content
16,005,114 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionNeed to click menu twice to activate in an MDI application Pin
zenzero24-May-06 11:03
zenzero24-May-06 11:03 
AnswerRe: Need to click menu twice to activate in an MDI application Pin
zenzero29-May-06 13:51
zenzero29-May-06 13:51 
Questioninexplicable System.NullReferenceException when using stl vector Pin
razilon23-May-06 20:33
razilon23-May-06 20:33 
QuestionError Code: C2039 Pin
satsumatable23-May-06 18:27
satsumatable23-May-06 18:27 
AnswerRe: Error Code: C2039 Pin
Cedric Moonen23-May-06 21:11
Cedric Moonen23-May-06 21:11 
QuestionCompiling error for Clipboard.SetDataObject(). Pin
robert tian guo23-May-06 4:47
robert tian guo23-May-06 4:47 
AnswerRe: Compiling error for Clipboard.SetDataObject(). [modified] Pin
George L. Jackson23-May-06 9:34
George L. Jackson23-May-06 9:34 
GeneralRe: Compiling error for Clipboard.SetDataObject(). [modified] Pin
robert tian guo23-May-06 14:32
robert tian guo23-May-06 14:32 
GeneralRe: Compiling error for Clipboard.SetDataObject(). [modified] Pin
George L. Jackson24-May-06 3:15
George L. Jackson24-May-06 3:15 
QuestionHow Can I play the music on my game Pin
Squallkin8423-May-06 4:08
Squallkin8423-May-06 4:08 
QuestionProto type mismatch Pin
satsumatable22-May-06 23:57
satsumatable22-May-06 23:57 
QuestionReading memory Pin
satsumatable22-May-06 17:32
satsumatable22-May-06 17:32 
QuestionCreating new managedObject[100] in C++ Pin
StevenS_Dev22-May-06 12:35
StevenS_Dev22-May-06 12:35 
AnswerRe: Creating new managedObject[100] in C++ Pin
George L. Jackson23-May-06 2:01
George L. Jackson23-May-06 2:01 
GeneralRe: Creating new managedObject[100] in C++ Pin
StevenS_Dev23-May-06 7:38
StevenS_Dev23-May-06 7:38 
QuestionOverriding void Dispose(bool disposing) in C++/CLI? Pin
Filip Strugar20-May-06 14:37
Filip Strugar20-May-06 14:37 
AnswerRe: Overriding void Dispose(bool disposing) in C++/CLI? [modified] Pin
George L. Jackson20-May-06 15:44
George L. Jackson20-May-06 15:44 
AnswerRe: Overriding void Dispose(bool disposing) in C++/CLI? Pin
Dave Doknjas20-May-06 19:25
Dave Doknjas20-May-06 19:25 
If you're doing somthing like the following in C#:
public class test
{
protected override void Dispose(bool disposing)
{
if (disposing)
{
// do A
}

// do B
}
}

Then the C++/CLI equivalent is this:
public ref class test
{
public:
~test()
{
DisposeObject(true);
}

private protected:
!test()
{
DisposeObject(false);
}

private:
void DisposeObject(bool disposing)
{
if (disposing)
{
// do A
}

// do B
}
};

Our Instant C++ C# to C++ converter maintains the original 'Dispose' method, but renames it and makes it private - called only from the new CLI destructor and finalizer. This is to make conversion easier to understand, but you could dispense with the Dispose altogether and code that logic within the destructor and finalizer directly.


David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter and VB to C++ converter
Instant J#: VB to J# converter
Clear VB: Cleans up VB.NET code
Clear C#: Cleans up C# code
GeneralRe: Overriding void Dispose(bool disposing) in C++/CLI? Pin
Filip Strugar22-May-06 22:34
Filip Strugar22-May-06 22:34 
GeneralRe: Overriding void Dispose(bool disposing) in C++/CLI? Pin
George L. Jackson23-May-06 1:57
George L. Jackson23-May-06 1:57 
GeneralRe: Overriding void Dispose(bool disposing) in C++/CLI? Pin
Dave Doknjas23-May-06 12:31
Dave Doknjas23-May-06 12:31 
QuestionMixing native and managed code Pin
Saurabh.Garg19-May-06 18:44
Saurabh.Garg19-May-06 18:44 
AnswerRe: Mixing native and managed code Pin
georgeraafat23-May-06 12:50
georgeraafat23-May-06 12:50 
QuestionSerialization Issue with Int32 Pin
jmlstele19-May-06 9:51
jmlstele19-May-06 9:51 
AnswerRe: Serialization Issue with Int32 Pin
georgeraafat23-May-06 13:17
georgeraafat23-May-06 13:17 

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.