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

Managed C++/CLI

 
AnswerRe: Dumb question about event arguments Pin
John Schroedl13-Jun-14 8:05
professionalJohn Schroedl13-Jun-14 8:05 
GeneralRe: Dumb question about event arguments Pin
Member 1031630013-Jun-14 8:50
Member 1031630013-Jun-14 8:50 
Ranthow to work with window in c++ Pin
TomTomtz30-May-14 12:02
TomTomtz30-May-14 12:02 
GeneralRe: how to work with window in c++ Pin
Wes Aday30-May-14 12:29
professionalWes Aday30-May-14 12:29 
GeneralRe: how to work with window in c++ Pin
Richard MacCutchan30-May-14 22:08
mveRichard MacCutchan30-May-14 22:08 
GeneralRe: how to work with window in c++ Pin
WuRunZhe19-Jun-14 5:39
WuRunZhe19-Jun-14 5:39 
QuestionCount from 1 to 1000 without using loops Pin
Amrit Agr26-May-14 0:09
Amrit Agr26-May-14 0:09 
AnswerRe: Count from 1 to 1000 without using loops Pin
Richard MacCutchan26-May-14 0:42
mveRichard MacCutchan26-May-14 0:42 
The line
C++
(&main + (&exit - &main)*(j/1000))(j+1);

is evaluated each time thus:
&exit - &main is the offset from the start of main to the start of exit
j/1000 will evaluate to zero for all vaules of j less than 1000
Multiplying those two values together gives zero if j is less than 1000.
Add that to &main (the address of main) and you get the same address, so main gets called with the parameter value j+1.
This continues until the value of j reaches 1000 at which time:
j/1000 results in the value 1
That is multiplied by the offset of exit which returns that offset.
Add that value to main and the next call will go to exit rather than main.
GeneralRe: Count from 1 to 1000 without using loops Pin
Amrit Agr26-May-14 21:09
Amrit Agr26-May-14 21:09 
GeneralRe: Count from 1 to 1000 without using loops Pin
WuRunZhe19-Jun-14 5:44
WuRunZhe19-Jun-14 5:44 
GeneralRe: Count from 1 to 1000 without using loops Pin
Richard MacCutchan19-Jun-14 6:02
mveRichard MacCutchan19-Jun-14 6:02 
GeneralRe: Count from 1 to 1000 without using loops Pin
WuRunZhe19-Jun-14 15:01
WuRunZhe19-Jun-14 15:01 
QuestionBackground Image causes exception on startup but works in Forms Editor Pin
David W. Griffin20-May-14 8:36
David W. Griffin20-May-14 8:36 
Questioncompiling makefile Pin
MikcaCP19-May-14 11:11
MikcaCP19-May-14 11:11 
AnswerRe: compiling makefile Pin
Wes Aday19-May-14 13:28
professionalWes Aday19-May-14 13:28 
AnswerRe: compiling makefile Pin
Richard MacCutchan19-May-14 21:45
mveRichard MacCutchan19-May-14 21:45 
AnswerRe: compiling makefile Pin
Erik Westermann11-Jul-14 4:48
professionalErik Westermann11-Jul-14 4:48 
Questionc++ programming Pin
Member 107890691-May-14 16:42
Member 107890691-May-14 16:42 
AnswerRe: c++ programming Pin
Richard MacCutchan1-May-14 22:56
mveRichard MacCutchan1-May-14 22:56 
Questionc++ programming Pin
Member 107890691-May-14 16:34
Member 107890691-May-14 16:34 
QuestionRe: c++ programming Pin
Richard MacCutchan1-May-14 22:51
mveRichard MacCutchan1-May-14 22:51 
QuestionHow to convert the following C# line? Pin
Paramu197327-Apr-14 4:04
Paramu197327-Apr-14 4:04 
GeneralRe: How to convert the following C# line? Pin
Wes Aday27-Apr-14 5:49
professionalWes Aday27-Apr-14 5:49 
QuestionRe: How to convert the following C# line? Pin
Richard MacCutchan28-Apr-14 22:33
mveRichard MacCutchan28-Apr-14 22:33 
AnswerRe: How to convert the following C# line? Pin
Paramu197330-Apr-14 9:48
Paramu197330-Apr-14 9:48 

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.