SHBindToObject

  • Thread starter Thread starter Jeff Gaines
  • Start date Start date
J

Jeff Gaines

Having applied SP1 to VS2008 I have discovered a couple of things that, on
the face of it, appear quite marvellous. They are SHBindToObject and
SHBindToFolderIDListParent, there may even be more.

They require Vista though and I am running XP Pro x64 so I am facing an
upgrade dilemma.

From the help it doesn't seem to be necessary to play about with
allocating/freeing memory which I have had problems with using the
IShellFolder interface under XP.

Has anybody used these new functions? Does the OS take care of memory
allocation/de-allocation?
 
Jeff said:
Having applied SP1 to VS2008 I have discovered a couple of things that,
on the face of it, appear quite marvellous. They are SHBindToObject and
SHBindToFolderIDListParent, there may even be more.
This post is better directed to comp.os.ms-windows.programmer.win32.
 
This post is better directed to comp.os.ms-windows.programmer.win32.

I'm not sure why, I thought microsoft.public.dotnet.framework.interop was
for matters relating to using the API in NET. Have I misunderstood its
purpose?
 
Jeff said:
I'm not sure why, I thought microsoft.public.dotnet.framework.interop
was for matters relating to using the API in NET. Have I misunderstood
its purpose?
Not at all, but where in your question is there anything that relates to
..NET? Likewise, how is C# involved? That you may ultimately be calling these
functions from C# (and may have separate issues arising from that) is
another matter altogether.
 
Jeff Gaines wrote:
[snipped]
I'm not sure why, I thought microsoft.public.dotnet.framework.interop was
for matters relating to using the API in NET. Have I misunderstood its
purpose?
Not at all, but where in your question is there anything that relates to
.NET? Likewise, how is C# involved? That you may ultimately be calling
these functions from C# (and may have separate issues arising from that)
is another matter altogether.

I am using C# in NET so it's an interop question.
 
Has anybody used these new functions? Does the OS take care of memory
allocation/de-allocation?

Not sure I understand exactly what you're asking, but both these
functions are merely helpers. They don't do anything you couldn't do
yourself before, but they might save you some work. And hopefully they
handle their memory allocations correctly, if they don't it would be a
bug.


Mattias
 
Not sure I understand exactly what you're asking, but both these
functions are merely helpers. They don't do anything you couldn't do
yourself before, but they might save you some work. And hopefully they
handle their memory allocations correctly, if they don't it would be a
bug.


Mattias

Hello Mattias, nice to hear from you again :-)

I appreciate you can achieve the same result with IShellFolder, but I
hoped the new dll function would handle memory allocation for me.

Now we just need IcontextMenu, IShellFolder.....
 
Back
Top