caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] (possibly OT) Can ocamlopt generate an icon for a Win32 exe?
@ 2003-08-14  9:49 Richard Jones
  2003-08-14 17:15 ` Karl Zilles
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Jones @ 2003-08-14  9:49 UTC (permalink / raw)
  To: caml-list


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?

Rich.

-- 
Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj
Merjis Ltd. http://www.merjis.com/ - all your business data are belong to you.
NET::FTPSERVER is a full-featured, secure, configurable, database-backed
FTP server written in Perl: http://www.annexia.org/freeware/netftpserver/

-------------------
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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] (possibly OT) Can ocamlopt generate an icon for a Win32 exe?
  2003-08-14  9:49 [Caml-list] (possibly OT) Can ocamlopt generate an icon for a Win32 exe? Richard Jones
@ 2003-08-14 17:15 ` Karl Zilles
  0 siblings, 0 replies; 2+ messages in thread
From: Karl Zilles @ 2003-08-14 17:15 UTC (permalink / raw)
  To: Richard Jones; +Cc: caml-list

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-08-14 17:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-14  9:49 [Caml-list] (possibly OT) Can ocamlopt generate an icon for a Win32 exe? Richard Jones
2003-08-14 17:15 ` Karl Zilles

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).