473,397 Members | 2,056 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

lpVtbl in C++

Hi,

i want to get die function pointer of a com object in c++.
With C it works fine with "object->lpVtbl->Function".
In C++ it doesn't work with "object->Function".
Why ?

regards,

Gürkan
Nov 16 '05 #1
1 4303
pj
"Gürkan Demirci" <de*****@exortus.com> wrote in message news:<OX**************@tk2msftngp13.phx.gbl>...
Hi,

i want to get die function pointer of a com object in c++.
With C it works fine with "object->lpVtbl->Function".
In C++ it doesn't work with "object->Function".
Why ?

regards,

Gürkan


vtable and COM are not the same thing

Most particularly, remove COM objects are not served directly via a
vtable (the vtable you see local to you belongs to a proxy).

Posting some simplified sample code might help get a more useful
answer (I realize mine is too general to be helpful -- I'm sorry about
that).
Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: kscho | last post by:
Hi~ i wanna implement like COM interface, but I have problem pass this pointer. How can i pass this pointer in C ? How can i pass this pointer in CPP (thus not occured error)? //_______...
3
by: Joe Caverly | last post by:
Hi, I'm using Visual C++ 32-bit Professional Edition 5.0 Using Microsoft Knowledge Base Article 181473 as a basis, I'm trying to transform this VB Code; Dim sc As Object Dim code As String...
10
by: gmtonyhoyt | last post by:
It's been mentioned to me that, in standard c, that you can have structures behave very much like classes in relation to something to do with function calls within a structure. Now, I didn't get...
9
by: Anand Vardhan | last post by:
Hi Could anyone tell me if there is any way to do data abstraction in C or use object oriented methods. I was thinking about using structures but I am getting no where. Regards.
0
by: Ben Cox | last post by:
I need help in defining the C++ tapi interface in C#. Any help with this would be appreciated. #ifndef __ITAMMediaFormat_INTERFACE_DEFINED__ #define __ITAMMediaFormat_INTERFACE_DEFINED__ ...
47
by: Albert | last post by:
So structures are useful to group variables, so you can to refer to a collection as a single entity. Wouldn't it be useful to also have the ability to collect variable and functions? Ask K&R...
3
by: seema | last post by:
Hi all, I am new to C programming. I have problem compiling a sample , #include <stdio.h> int getuniqueaddress1(){ return 1; } int getuniqueaddress2(){ return 2;
9
by: qhimq | last post by:
Hi, I was attempting to start a project with excel 2003, but it never got off the road with google. I want to use ANSI c++ (it appears I need visual c++) to make a windows app, to input various...
3
by: jacob navia | last post by:
Abstract: Continuing the discussion about abstract data types, in this discussion group, a string collection data type is presented, patterned after the collection in C# and similar languages...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.