Click here to Skip to main content
14,423,036 members

Managed C++/CLI

 
AnswerRe: Can any "macro" take variable number of arguments? Pin
Michael Dunn4-Aug-06 15:10
sitebuilderMichael Dunn4-Aug-06 15:10 
GeneralRe: Can any "macro" take variable number of arguments? Pin
Pradosh Tapan Datta6-Aug-06 22:27
MemberPradosh Tapan Datta6-Aug-06 22:27 
QuestionConfusion about % vs. & Pin
Joe Woodbury2-Aug-06 18:14
professionalJoe Woodbury2-Aug-06 18:14 
% is for tracking references to CLI object
& is for passing native heap objects

If I use % and pass a native object, what is the compiled behavior? In other words given the following trivial example, does the code for x and y end up being the same, or does x box the passed value and then unbox it?

<pre><br />
void Test(int% x, int& y)<br />
{<br />
  x++;<br />
  y++;<br />
}<br />
<br />
void SomeFunction()<br />
{<br />
  int x = 0;<br />
  int y = 1;<br />
  // A bunch of stuff happens<br />
  Test(x, y);<br />
  // A bunch more stuff happens<br />
}<br />
</pre>


Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke

AnswerRe: Confusion about % vs. & Pin
Michael Dunn4-Aug-06 18:47
sitebuilderMichael Dunn4-Aug-06 18:47 
QuestionCin and Cout- Class or object Pin
Shamnar2-Aug-06 2:46
MemberShamnar2-Aug-06 2:46 
AnswerRe: Cin and Cout- Class or object Pin
NrmMyth2-Aug-06 6:52
MemberNrmMyth2-Aug-06 6:52 
GeneralRe: Cin and Cout- Class or object Pin
toxcct2-Aug-06 7:07
Membertoxcct2-Aug-06 7:07 
GeneralRe: Cin and Cout- Class or object Pin
NrmMyth2-Aug-06 20:58
MemberNrmMyth2-Aug-06 20:58 
AnswerRe: Cin and Cout- Class or object Pin
toxcct2-Aug-06 7:10
Membertoxcct2-Aug-06 7:10 
AnswerRe: Cin and Cout- Class or object [modified] Pin
gdoupanguoqing12-Aug-06 12:32
Membergdoupanguoqing12-Aug-06 12:32 
Questioneventhandlers created at run time for new menuitems Pin
yiwpyos2-Aug-06 0:48
Memberyiwpyos2-Aug-06 0:48 
QuestionSplash Window in Managed C++ Pin
Pavan Rao1-Aug-06 22:34
MemberPavan Rao1-Aug-06 22:34 
GeneralRe: Splash Window in Managed C++ Pin
prasad_som3-Aug-06 4:10
Memberprasad_som3-Aug-06 4:10 
GeneralRe: Splash Window in Managed C++ Pin
Pavan Rao3-Aug-06 4:27
MemberPavan Rao3-Aug-06 4:27 
QuestionDefenition of library function Pin
Shamnar1-Aug-06 2:03
MemberShamnar1-Aug-06 2:03 
AnswerRe: Defenition of library function Pin
toxcct1-Aug-06 3:26
Membertoxcct1-Aug-06 3:26 
AnswerRe: Defenition of library function Pin
NrmMyth1-Aug-06 5:47
MemberNrmMyth1-Aug-06 5:47 
GeneralRe: Defenition of library function Pin
Shamnar1-Aug-06 19:17
MemberShamnar1-Aug-06 19:17 
QuestionHow to get the size of reference type structures Pin
engsrini31-Jul-06 23:09
Memberengsrini31-Jul-06 23:09 
Questioncreating special relations between tables Pin
yiwpyos31-Jul-06 6:55
Memberyiwpyos31-Jul-06 6:55 
AnswerRe: creating special relations between tables Pin
yiwpyos2-Aug-06 23:35
Memberyiwpyos2-Aug-06 23:35 
QuestionHow to cast pointer from one type to another type Pin
aloktambi31-Jul-06 3:05
Memberaloktambi31-Jul-06 3:05 
AnswerRe: How to cast pointer from one type to another type Pin
HZ_7931-Jul-06 5:02
MemberHZ_7931-Jul-06 5:02 
AnswerRe: How to cast pointer from one type to another type Pin
NrmMyth31-Jul-06 20:57
MemberNrmMyth31-Jul-06 20:57 
GeneralRe: How to cast pointer from one type to another type Pin
aloktambi31-Jul-06 21:55
Memberaloktambi31-Jul-06 21:55 

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.