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

Managed C++/CLI

 
GeneralRe: How to implement multi-threading in C++ Pin
toxcct14-Feb-06 21:25
toxcct14-Feb-06 21:25 
GeneralRe: How to implement multi-threading in C++ Pin
Sebastian Schneider15-Feb-06 22:26
Sebastian Schneider15-Feb-06 22:26 
GeneralRe: How to implement multi-threading in C++ Pin
toxcct15-Feb-06 23:00
toxcct15-Feb-06 23:00 
QuestionC++ Functions Pin
Subramaniam s.V.13-Feb-06 19:26
Subramaniam s.V.13-Feb-06 19:26 
AnswerRe: C++ Functions Pin
Michael Dunn13-Feb-06 19:53
sitebuilderMichael Dunn13-Feb-06 19:53 
GeneralRe: C++ Functions Pin
RichardS14-Feb-06 21:02
RichardS14-Feb-06 21:02 
GeneralRe: C++ Functions Pin
Michael Dunn15-Feb-06 12:18
sitebuilderMichael Dunn15-Feb-06 12:18 
AnswerRe: C++ Functions Pin
Nick_Kisialiou14-Feb-06 17:12
Nick_Kisialiou14-Feb-06 17:12 
I am not 100% sure, but I believe that the compiler will create a "structure" in the stack, which contains a, b and pointer to the function. The actual function code is in the "instruction set" section of the executable. In general, the class maps into something like this in the stack:

<this> points to a structure which contains the following entries:
[0] Pointer to the virtual function table
[1] First variable
[2] Second variable
...
[N] Pointer to the first non-virtual function
[N+1] Pointer to the second non-virtual function
...

Pointer to the virtual function table points to the structure of pointers to individual virtual functions.

This binary structure of the class is undocumented because it allows you to access private class members through <this> pointer, thus, violating incapsulation. There is also an issue with data alignment of variables a, b, ... when you try to read variables a, b, etc using pointer <this>. There is no problem if they have the same type, that is the same memory size. Otherwise the alignment freaks out depending on the order of integers, doubles, strings etc in which you declared those in the class. I hope this helps.
QuestionQuestion about C++/CLI Pin
Allah On Acid13-Feb-06 13:57
Allah On Acid13-Feb-06 13:57 
AnswerRe: Question about C++/CLI Pin
Nish Nishant13-Feb-06 14:16
sitebuilderNish Nishant13-Feb-06 14:16 
GeneralRe: Question about C++/CLI Pin
Allah On Acid13-Feb-06 15:06
Allah On Acid13-Feb-06 15:06 
QuestionLinking error for program that creates a windows window Pin
Peter Charlesworth13-Feb-06 9:41
Peter Charlesworth13-Feb-06 9:41 
AnswerRe: Linking error for program that creates a windows window Pin
Red Stateler13-Feb-06 9:56
Red Stateler13-Feb-06 9:56 
QuestionC++ Builder Transparent Graphics! Pin
Debs*13-Feb-06 9:12
Debs*13-Feb-06 9:12 
AnswerRe: C++ Builder Transparent Graphics! Pin
olle13-Feb-06 9:56
olle13-Feb-06 9:56 
GeneralRe: C++ Builder Transparent Graphics! Pin
Debs*27-Feb-06 6:25
Debs*27-Feb-06 6:25 
GeneralRe: C++ Builder Transparent Graphics! Pin
Gordon Brandly2-Mar-06 10:45
Gordon Brandly2-Mar-06 10:45 
GeneralRe: C++ Builder Transparent Graphics! Pin
Debs*3-Mar-06 3:37
Debs*3-Mar-06 3:37 
GeneralRe: C++ Builder Transparent Graphics! Pin
Gordon Brandly3-Mar-06 15:11
Gordon Brandly3-Mar-06 15:11 
Questionshare dll data with application Pin
sap.cool13-Feb-06 0:36
sap.cool13-Feb-06 0:36 
Questionvisal studio 2003 MFC/SDI and help whit Cbrush Pin
ALTF412-Feb-06 0:54
ALTF412-Feb-06 0:54 
QuestionConsole Output Formatting Pin
Brett Peirce10-Feb-06 15:22
Brett Peirce10-Feb-06 15:22 
AnswerRe: Console Output Formatting Pin
George L. Jackson10-Feb-06 17:28
George L. Jackson10-Feb-06 17:28 
QuestionHow to scroll text in dev c++ in c++ code? Pin
zeyan10-Feb-06 14:21
zeyan10-Feb-06 14:21 
AnswerRe: How to scroll text in dev c++ in c++ code? Pin
Cedric Moonen12-Feb-06 20:55
Cedric Moonen12-Feb-06 20: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.