473,379 Members | 1,533 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,379 software developers and data experts.

COM mechanism - please help!

Hi all,

I've just started to decipher the world of COM programming and I would
appreciate if someone can clarify this:

Why do I need to access a method in a class that implements an
interface through a pointer to that interface?

In other words, for instance, given the following:

Interface InterfaceA
{
virtual void DoSomething()=0;
};
class A : public InterfaceA
{
void DoSomething()
}

Why do I need to QueryInterface, to obtain a pointer to InterfaceA and
through InterfaceA access DoSomething().

I hope I understood correctly the mechanism.

Million thanks in advance.
Jul 23 '05 #1
1 1101
Laurentiu wrote:
Hi all,

I've just started to decipher the world of COM programming and I would
appreciate if someone can clarify this:
This is off topic here, since it is not about standard C++. I can't say where
you should redirect this question, but you might try one of the microsoft
groups.
Million thanks in advance.


It's a bad idea to pay in advance. I'll keep one and return 999, 999.

Jonathan
Jul 23 '05 #2

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

Similar topics

0
by: wycklk | last post by:
Can anybody help ? >-----Original Message----- >I have 2 processes that need to communicate with each >other. In .NET environment using C#, what is the IPC >communication mechanism that I can...
4
by: David Moore | last post by:
Hello I am using the System.DirectoryServices namespace classes to access Active Directory. We connect using the LDAP://DOMAIN method. The code works on local dev boxes, and in staging, but...
0
by: David Moore | last post by:
Hello I posted a thread about this a while back, but I can't actually find it again so I can reply to it with the solution I found, so I'm making a new thread and hoping it goes to the top of...
0
by: piyush | last post by:
Hello, I need help deciding the best IPC mechanism to communicate between a legacy C++ app (dealing with telephony) and other Top level applications that would call the API functions. Both of...
0
by: piyush | last post by:
Sorry for repeated posting but I couldnt get things right/completely in the first post. I am in the process of deciding the IPC mechanisms to use for communication between 1) An application...
0
by: piyush | last post by:
Sorry for repeated posts, I couldnt get things right and complete in the previous post. I am in the process of deciding the IPC mechanisms to use for communication between 1) An application...
4
by: mangesh | last post by:
virtual mechanism is activated on pointers only , not on objects . what is reason beind this . Regards Mangesh .
1
by: Petr Prikryl | last post by:
Do you think that the following could became PEP (pre PEP). Please, read it, comment it, reformulate it,... Abstract Introduction of the mechanism for language extensions via modules...
4
by: archana | last post by:
Hi all, I am new to asp.net i want to ask some help about postback mechanism of web page. CAn anyone tell me how postback mechanism is handle by asp.net worker process. Means why worker...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.