 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
jB Guest
|
Posted: Wed Mar 09, 2005 6:11 pm Post subject: IShellFolder/IShellBrowser |
|
|
I need to develop a custom IShellFolder view for an aplication I am working
on.
Can anyone advise me can it be done with Builder 6, if so anyone got any
code samples???
Thanks
jB
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Mar 09, 2005 7:06 pm Post subject: Re: IShellFolder/IShellBrowser |
|
|
"jB" <.> wrote
| Quote: | I need to develop a custom IShellFolder view for an aplication
I am working on.
|
Please elaborate.
| Quote: | Can anyone advise me can it be done with Builder 6
|
Yes, it can be done, but it is not a trivial task to implement in general.
First off, I assume that you are writing your own Shell Namespace Extension,
is that correct?
Gambit
|
|
| Back to top |
|
 |
jB Guest
|
Posted: Wed Mar 09, 2005 8:08 pm Post subject: Re: IShellFolder/IShellBrowser |
|
|
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote
| Quote: |
First off, I assume that you are writing your own Shell Namespace
Extension,
is that correct?
Hi Remy, |
I have setup an SNE for .lic and created a custom folder where they reside
(by default).
I would like to create a folder view (child) that is loaded by explorer when
someone opens my custom folder.
I know from msdn that there are various IShellView/Folder/Browser commands
but how do I go about creating the child (.dll or .exe) that contains my
code... ?,
that is displayed by explorer in the child pane. ?
Thnaks as always,
jB
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Mar 09, 2005 8:44 pm Post subject: Re: IShellFolder/IShellBrowser |
|
|
"jB" <.> wrote
| Quote: | I have setup an SNE for .lic and created a custom folder where
they reside (by default). I would like to create a folder view (child)
that is loaded by explorer when someone opens my custom folder.
|
Did you read MSDN's documentation yet? There is a whole section on how to
do what you are asking.
| Quote: | I know from msdn that there are various IShellView/Folder/Browser
commands but how do I go about creating the child (.dll or .exe) that
contains my code... ?,
that is displayed by explorer in the child pane. ?
|
You obviously have not read the documentation yet:
Creating a Shell Namespace Extension
http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/programmersguide/shell_adv/namespaceextension/namespace.asp
There is even a step-by-step tutorial provided for creating a basic folder
display.
Gambit
|
|
| Back to top |
|
 |
eduardo Guest
|
Posted: Wed May 04, 2005 5:36 am Post subject: Re: IShellFolder/IShellBrowser |
|
|
Hi, group. I am posting my question here because this thread is exactly about what I'm trying to do.
I can't make the Type Library Editor to offer me the IShellFolder interface to add to my CoClass. I included shlobj.h by hand as it is defined there. But when I try to compile this very simple COM class, I get this error:
"Can't create instance because it is abstract: AddRef()=0"
Ok, so far so god. Then I add STDMETHOD_(ULONG,AddRef)(void) to myclass.h, or unsigned_long...
but now, (here is my problem), I get this error.
Multiple definitions for AddRef in myClass.h, line 123
Earlier declaration of AddRef: atlcom.h, line 48.
But when I open this file, I find the replacement for min() there!!! Weird!!
Ok, I backup my atlcom.h file and proceed to delete those lines (I feel my compiler has gone berzerk and reports that line as it could be reporting any other line in the file). After deleting everything between #ifdef _NO_ALGORITHM_REPLACE, my compiler still complains about that very same line, which now contains completely different code.
I am ready to elaborate much more on this topic, as this is part of a project my organization is involved in.
Please, TeamB & CppBuilder community, help.
Thanks in advance,
Eduardo
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|