Home | Advertising Info144 USERS CURRENTLY ONLINE   
   Site Search Contact Us Thursday, October 30, 2014  
 
 


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



DISCUSSION ARCHIVES
 
Try a free httpZip trial now and compress for less!


We didn't realize
the site was so popular.

Other Stuff
 

 
 
vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds



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




ASPProtect

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



 

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
interfaces.

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,
Sayan


 

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright 1998 - 2014 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 source code database MS SQL MS Access .mdb adovbs.inc cookies calendar codes sql commands scripts asp programming tutorials iis web server components 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