15,905,508 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Ganesamoorthy.S (Top 7 by date)
Ganesamoorthy.S
28-Jan-11 7:01am
View
Accept Answer Reject Answer
.I have completed this on my own.
Adding interface to a COM, is as usual but if we suppose to use QUERYINTERFACE then it has to be implemented(implement interface option must be chosen). As you have instructed me in the threads it has to be inherited.
I did it and got the expected result.
Ganesamoorthy.S
28-Jan-11 7:00am
View
Accept Answer Reject Answer
.I have completed this on my own.
Adding interface to a COM, is as usual but if we suppose to use QUERYINTERFACE then it has to be implemented(implement interface option must be chosen).
I did it and got the expected result.
Ganesamoorthy.S
28-Jan-11 2:20am
View
<pre>HRESULT hr;
IGreet *greetObject;
IGreet2 *greetObject2;
CString strTemp;
hr = CoInitialize(NULL);
if (FAILED(hr) )
return ;
hr = CoCreateInstance(CLSID_Greet,NULL,CLSCTX_INPROC_SERVER, IID_IGreet,(void **)&greetObject);
if (FAILED(hr) )
{
CoUninitialize();
return ;
}
cout << greetObject->Sayhello("Ganesh") << endl;
hr = greetObject->QueryInterface(IID_IGreet2,(void **)&greetObject2);
if (FAILED(hr) )
{
CoUninitialize();
return ;
} </pre>
Ganesamoorthy.S
27-Jan-11 6:40am
View
Thanks a lot
Ganesamoorthy.S
27-Jan-11 6:31am
View
I am a beginner in COM, can you please clarify me?
I am using VS2005. How can i inherit the interface? Is there any wizard to do this?
Ganesamoorthy.S
27-Jan-11 5:56am
View
During build of the project the component is getting registered properly.
And i am able to get any one of the objects using createinstance. But i am unable to use Queryinterface.
IGreet2 is not inherited from IGreet.
Ganesamoorthy.S
27-Jan-11 5:55am
View
During build of the project the component is getting registered properly.
And i am able to get any one of the objects using createinstance. But i am unable to use Queryinterface.
IGreet2 is not inherited from IGreet.
Show More