Re: How to enable visual styles in BHO



Seb <kipcool.sb@xxxxxxxxx> wrote:
> One query, what is the difference between the rc file and the rc2 file
> ?

None really. Just a naming convention. The IDE manages the .rc file for
you, inserting and removing pieces as you work in resource editors, so
it is somewhat difficult to put handwritten code in there. So when one
needs to, it is customary to create a .rc2 file, put any custom code
there, and #include it in .rc . The IDE does not touch .rc2.

By the way, to include anything in .rc and make sure it stays put, do
the following. In the IDE, open Resource Viewer, right-click on
ProjectName.rc node and choose Resource Includes. A dialog appears with
two large edit boxes. Whatever you put in the top box will appear at the
beginning of your .rc file. It usually already contains #include
"winres.h" line - put any additional headers there. The contents of the
bottom box will be placed at the end of .rc file. You can specify some
resource statements there directly (e.g. the one-liner that includes the
manifest) or you can #include "your.rc2" if you have a lot of custom
resource code that you want to conveniently edit in a regular code
editor.

> Do you know where I can find a sample ?
>
> I repeat my new process:
>
> In Stdafx.h :
> #include "commctrl.h"
>
> In resource.h (in beginning):
> #define ISOLATION_AWARE_ENABLED 2

That goes into stdafx.h, not into resource.h - and make sure you put it
at the very top, before including any Windows headers.

> #define MANIFEST_RESOURCE_ID 2

That one goes into resource.h - or, if you use
ISOLATIONAWARE_MANIFEST_RESOURCE_ID, you don't need it at all.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Re: Visual C++ 6 support issue
    ... >> A common IDE is a good idea, but usually in programming, you have ... >would do what made sense for that language. ... >or at least for allocating resource ID values within specified ranges. ... >That is, for example, I'd like to keep all the help strings and all the ...
    (microsoft.public.vc.mfc)
  • Re: Great undocumented feature: foldable code with $REGION directive
    ... > IDE and. ... > code between the directives, ... Also I'd like to be have a parameter so set color for ... > I was wondering why such great resource is undocumented, ...
    (borland.public.delphi.non-technical)
  • Re: Resource-Files in Text-Editor
    ... > Den MS Resource Compiler findest Du auf der bzw. einer Deiner VB-CD's. ... > es sich um ein Programm handelt, das von der Befehlszeile aus ausgeführt ... [Sprache/Landeskennung unterschiedlich in IDE vs kompilierter Exe] ... Ressourcen sowohl in der IDE von VB als auch zur Laufzeit ...
    (microsoft.public.de.vb)
  • Re: Visual C++ 6 support issue
    ... > A common IDE is a good idea, but usually in programming, you have ... or at least for allocating resource ID values within specified ranges. ... That is, for example, I'd like to keep all the help strings and all the ...
    (microsoft.public.vc.mfc)
  • Re: The Galileo IDE
    ... > fundamental design flaw nested in there somewhere. ... and the need for a big of optimization of the resource hungry code. ... Besides, saying that this is a 3rd generation of the Galileo IDE is ...
    (borland.public.delphi.non-technical)