🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #1970

Re: Help with GNU C v2.2 and PM

#1970
From: Stephen M. Lacy
Date: Thu, 08 Oct 1992 17:53
20 lines
1253 bytes
Excerpts from netnews.comp.os.os2.programmer: 8-Oct-92 Help with GNU C
v2.2 and PM by Po W. Chiu@iscnvx.lmsc.l 
>    I need help on simple PM programming with GNU C v2.2.  I'm trying create
> a PM window but all that happens is my os2/window changes title screen & icon
> and returns to os2/window.

You need a hello.def file.  It should look something like this:

NAME HELLO WINDOWAPI
DESCRIPTION "OS/2 Version of Hello World"
HEAPSIZE 1024
STACKSIZE 8192

The first line tells the linker that this is a PM program.  It should
get you window working.  Your other code looks fine to me.

Steve


"If I were a fish, I'd dream of flying"
Technical Details
Message-ID: <IepCMPG00iV3483_YA@andrew.cmu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!caen!uwm.edu!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!sl31+

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!caen!uwm.edu!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!sl31+
From: sl31+@andrew.cmu.edu (Stephen M. Lacy)
Newsgroups: comp.os.os2.programmer
Subject: Re: Help with GNU C v2.2 and PM
Message-ID: <IepCMPG00iV3483_YA@andrew.cmu.edu>
Date: 8 Oct 92 17:53:31 GMT
Article-I.D.: andrew.IepCMPG00iV3483_YA
Distribution: comp.os.os2.programmer
Organization: Junior, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA
Lines: 20
In-Reply-To: <1992Oct8.211548.4249@iscnvx.lmsc.lockheed.com>