home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / os2 / programm / 8056 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  3.3 KB

  1. Path: sparky!uunet!munnari.oz.au!sgiblab!sdd.hp.com!usc!news.service.uci.edu!nntpsrv
  2. From: lhoang@orion.oac.uci.edu (Long Hoang)
  3. Subject: COMMON SEAMLESS WINOS2 from PM app - WPShell and SOM
  4. Nntp-Posting-Host: orion.oac.uci.edu
  5. Message-ID: <2B664BD6.22841@news.service.uci.edu>
  6. Newsgroups: comp.os.os2.programmer
  7. Organization: University of California, Irvine
  8. Lines: 61
  9. Date: 27 Jan 93 08:46:14 GMT
  10.  
  11.  
  12. I have a few question regarding COMMON SEAMLESS WINOS2 session, started from
  13. a PM application.
  14.  
  15.     1. I tried WinStartApp()
  16.           a. Under OS/2 2.1 and compiled with Toolkt 2.1:
  17.                      PROGDETAILS ProgDetails;
  18.                      Progdetails.progt.progc = PROG_31_STDSEAMLESSCOMMON;
  19.  
  20.                  WinStartApp() only worked if a COMMON SEAMLESS WINOS2 already
  21.                      started running other Windows application. ??????
  22.  
  23.           b. Under OS/2 2.0 and compiled with Toolkt 2.0:
  24.                   Toolkit 2.0 does not have PROG_31_STDSEAMLESSCOMMON setting
  25.                      for program type. How do I go about to achieve this?
  26.                      If I could get the application to run in SEAMLESS mode,
  27.                      I would be happy. However, WORK PLACE SHELL can do 
  28.                      COMMON SEAMLESS WINOS2 for VGA, and for SVGA if you have
  29.                      the patch. I am also interested in more info about
  30.                      how to launch a non-OS2 app using a combination of
  31.                      one or more of the followings:
  32.                      <cmd.exe, winos2.com, pszEnvironment, and pszStartUpdir>
  33.  
  34.  
  35.     2. Created a WPProgram object on the desktop and let the Work Place Shell
  36.           launch the application.
  37.  
  38.           HOBJECT *clockHObject;
  39.           clockHObject = WinCreateObject("WPProgram", 
  40.                                        "Title", 
  41.                                        "EXENAME=CLOCK.EXE;PROGTYPE=WINDOWEDWIN",
  42.                                        "<WP_DESKTOP>",
  43.                                        CO_REPLACEIFEXISTS);
  44.  
  45.           compiled with Toolkt 2.1, object successfully created under OS/2 2.1
  46.           and OS/2 2.0 (that is if I click on the icon, CLOCK would be running
  47.           under COMMON SEAMLESS WINOS2).
  48.  
  49.           My question in this situation is how do I start (OPEN_RUNNING) this
  50.           object from my application.
  51.  
  52.           _wpOpen(WOBject *somSelf) is the only call I found so far.
  53.  
  54.           If I have to get into SOM and WPShell Classes and Objects programming,
  55.              what do I really need?
  56.             a. A new subclass of class "WPProgram"?
  57.             b. What methods do you think a should overide?
  58.                     - Which constructor?
  59.                          * I tried WPProgramNew() but failed.
  60.                               Do I need to CopyObject or CreateFromTemplate
  61.                                       instead?
  62.                     - Other methods?
  63.                          * I probably want to access certain info such as class
  64.                                   object pointer.
  65.       ===============
  66.       Summary: How to launch a COMMON SEAMLESS WINOS2 application from a PM
  67.           program?  
  68.  
  69.       Thanks a zillion. Long Hoang
  70. ==============================================================================
  71. ==============================================================================
  72.