home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / os2 / programm / 3844 < prev    next >
Encoding:
Text File  |  1992-07-28  |  2.8 KB  |  60 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!caen!jwh
  3. From: jwh@citi.umich.edu (Jim Howe)
  4. Subject: Re: OS/2 Resources - Control Window Definition
  5. Message-ID: <wFV-+m@engin.umich.edu>
  6. Date: Tue, 28 Jul 92 14:54:03 EDT
  7. Organization: IFS Project, University of Michigan
  8. References: <10930@platypus.uofs.uofs.edu> <1992Jul28.174751.27986@njitgw.njit.edu>
  9. Reply-To: jwh@citi.umich.edu
  10. Keywords: OS/2
  11. Nntp-Posting-Host: tarkus.citi.umich.edu
  12. Lines: 46
  13.  
  14. In article <1992Jul28.174751.27986@njitgw.njit.edu>, dic5340@hertz.njit.edu (David Charlap) writes:
  15. |> In article <10930@platypus.uofs.uofs.edu> littlec1@jaguar.uofs.edu writes:
  16. |> >
  17. |> >    problem : i want to allow a user to change the position of
  18. |> >          controls on the screen.  in fact, i want to create
  19. |> >          a dialog box editor-like application that will allow
  20. |> >          a user to customize the interface.  instead of saving
  21. |> >          the changes to a .RES file, i want to make the changes
  22. |> >          directly to the .EXE.  under the macintosh environment,
  23. |> >          api's are provided for this type of functionality.
  24. |> >          are there equivalents in os/2?  if these functions do
  25. |> >          not exist, is the format of the .EXE defined well
  26. |> >          enough that i can make the changes by writing directly
  27. |> >          to the .EXE?
  28. |> 
  29. |> You mean like Whitewater Resource Toolkit does for Windows code,
  30. |> right?
  31. |> 
  32. |> I can't give details, since this is unfamiliar, but a simple way might
  33. |> be to generate a .RC file and then execute rc.exe to patch the
  34. |> resources into the executable.  There exists a shareware program
  35. |> called dentist.exe which can extract resources from OS/2 executables
  36. |> and DLLs.  You can download dentist from ftp-os2.nmsu.edu.  Look in
  37. |> the pub/os2/1.x/programming directory.  I noticed that it is
  38. |> classified as a 1.x program and not as an "all" program, so I don't
  39. |> know how it'll work with 2.0 (I haven't used it under 2.0 yet), but I
  40. |> see no reason why it should fail.
  41. |> 
  42.  
  43. There is also another commercial program called EXE Tool which is a
  44. PM based EXE/DLL editor/viewer.  The current version works for 1.x
  45. executables but a 2.0 version is in the works.  In the current version
  46. you can open the resource table, view resources, cut/paste resources
  47. etc.  If you want to add a dialog to an EXE or DLL file, for example,
  48. you can use the Dialog Editor to create a dialog, copy the dialog
  49. to the clipboard and then use EXE Tool to paste the dialog into
  50. a DLL or EXE file.  If you have access to CompuServe there is a
  51. file in the Digitalk Forum (Library 3) called exeinf.exe which is
  52. a self extracting archive which contains the online documentation
  53. for EXE Tool.  This documentation is readable with the View command.
  54.  
  55. BTW, I'm the author of EXE Tool.
  56.  
  57.  
  58. James W. Howe                  internet: jwh@citi.umich.edu
  59. Ann Arbor, MI   48103-4943         
  60.