Subversion Repositories DevTools

Rev

Rev 361 | Blame | Compare with Previous | Last modification | View Log | RSS feed

#-------------------------------------------------------------------------------
#   Documentation
#

=pod

=for htmltoc    FAQ::Windows::Message Compiler

=head1 NAME

How to use the Windows Message Compiler

=head1 SYNOPSIS

The following code fragment uses the windows Message Compiler to create the RC
file which is then inserted into a DLL.

    # source files
    Src( '*', 'mf.mc' );
    Src( '*', 'mf.cc' );
    Src( '*', 'mf.h' );

    # files to be generated
    GenerateFiles ('*', "--Tool=mc", 
                        "--Prerequisite(mf.mc)", 
                        "--CreatedCommon=mf.rc" );

    # headers to be installed
    InstallHdr( '*', 'mf.h' );

    # libraries to be made
    SharedLib ( '*', 'mf', '--Resource=mf.rc', @OBJS );

A resource-only DLL can be created as shwon below:

    # files to be generated
    GenerateFiles ('*', "--Tool=mc", 
                        "--Prerequisite(rf.mc)", 
                        "--CreatedCommon=rf.rc" );

    # libraries to be made
    SharedLib ( '*', 'res_only', '--Resource=rf.rc', '--ResourceOnly' );