🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.os2.programmer
1 messages
1 total messages Started by Long Hoang Wed, 27 Jan 1993 08:46
COMMON SEAMLESS WINOS2 from PM app - WPShell and SOM
#3672
Author: Long Hoang
Date: Wed, 27 Jan 1993 08:46
61 lines
3409 bytes
I have a few question regarding COMMON SEAMLESS WINOS2 session, started from
a PM application.

    1. I tried WinStartApp()
          a. Under OS/2 2.1 and compiled with Toolkt 2.1:
                     PROGDETAILS ProgDetails;
                     Progdetails.progt.progc = PROG_31_STDSEAMLESSCOMMON;

                 WinStartApp() only worked if a COMMON SEAMLESS WINOS2 already
                     started running other Windows application. ??????

          b. Under OS/2 2.0 and compiled with Toolkt 2.0:
                  Toolkit 2.0 does not have PROG_31_STDSEAMLESSCOMMON setting
                     for program type. How do I go about to achieve this?
                     If I could get the application to run in SEAMLESS mode,
                     I would be happy. However, WORK PLACE SHELL can do 
                     COMMON SEAMLESS WINOS2 for VGA, and for SVGA if you have
                     the patch. I am also interested in more info about
                     how to launch a non-OS2 app using a combination of
                     one or more of the followings:
                     <cmd.exe, winos2.com, pszEnvironment, and pszStartUpdir>


    2. Created a WPProgram object on the desktop and let the Work Place Shell
          launch the application.

          HOBJECT *clockHObject;
          clockHObject = WinCreateObject("WPProgram", 
                                       "Title", 
                                       "EXENAME=CLOCK.EXE;PROGTYPE=WINDOWEDWIN",
                                       "<WP_DESKTOP>",
                                       CO_REPLACEIFEXISTS);

          compiled with Toolkt 2.1, object successfully created under OS/2 2.1
          and OS/2 2.0 (that is if I click on the icon, CLOCK would be running
          under COMMON SEAMLESS WINOS2).

          My question in this situation is how do I start (OPEN_RUNNING) this
          object from my application.

          _wpOpen(WOBject *somSelf) is the only call I found so far.

          If I have to get into SOM and WPShell Classes and Objects programming,
             what do I really need?
            a. A new subclass of class "WPProgram"?
            b. What methods do you think a should overide?
                    - Which constructor?
                         * I tried WPProgramNew() but failed.
                              Do I need to CopyObject or CreateFromTemplate
                                      instead?
                    - Other methods?
                         * I probably want to access certain info such as class
                                  object pointer.
      ===============
      Summary: How to launch a COMMON SEAMLESS WINOS2 application from a PM
          program?  

      Thanks a zillion. Long Hoang
==============================================================================
==============================================================================
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads