From: Karl Zilles <zilles@1969.ws>
To: Richard Jones <rich@annexia.org>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] (possibly OT) Can ocamlopt generate an icon for a Win32 exe?
Date: Thu, 14 Aug 2003 10:15:07 -0700 [thread overview]
Message-ID: <3F3BC39B.8000607@1969.ws> (raw)
In-Reply-To: <20030814094958.GA692@redhat.com>
Richard Jones wrote:
> I'm sorry if this question is off-topic. Is there a way that ocamlopt
> can be told to attach an icon to a Win32 executable?
Yes. What you're really asking is, can you attach resources to an ocaml
executable.
Generate a .res file with your icon in it. You can either do this with
a number of IDE tools, or by creating a .rc file and compiling it with
"rc" the resource compiler.
Then run the program "cvtres" (mine is in /Program Files/Microsoft
Visual Studio/VC98/Bin/. If you are using cygwin, then there is a
program called "windres" which is supposed to do the same thing with
different arguments)
cvtres /OUT:myresources.obj myresources.res
This generates an obj file you can just include in the compile:
ocamlopt source.ml moresource.ml myresources.obj
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
prev parent reply other threads:[~2003-08-14 17:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-14 9:49 Richard Jones
2003-08-14 17:15 ` Karl Zilles [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F3BC39B.8000607@1969.ws \
--to=zilles@1969.ws \
--cc=caml-list@inria.fr \
--cc=rich@annexia.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox