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

Managed C++/CLI

 
AnswerRe: get valid time from time with wildcards as string(eg. h*:m*)) Pin
George L. Jackson29-Mar-07 6:01
George L. Jackson29-Mar-07 6:01 
GeneralRe: get valid time from time with wildcards as string(eg. h*:m*)) Pin
krishna_m29-Mar-07 23:39
krishna_m29-Mar-07 23:39 
QuestionLoading and Freeing Assemblies [modified] Pin
Richard Andrew x6428-Mar-07 14:07
professionalRichard Andrew x6428-Mar-07 14:07 
AnswerRe: Loading and Freeing Assemblies Pin
George L. Jackson29-Mar-07 11:39
George L. Jackson29-Mar-07 11:39 
GeneralRe: Loading and Freeing Assemblies Pin
Richard Andrew x6429-Mar-07 11:47
professionalRichard Andrew x6429-Mar-07 11:47 
GeneralRe: Loading and Freeing Assemblies Pin
Nish Nishant1-Apr-07 3:20
sitebuilderNish Nishant1-Apr-07 3:20 
QuestionWhat constitutes a mixed type Pin
Richard Andrew x6427-Mar-07 10:03
professionalRichard Andrew x6427-Mar-07 10:03 
AnswerRe: What constitutes a mixed type [modified] Pin
George L. Jackson27-Mar-07 11:11
George L. Jackson27-Mar-07 11:11 
You need to reread "4.3 Using mixed types". He said the C++/CLI compiler does not directly support mixed types. A "ref class" with a member field that is a native class is considered a mixed type. However, a pointer to a native class can be a field of a "ref class":

It is not supported here:

class NativeFoo
{
  // ...
};

ref class ManagedFoo
{
  NativeFoo m_foo;
};

But it is here:

ref class ManagedFoo
{
  NativeFoo* m_foo;
  
  ~ManagedFoo()
  {
    this->!ManagedFoo();
  }
  
  !ManagedFoo()
  {
    delete m_foo;
  }

};

However, using "NativeFoo* m_foo" does not lead to safe and reliable code since the developer is responsible for managing its resource. See http://msdn2.microsoft.com/en-us/library/aa730837(vs.80).aspx[^] for more information.

-- modified at 18:04 Tuesday 27th March, 2007

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

GeneralRe: What constitutes a mixed type Pin
Richard Andrew x6427-Mar-07 12:05
professionalRichard Andrew x6427-Mar-07 12:05 
Questionstd::string.insert Pin
Andy H27-Mar-07 6:08
Andy H27-Mar-07 6:08 
AnswerRe: std::string.insert Pin
Nish Nishant27-Mar-07 6:14
sitebuilderNish Nishant27-Mar-07 6:14 
QuestionGenerated C++ from designer causes exception in CodeDOM [modified] Pin
SE_GEEK26-Mar-07 11:33
SE_GEEK26-Mar-07 11:33 
QuestionRun time code generation Pin
Bhupinder Sodhi25-Mar-07 23:14
Bhupinder Sodhi25-Mar-07 23:14 
AnswerRe: Run time code generation Pin
Mark Salsbery26-Mar-07 10:59
Mark Salsbery26-Mar-07 10:59 
GeneralRe: Run time code generation Pin
Bhupinder Sodhi26-Mar-07 17:03
Bhupinder Sodhi26-Mar-07 17:03 
AnswerRe: Run time code generation Pin
Christian Graus26-Mar-07 17:05
protectorChristian Graus26-Mar-07 17:05 
GeneralRe: Run time code generation Pin
Bhupinder Sodhi26-Mar-07 22:42
Bhupinder Sodhi26-Mar-07 22:42 
GeneralRe: Run time code generation Pin
Christian Graus27-Mar-07 2:38
protectorChristian Graus27-Mar-07 2:38 
GeneralRe: Run time code generation Pin
Bhupinder Sodhi27-Mar-07 2:47
Bhupinder Sodhi27-Mar-07 2:47 
Questionhelp me please Pin
agsathish25-Mar-07 21:53
agsathish25-Mar-07 21:53 
AnswerRe: help me please Pin
Christian Graus26-Mar-07 2:30
protectorChristian Graus26-Mar-07 2:30 
GeneralRe: help me please Pin
Mark Salsbery26-Mar-07 11:00
Mark Salsbery26-Mar-07 11:00 
GeneralRe: help me please Pin
Christian Graus26-Mar-07 11:28
protectorChristian Graus26-Mar-07 11:28 
GeneralRe: help me please Pin
led mike27-Mar-07 5:06
led mike27-Mar-07 5:06 
QuestionHelp interfacing parallel port (in XP) Pin
paraleif24-Mar-07 2:22
paraleif24-Mar-07 2:22 

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.