Home | Advertising Info143 USERS CURRENTLY ONLINE   
   Site Search Contact Us Wednesday, June 20, 2018  

User Management Application with web based screens that allow you to manage users.
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.


We didn't realize
the site was so popular.

Other Stuff

PowerASP active server pages asp.net microsoft .net framework sdk learn asp what is asp tutorial learn asp.net CJWSoft ASPProtect ASPBanner ASPClassifieds

(Advanced)  (Components)  (Database)  (General)  (Vbscript)


Subject: The QueryInterface() method in COM
From: Sayan Mukherjee
Date: 7/17/2001 6:27:02 AM


Hi all,

I have a server component written in VC++ 6.0
which has 5 interfaces. I have a client program
that can successfully do CoCreateInstance() on each of the interfaces.

What I want is to do CoCreateInstance() on any
one interface and use QueryInterface() to get
pointers to the other interfaces. This saves
memory as compared to doing multiple
CoCreateInstance() because the same COM object
is used while returning pointers to the other

But when I try to do the above, QueryInterface()
does not work and its return value is a big
negative number. I have already got an
implementation of QueryInterface(). If I run the
client code in Debug mode, I find that the
control goes into the ATL code and calls its
implementation of QI().

Please help with some constructive suggestion or
code examples. You can also give me URL's of
palces where you are sure that a solution can
be found. Don't send http://msdn.microsoft.com
as your suggestion!

Waiting for a reply.

With best regards,


   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright 1998 - 2018 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages ASP a directory of ASP tutorials applications scripts components and articles for the novice to professional developer. CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com