Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / November 2006

Tip: Looking for answers? Try searching our database.

InsertMenuItem with MIIM_BITMAP fails with GetLastError() 8

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
OPM - 29 Oct 2006 12:27 GMT
Hi guys,

I'm working on a context shell extension in C#. I'm trying to add bitmaps to
the menus.

This is based on Dino Espinosa's code at
http://www.theserverside.net/news/thread.tss?thread_id=26795

The code works fine, but I'm trying to show a bitmap by specifying fMask |=
(uint)MIIM.BITMAP and setting hbmpItemp to
[bitmapObject].GetHbitmap().ToInt32().

I get Win32 error 8 "Not enough storage is available to process this
command."

Any ideas? Much obliged.
Mattias Sjögren - 29 Oct 2006 21:28 GMT
>I'm working on a context shell extension in C#.

That's a bad idea to start with. See here why

http://blogs.msdn.com/junfeng/archive/2005/11/18/494572.aspx

Mattias

Signature

Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

OPM - 30 Oct 2006 01:58 GMT
Hi Mattias,

Thanks, and a very valid point. I guess I'll need to finally learn COM
programming in C.

I'm fairly proficient in C, can you recommend a good shell programming book
that also introduces the reader to COM?

Cheers

> >I'm working on a context shell extension in C#.
>
[quoted text clipped - 3 lines]
>
> Mattias
Mattias Sjögren - 05 Nov 2006 14:55 GMT
>I'm fairly proficient in C, can you recommend a good shell programming book
>that also introduces the reader to COM?

No sorry, the only shell book I've ever read was aimed at VB6 devs.

You can probably get a better answer if you as in the
microsoft.public.platformsdk.shell group.

Mattias

Signature

Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.