Connecting Tech Pros Worldwide Help | Site Map

accessing the vtable

Nolan Martin
Guest
 
Posts: n/a
#1: Jul 22 '05
Hello, I was wondering if it were possible to access the vtable directly.
Are there any resources that detail the inner workings of the vtable?


Stone Lan
Guest
 
Posts: n/a
#2: Jul 22 '05

re: accessing the vtable


2004-7-20 14:25:59

Nolan Martin <monkey_drone@hotmail.com> wrote in message

<XV2Lc.60214$Mr4.56908@pd7tw1no>


[color=blue]
> Hello, I was wondering if it were possible to access the vtable[/color]
directly.
[color=blue]
> Are there any resources that detail the inner workings of the[/color]
vtable?



I think even if you find the virtual table through the "hiden" member
variebles,you can do nothing to the content of the table,since that
you don't know exactly the order of the pointer to the virtual
methods,don't you?
--
Composed with Newz Crawler 1.7 http://www.newzcrawler.com/
Alf P. Steinbach
Guest
 
Posts: n/a
#3: Jul 22 '05

re: accessing the vtable


* Nolan Martin:[color=blue]
>
> Hello, I was wondering if it were possible to access the vtable directly.[/color]

A C++ implementation need not be based on using vtables.

Windows C++ compilers are as a rule vtable-based with access to the
vtable for simple objects (in order to support Windows COM technology).

However, since you're asking about this it is 100% sure that you _don't_
need such access -- try instead to explain what you're trying to
achieve, and if you succeed in explaining that (some code that compiles
is recommended) you will get answers that will help you do whatever.

[color=blue]
> Are there any resources that detail the inner workings of the vtable?[/color]

Yes. ;-)

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Nolan Martin
Guest
 
Posts: n/a
#4: Jul 22 '05

re: accessing the vtable


> > Hello, I was wondering if it were possible to access the vtable[color=blue]
> directly.
>[color=green]
> > Are there any resources that detail the inner workings of the[/color]
> vtable?
>
>
>
> I think even if you find the virtual table through the "hiden" member
> variebles,you can do nothing to the content of the table,since that
> you don't know exactly the order of the pointer to the virtual
> methods,don't you?[/color]

I dont want to modify the data, just read it.


Stone Lan
Guest
 
Posts: n/a
#5: Jul 22 '05

re: accessing the vtable


2004-7-20 14:50:41

"Alf P. Steinbach" <alfps@start.no> wrote in message

<40fcbf9d.458196562@news.individual.net>


[color=blue]
> * Nolan Martin:[/color]
[color=blue][color=green]
> >[/color][/color]
[color=blue][color=green]
> > Hello, I was wondering if it were possible to access the vtable[/color][/color]
directly.
[color=blue]
>[/color]
[color=blue]
> A C++ implementation need not be based on using vtables.[/color]
[color=blue]
>[/color]
[color=blue]
> Windows C++ compilers are as a rule vtable-based with access to the[/color]
[color=blue]
> vtable for simple objects (in order to support Windows COM[/color]
technology).
[color=blue]
>[/color]
[color=blue]
> However, since you're asking about this it is 100% sure that you[/color]
_don't_
[color=blue]
> need such access -- try instead to explain what you're trying to[/color]
[color=blue]
> achieve, and if you succeed in explaining that (some code that[/color]
compiles
[color=blue]
> is recommended) you will get answers that will help you do whatever.[/color]

[color=blue]
>[/color]
[color=blue]
>[/color]
[color=blue][color=green]
> > Are there any resources that detail the inner workings of the[/color][/color]
vtable?
[color=blue]
>[/color]
[color=blue]
> Yes. ;-)[/color]
[color=blue]
>[/color]
[color=blue]
> --[/color]
[color=blue]
> A: Because it messes up the order in which people normally read[/color]
text.
[color=blue]
> Q: Why is it such a bad thing?[/color]
[color=blue]
> A: Top-posting.[/color]
[color=blue]
> Q: What is the most annoying thing on usenet and in e-mail?[/color]



What resouce? Can you show me how to get it?

many thanks!
--
Composed with Newz Crawler 1.7 http://www.newzcrawler.com/
Phlip
Guest
 
Posts: n/a
#6: Jul 22 '05

re: accessing the vtable


Stone Lan wrote:
[color=blue]
> What resouce? Can you show me how to get it?[/color]

The book /Inside the C++ Object Model/ by Lippman, IIRC.

--
Phlip
http://industrialxp.org/community/bi...UserInterfaces


John Harrison
Guest
 
Posts: n/a
#7: Jul 22 '05

re: accessing the vtable


On Tue, 20 Jul 2004 15:05:55 +0800, Stone Lan <stone198182@hotmail.com>
wrote:[color=blue][color=green]
>>[/color]
>[color=green][color=darkred]
>> > Are there any resources that detail the inner workings of the[/color][/color]
> vtable?
>[color=green]
>>[/color]
>[color=green]
>> Yes. ;-)[/color]
>[color=green]
>>[/color][/color]
[color=blue]
>
> What resouce? Can you show me how to get it?
>
> many thanks![/color]

Here is one example

http://www.codesourcery.com/cxx-abi/abi.html#vtable

john


Closed Thread