Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!usc!sdd.hp.com!hplabs!hpfcso!hpfinote!pnl From: pnl@hpfinote.HP.COM (Peter Lim) Newsgroups: comp.windows.ms Subject: Re: What does this warning mean? Message-ID: <18950038@hpfinote.HP.COM> Date: 28 Sep 90 19:16:33 GMT References: <90269.143156LIBCRN@BYUVM.BITNET> Organization: Hewlett Packard CICD Lines: 30 > > I have been programming for windows only a short time and > I love it. I do, however, have a small problem that I chould > use some help with. > Every program that I compile ends with these messages from > the resource compiler: > > RC: warning RW4002: Non-discardable segment 1 set to PRELOAD > RC: warning RW4002: Non-discardable segment 2 set to PRELOAD > Can't remember exactly off hand. But I've seen this before. You must be compiling programs you done in Windows SDK 2.x. As it turn out, the difference is in the .DEF file. You need to specify PRELOAD or otherwise in your DATA and CODE statements. I didn't see it mentioned in the manuals. This worked for me. Apparently Windows 3.0 added PRELOAD to the syntax of .DEF file. Do experiment. Regards, ## Life is fast enough as it is ........ Peter Lim. ## .... DON'T PUSH IT !! >>>-------, ########################################### : E-mail: plim@hpsgwg.HP.COM Snail-mail: Hewlett Packard Singapore, : Tel: (065)-279-2289 (ICDS, ICS) | Telnet: 520-2289 1150 Depot Road, __\@/__ ... also at: pnl@hpfipnl.HP.COM Singapore 0410. SPLAT ! #include