Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Vista Community > Windows Vista

Windows Vista Discuss the different versions of Windows Vista, Fuji, or Vienna

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 01-02-2007, 10:26 AM
Pierre
Newsgroup Contributor
 
Posts: n/a
Possible bug in shell?

Hi everyone,

I'm developing a context menu shell extension. It is working properly in all
previous versions of Windows. But Windows Vista (RTM) has a strange problem.
If I declare my extension like

class MyMenuExt : public IContextMenu3, public IShellExtInit
{
....
}

everything runs smoothly, but in case

class MyMenuExt : public IShellExtInit, public IContextMenu3
{
....
}

where IShellExtInit is declared first, shell32.dll raises an access
violation exception after calling the Initialize method 8 times with garbage
arguments. I'm pretty sure that my reference counting code (which is
boiler-plate) and other parts of my class are error-free. After debugging
several hours with WinDbg I could not figure out why Vista behaves this way.
As I said, prior versions run the code without a glitch in both cases. I
would appreciate if someone could give a reasonable answer.

Can


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 01-02-2007, 10:26 AM
  #2 (permalink)  
Old 01-02-2007, 10:26 AM
JustFYI ...
Newsgroup Contributor
 
Posts: n/a
Re: Possible bug in shell?

i doubt this is the right ng for that.
find some on programming for vista.

"Pierre" <can.balioglu at gmx.de_DONOTSPAM_> schrieb im Newsbeitrag
news:ONS57a$EHHA.4108@TK2MSFTNGP03.phx.gbl...[color=blue]
> Hi everyone,
>
> I'm developing a context menu shell extension. It is working properly in
> all previous versions of Windows. But Windows Vista (RTM) has a strange
> problem. If I declare my extension like
>
> class MyMenuExt : public IContextMenu3, public IShellExtInit
> {
> ...
> }
>
> everything runs smoothly, but in case
>
> class MyMenuExt : public IShellExtInit, public IContextMenu3
> {
> ...
> }
>
> where IShellExtInit is declared first, shell32.dll raises an access
> violation exception after calling the Initialize method 8 times with
> garbage arguments. I'm pretty sure that my reference counting code (which
> is boiler-plate) and other parts of my class are error-free. After
> debugging several hours with WinDbg I could not figure out why Vista
> behaves this way. As I said, prior versions run the code without a glitch
> in both cases. I would appreciate if someone could give a reasonable
> answer.
>
> Can
>[/color]

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Off
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
shell help again George Linux 3 04-18-2008 03:20 PM
Add Shell Folder? John Windows Vista 5 03-05-2008 08:00 PM
Shell/User Leigh Windows XP 2 08-20-2007 02:00 PM
Zip/Arj Shell integration Francois Windows Vista 1 03-14-2007 07:45 PM
Autoplay shell Hi Dee Windows XP 0 01-27-2007 06:30 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 07:55 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0