Accessing .net resources from unmanaged code?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: rfmount (rfmount_at_discussions.microsoft.com)
Date: 09/21/04


Date: Tue, 21 Sep 2004 07:53:02 -0700

Our users are able to customize our MFC framework app by adding custom
commands written in VB6. The app decorates a command button with a bitmap
obtained from the command DLL's resources. We now wish to support similar
customization with commands written in VB.NET but we have not been able to
obtain the bitmap from the assemby's resources. Using a procedure similar to
the one for VB6 we find that LoadLibrary(..<assembly dll>..) succeeds but a
subsequent call to LoadImage(..<resource name>, IMAGE_BITMAP..) fails.

The development environment for the framework app is VS6.



Relevant Pages

  • Re: Changing welcome screen in XP
    ... This tutorial will show you how to customize the "Welcome Screen": ... "LogonStudio" will do it all for you: ... Wallpaper Value - (changed this value to the location of my bitmap ... picture)) but after I did this my bitmap comes up immediately ...
    (microsoft.public.windowsxp.customize)
  • Re: overlay with VMR
    ... within my bitmap looked strange. ... I wanted to customize allocator to do ... Peter Feldbaumer ... p dot feldbaumer at utanet dot at ...
    (microsoft.public.win32.programmer.directx.video)
  • Customize an OpenDialog
    ... I need, with VB6, to customize an OpenDialog. ...
    (comp.lang.basic.visual.misc)
  • Re: Customize an OpenDialog
    ... >I need, with VB6, to customize an OpenDialog. ...
    (comp.lang.basic.visual.misc)
  • Can I customize the context entries in the editor window in VS2003 ...
    ... like I could in VB6?? ... I want to add Comment and Uncomment commands to the ... right context menu, and can't figure out how to customize this aspect. ...
    (microsoft.public.vstudio.general)