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

Managed C++/CLI

 
QuestionUsing MFC with windows form Pin
minihotto11-Nov-07 3:35
minihotto11-Nov-07 3:35 
AnswerRe: Using MFC with windows form Pin
Mark Salsbery11-Nov-07 6:47
Mark Salsbery11-Nov-07 6:47 
QuestionRe: Using MFC with windows form [modified] Pin
minihotto11-Nov-07 7:32
minihotto11-Nov-07 7:32 
Questionknowing the file's name Pin
tzumer11-Nov-07 1:45
tzumer11-Nov-07 1:45 
AnswerRe: knowing the file's name Pin
George L. Jackson11-Nov-07 2:59
George L. Jackson11-Nov-07 2:59 
AnswerRe: knowing the file's name Pin
Hamid_RT11-Nov-07 3:51
Hamid_RT11-Nov-07 3:51 
AnswerRe: knowing the file's name Pin
Jude Deng13-Nov-07 16:37
Jude Deng13-Nov-07 16:37 
Questionvalue -vs- ref class and NULL -vs- nullptr Pin
devvvy11-Nov-07 0:03
devvvy11-Nov-07 0:03 
While I thought the use of "ref class" is so memory for ref intantiated objects are always allocated on managed heap. While "value class" are always allocated on stack OR un-managed heap -- however, I must be wrong, "gcnew" can allocate for "value class" as well? Getting confused...

// TestConsole.cpp : main project file.

<br />
using namespace System;<br />
<br />
value class Class1<br />
{<br />
public:<br />
	Class1() {<br />
		m_pUnmanagedCharString = NULL; << QUESTION 2: How can you init to NULL as you did in MFC?<br />
		m_ManagedString = nullptr;<br />
	}<br />
<br />
protected:<br />
	char * m_pUnmanagedCharString;<br />
	String^ m_ManagedString;<br />
};<br />
<br />
int main(array<System::String ^> ^args)<br />
{<br />
    Console::WriteLine(L"Hello World");<br />
<br />
	Class1* obj = new Class1();<br />
	Class1^ obj2 = gcnew Class1(); << QUESTION 1: I thought gcnew is only for "ref classes"!?<br />
<br />
    return 0;<br />
}<br />


Thanks!

http://www.codeproject.com/managedcpp/cppcliintro01.asp
http://www.codeproject.com/useritems/quickcppcli.asp
http://www.codeguru.com/cpp/cpp/cpp_managed/general/article.php/c10653/
http://www.informit.com/guides/content.aspx?g=cplusplus&seqNum=275&rl=1
AnswerRe: value -vs- ref class and NULL -vs- nullptr Pin
George L. Jackson11-Nov-07 2:48
George L. Jackson11-Nov-07 2:48 
GeneralRe: value -vs- ref class and NULL -vs- nullptr Pin
devvvy11-Nov-07 4:48
devvvy11-Nov-07 4:48 
GeneralRe: value -vs- ref class and NULL -vs- nullptr [modified] Pin
George L. Jackson11-Nov-07 5:54
George L. Jackson11-Nov-07 5:54 
GeneralRe: value -vs- ref class and NULL -vs- nullptr Pin
devvvy11-Nov-07 13:26
devvvy11-Nov-07 13:26 
GeneralRe: value -vs- ref class and NULL -vs- nullptr Pin
George L. Jackson11-Nov-07 14:52
George L. Jackson11-Nov-07 14:52 
GeneralRe: value -vs- ref class and NULL -vs- nullptr Pin
George L. Jackson11-Nov-07 14:55
George L. Jackson11-Nov-07 14:55 
GeneralRe: value -vs- ref class and NULL -vs- nullptr Pin
devvvy11-Nov-07 16:27
devvvy11-Nov-07 16:27 
QuestionHow to define WaitCallback arguments? Pin
AlwaysStudent10-Nov-07 17:48
AlwaysStudent10-Nov-07 17:48 
AnswerRe: How to define WaitCallback arguments? Pin
Luc Pattyn10-Nov-07 18:30
sitebuilderLuc Pattyn10-Nov-07 18:30 
AnswerRe: How to define WaitCallback arguments? Pin
George L. Jackson11-Nov-07 3:22
George L. Jackson11-Nov-07 3:22 
GeneralRe: How to define WaitCallback arguments? Pin
AlwaysStudent11-Nov-07 20:41
AlwaysStudent11-Nov-07 20:41 
Questionconnecting 2 combo boxes Pin
Miss_F10-Nov-07 5:53
Miss_F10-Nov-07 5:53 
AnswerRe: connecting 2 combo boxes Pin
Mark Salsbery10-Nov-07 6:03
Mark Salsbery10-Nov-07 6:03 
AnswerRe: connecting 2 combo boxes Pin
Hamid_RT11-Nov-07 4:01
Hamid_RT11-Nov-07 4:01 
GeneralRe: connecting 2 combo boxes Pin
Miss_F11-Nov-07 17:46
Miss_F11-Nov-07 17:46 
GeneralRe: connecting 2 combo boxes Pin
Hamid_RT11-Nov-07 18:07
Hamid_RT11-Nov-07 18:07 
QuestionCan't find Excel Interop assembly Pin
BuckBrown9-Nov-07 8:29
BuckBrown9-Nov-07 8:29 

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.