🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #10237

Re: Stopping DVD/Audio CD autoplay

#10237
From: Simon Macneall
Date: Thu, 06 May 2004 23:42
37 lines
2060 bytes
"Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> wrote in
news:4099b0ae$1@newsgroups.borland.com: 

> 
> "Simon Macneall" <macneall-at-iinet.net.au> wrote in message
> news:Xns94E160383D857macnealliinetnetau@207.105.83.66...
> 
>> I have put my CLSID in the registry
> 
> Are you using a Type Library?  Did you register the standard
> registration values for COM interfaces in the Registry?  Did you put
> your CLSID value under the HKCR\CLSID key, with values to point back
> to your executable file? 
> 
All I did was create a class that implements the interface and added it to 
my executable. What standard COM interfaces need to be registered, and 
where? No, are you supposed to also put your CLSID somewhere under HKCR?

>> "0914A446-E6FA-42a4-9A8A-7D9BDD87F017"
> 
> Where is that value defined in your code?
in a .h file like thus

struct __declspec(
uuid("{0914A446-E6FA-42a4-9A8A-7D9BDD87F017}")) CLSID_AutoPlayInterceptor;

> 
>> class CAutoPlayInterceptor : public CUnknown, public
>> IQueryCancelAutoPlay 
> 
> Are you using MFC?

This is a standard Borland VCL exe and I am getting the Interface stuff 
from DirectShow

Thanks
Simon
Technical Details
Message-ID: <Xns94E24E78DCBC3macnealliinetnetau@207.105.83.66>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <Xns94E15253CC42Fmacnealliinetnetau@207.105.83.66> <409984a1$1@newsgroups.borland.com> <Xns94E160383D857macnealliinetnetau@207.105.83.66> <4099b0ae$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,dcdee2de1c7c274c
X-Google-Attributes: gid10cc67,public
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Stopping DVD/Audio CD autoplay
From: Simon Macneall <macneall-at-iinet.net.au>
References: <Xns94E15253CC42Fmacnealliinetnetau@207.105.83.66> <409984a1$1@newsgroups.borland.com> <Xns94E160383D857macnealliinetnetau@207.105.83.66> <4099b0ae$1@newsgroups.borland.com>
Message-ID: <Xns94E24E78DCBC3macnealliinetnetau@207.105.83.66>
User-Agent: Xnews/5.04.25
NNTP-Posting-Host: 203.153.243.50
Date: 6 May 2004 16:42:45 -0700
X-Trace: newsgroups.borland.com 1083886965 203.153.243.50 (6 May 2004 16:42:45 -0700)
Lines: 37
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail