🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: OS/2 Resources - Control Window Definition

#532
From: David Charlap
Date: Tue, 28 Jul 1992 17:47
32 lines
2096 bytes
In article <10930@platypus.uofs.uofs.edu> littlec1@jaguar.uofs.edu writes:
>
>	problem : i want to allow a user to change the position of
>		  controls on the screen.  in fact, i want to create
>		  a dialog box editor-like application that will allow
>		  a user to customize the interface.  instead of saving
>		  the changes to a .RES file, i want to make the changes
>		  directly to the .EXE.  under the macintosh environment,
>		  api's are provided for this type of functionality.
>		  are there equivalents in os/2?  if these functions do
>		  not exist, is the format of the .EXE defined well
>		  enough that i can make the changes by writing directly
>		  to the .EXE?

You mean like Whitewater Resource Toolkit does for Windows code,
right?

I can't give details, since this is unfamiliar, but a simple way might
be to generate a .RC file and then execute rc.exe to patch the
resources into the executable.  There exists a shareware program
called dentist.exe which can extract resources from OS/2 executables
and DLLs.  You can download dentist from ftp-os2.nmsu.edu.  Look in
the pub/os2/1.x/programming directory.  I noticed that it is
classified as a 1.x program and not as an "all" program, so I don't
know how it'll work with 2.0 (I haven't used it under 2.0 yet), but I
see no reason why it should fail.

-- 
   |)  David Charlap           "I don't even represent myself
  /|_  dic5340@hertz.njit.edu   sometimes so NJIT is right out!.
 ((|,)
  ~|~  Hi! I am a .signature virus, copy me into your .signature file.
Technical Details
Message-ID: <1992Jul28.174751.27986@njitgw.njit.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!darwin.sura.net!jvnc.net!rutgers!njitgw.njit.edu!hertz.njit.edu!dic5340
References: <10930@platypus.uofs.uofs.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!darwin.sura.net!jvnc.net!rutgers!njitgw.njit.edu!hertz.njit.edu!dic5340
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.os2.programmer
Subject: Re: OS/2 Resources - Control Window Definition
Keywords: OS/2
Message-ID: <1992Jul28.174751.27986@njitgw.njit.edu>
Date: 28 Jul 92 17:47:51 GMT
References: <10930@platypus.uofs.uofs.edu>
Sender: news@njit.edu
Organization: New Jersey Institute of Technology, Newark, N.J.
Lines: 32
Nntp-Posting-Host: hertz.njit.edu