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

Managed C++/CLI

 
GeneralRe: playing sound in C++ Pin
Anonymous1-Aug-05 7:09
Anonymous1-Aug-05 7:09 
GeneralRe: playing sound in C++ Pin
Laffis5-Aug-05 2:43
Laffis5-Aug-05 2:43 
GeneralRe: playing sound in C++ Pin
Laffis5-Aug-05 1:13
Laffis5-Aug-05 1:13 
GeneralSpecialization for ref classes Pin
S. Senthil Kumar31-Jul-05 8:45
S. Senthil Kumar31-Jul-05 8:45 
GeneralRe: Specialization for ref classes Pin
Christian Graus31-Jul-05 20:06
protectorChristian Graus31-Jul-05 20:06 
GeneralRe: Specialization for ref classes Pin
S. Senthil Kumar31-Jul-05 21:17
S. Senthil Kumar31-Jul-05 21:17 
GeneralRe: Specialization for ref classes Pin
Christian Graus1-Aug-05 11:38
protectorChristian Graus1-Aug-05 11:38 
GeneralRe: Specialization for ref classes Pin
Nemanja Trifunovic1-Aug-05 3:30
Nemanja Trifunovic1-Aug-05 3:30 
You'll need partial template specialization for this to work. Ie:

#include <vcclr.h>

using namespace System;

template <typename T> class TestClass
{
T member;
public:
TestClass (T mem) : member (mem){}
};

template <typename T> class TestClass<T^>
{
gcroot<T^> member;
public:
TestClass (T^ mem) : member (mem){}
};

int main(array<System::String ^> ^args)
{
TestClass<String^> tc(gcnew System::String(L"something")); //managed
TestClass<int> tn(1); //native
return 0;
}


<hr>
<a href = http://www.codeproject.com/script/profile/whos_who.asp?id=14112#Blog> My programming blahblahblah blog</a>. If you ever find anything useful here, please let me know to remove it.
GeneralRe: Specialization for ref classes Pin
S. Senthil Kumar1-Aug-05 3:56
S. Senthil Kumar1-Aug-05 3:56 
General'Initialisation is Resource Acquisition' can someone please shed some light on it. Pin
Sandeep Datta28-Jul-05 8:12
Sandeep Datta28-Jul-05 8:12 
GeneralRe: 'Initialisation is Resource Acquisition' can someone please shed some light on it. Pin
Judah Gabriel Himango28-Jul-05 12:08
sponsorJudah Gabriel Himango28-Jul-05 12:08 
GeneralRe: 'Initialisation is Resource Acquisition' can someone please shed some light on it. Pin
Nemanja Trifunovic28-Jul-05 14:53
Nemanja Trifunovic28-Jul-05 14:53 
GeneralRe: 'Initialisation is Resource Acquisition' can someone please shed some light on it. Pin
Sandeep Datta29-Jul-05 8:18
Sandeep Datta29-Jul-05 8:18 
GeneralActiveX control - visual C++ Pin
Michael Hendrickx27-Jul-05 23:53
Michael Hendrickx27-Jul-05 23:53 
GeneralRe: ActiveX control - visual C++ Pin
ursus zeta29-Jul-05 5:21
ursus zeta29-Jul-05 5:21 
GeneralRe: copying 2 d arrays into a single array Pin
Christian Graus27-Jul-05 19:29
protectorChristian Graus27-Jul-05 19:29 
GeneralRe: copying 2 d arrays into a single array Pin
Michael Hendrickx27-Jul-05 23:56
Michael Hendrickx27-Jul-05 23:56 
QuestionParent/Child forms problem?? Pin
richiemac27-Jul-05 3:59
richiemac27-Jul-05 3:59 
AnswerRe: Parent/Child forms problem?? Pin
richiemac2-Aug-05 4:34
richiemac2-Aug-05 4:34 
Questionmigrating from C++ classes to windows forms app? Pin
Member 341989125-Jul-05 20:06
Member 341989125-Jul-05 20:06 
AnswerRe: migrating from C++ classes to windows forms app? Pin
Christian Graus26-Jul-05 8:27
protectorChristian Graus26-Jul-05 8:27 
GeneralRe: migrating from C++ classes to windows forms app? Pin
Member 341989128-Jul-05 1:03
Member 341989128-Jul-05 1:03 
GeneralDragging a borderless Form.... Pin
Qwick Miller25-Jul-05 18:41
Qwick Miller25-Jul-05 18:41 
GeneralRe: Dragging a borderless Form.... Pin
Christian Graus25-Jul-05 19:15
protectorChristian Graus25-Jul-05 19:15 
GeneralRe: Dragging a borderless Form.... Pin
Qwick Miller26-Jul-05 4:20
Qwick Miller26-Jul-05 4:20 

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.