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? 6 2510
2004-7-20 14:25:59
Nolan Martin <mo**********@h otmail.com> wrote in message
<XV2Lc.60214$Mr 4.56908@pd7tw1n o> 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?
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/
* Nolan Martin: Hello, I was wondering if it were possible to access the vtable directly.
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.
Are there any resources that detail the inner workings of the vtable?
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?
> > 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? 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?
I dont want to modify the data, just read it.
2004-7-20 14:50:41
"Alf P. Steinbach" <al***@start.no > wrote in message
<40************ ****@news.indiv idual.net> * Nolan Martin:
Hello, I was wondering if it were possible to access the vtable
directly.
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.
Are there any resources that detail the inner workings of the
vtable?
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?
What resouce? Can you show me how to get it?
many thanks!
--
Composed with Newz Crawler 1.7 http://www.newzcrawler.com/
On Tue, 20 Jul 2004 15:05:55 +0800, Stone Lan <st*********@ho tmail.com>
wrote: > Are there any resources that detail the inner workings of the
vtable?
Yes. ;-)
What resouce? Can you show me how to get it?
many thanks!
Here is one example http://www.codesourcery.com/cxx-abi/abi.html#vtable
john This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Quansheng Liang |
last post by:
Hello,
I struggled with the problem of "undefined reference to `vtable ...`"
while migrating a project from windows to linux. After searching the
google I removed all the inline functions and now the link errors
decreased from over 200 to 5. A great step!
But one of my class derived from wxValidator can't be linked correctly
though there is no any inline function in it.
The error message:
-----------------------
|
by: Karl Ebener |
last post by:
Hi!
I have created a program using several classes with inheritage. When I
compile and link, I get the following error:
:$ g++ service2.cpp Service.cpp Application.cpp Message.cpp
MessageQueue.cpp MessageFragmenter.cpp SingleMessage.cpp
/tmp/ccsrT4jU.o(.gnu.linkonce.t._ZN9c_ServiceD1Ev+0xb): In function
`c_Service::~c_Service ()':
: undefined reference to `vtable for c_Service'
|
by: Clint Ruen |
last post by:
Hello all,
I have written out a data structure using the binary flag on an
ofstream. The struct/class is something like this
class SomeData
{
public:
int data1;
|
by: rahul8143 |
last post by:
hello,
what happens to VTABLE when base class has virtual function and
derived class does not override it? Does derived class also builds
VTABLE if it has no functions?
eg. if code is like this(only demo code)
class a{
public:
virtual void fun()
{
cout<<"Base class";
|
by: kish_nand |
last post by:
Could someone please explain me the concept behind virtual functions
and vtables. I am little confused about this. Please refer to the
following code and tell me how many virtual tables would be created and
what they would contain:
class base
{
virtual void display()
{
cout<<"base display"<<endl;
| |
by: schoenfeld1 |
last post by:
I'm trying to workaround a microsoft bug by overring one of their
methods without subclassing.
I need to basically change a Control's vtable entry for the method
PaintBackground method and point it to my own custom method.
Are there facilities to inspect / modify an object vtable with the
standard .net libraries?
If not, what does the object format look like in memory?
|
by: ypjofficial |
last post by:
Hello All,
I have read in many c++ literature that vtable is nothing but an array
of pointer to virtual functions inside a class.And the class where the
virtual function/s are declared stores the vfptr i.e the pointer to
vtable internally.
What confuses me is
if vtable is an array of pointer to virtual functions then as per the
properties of the array all the entries inside the array must be
same.i.e all the pointers should be of similar...
|
by: Jessica |
last post by:
I have a base class and a derived class, but I am getting errors when I
try to access functions of the derived class.
Simplified version of my code is as follows:
////////////////
// test2.hh
class BaseClass {
|
by: Ole Nielsby |
last post by:
James Kanze <james.kanze@gmail.comwrote:
COM does rely on vtable layout. COM interfaces are declared
as pure virtual classes, all methods using stdcall convention, and
this works because most (if not all) C++ compilers for the MSW
use a very similar vtable layout.
In COM, this is handled by proxies provided by system dlls,
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |