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

Managed C++/CLI

 
QuestionUsing MemoryStream Pin
Daniel Odom14-Feb-06 11:28
Daniel Odom14-Feb-06 11:28 
AnswerRe: Using MemoryStream Pin
George L. Jackson15-Feb-06 12:56
George L. Jackson15-Feb-06 12:56 
QuestionSystem::Web::?? Pin
Ed K14-Feb-06 11:12
Ed K14-Feb-06 11:12 
AnswerRe: System::Web::?? Pin
George L. Jackson14-Feb-06 12:53
George L. Jackson14-Feb-06 12:53 
AnswerRe: System::Web::?? Pin
Ed K15-Feb-06 4:44
Ed K15-Feb-06 4:44 
GeneralRe: System::Web::?? Pin
George L. Jackson15-Feb-06 14:28
George L. Jackson15-Feb-06 14:28 
AnswerRe: System::Web::?? Pin
Ed K15-Feb-06 15:05
Ed K15-Feb-06 15:05 
GeneralRe: System::Web::?? Pin
George L. Jackson15-Feb-06 15:35
George L. Jackson15-Feb-06 15:35 
GeneralRe: System::Web::?? Pin
George L. Jackson15-Feb-06 16:05
George L. Jackson15-Feb-06 16:05 
GeneralRe: System::Web::?? Pin
Ed K16-Feb-06 10:15
Ed K16-Feb-06 10:15 
GeneralRe: System::Web::?? Pin
George L. Jackson16-Feb-06 11:17
George L. Jackson16-Feb-06 11:17 
QuestionHow to implement multi-threading in C++ Pin
Amarelia13-Feb-06 23:26
Amarelia13-Feb-06 23:26 
AnswerRe: How to implement multi-threading in C++ Pin
toxcct13-Feb-06 23:55
toxcct13-Feb-06 23:55 
GeneralRe: How to implement multi-threading in C++ Pin
Nick_Kisialiou14-Feb-06 16:20
Nick_Kisialiou14-Feb-06 16:20 
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 

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.