Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
361 dpurdie 1
#-------------------------------------------------------------------------------
2
#   Documentation
3
#
4
 
5
=pod
6
 
7
=for htmltoc    FAQ::Windows::Add an icon to an EXE
8
 
9
=head1 NAME
10
 
11
How to add an icon to a Windows Executable
12
 
13
=head1 SYNOPSIS
14
 
15
The following fragment uses a JATS provided tool to create a simple Resource
16
file that contains version information and an icon. The icon will appear in
17
Windows Explorer displays.
18
 
19
    # In the build.pl file
20
    #   Create a resource file
21
    #
22
    BuildVersion ( '--Style=WinRC', '--File=MyRes.rc',
23
                                    '--Comment=This is a comment',
24
                                    '--Description=This is a description',
25
                                    '--Icon=ProgIcon.ico'
26
                                    );
27
 
28
    # In a makefile.pl
29
    #   Build a program
30
    #
31
    Prog            ( '*', 'MyProg', @OBJS );
32
    Prog            ( '*', 'MyProg', '--Resource=MyRes.rc' );
33
 
34