home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!sgiblab!sdd.hp.com!usc!news.service.uci.edu!nntpsrv
- From: lhoang@orion.oac.uci.edu (Long Hoang)
- Subject: COMMON SEAMLESS WINOS2 from PM app - WPShell and SOM
- Nntp-Posting-Host: orion.oac.uci.edu
- Message-ID: <2B664BD6.22841@news.service.uci.edu>
- Newsgroups: comp.os.os2.programmer
- Organization: University of California, Irvine
- Lines: 61
- Date: 27 Jan 93 08:46:14 GMT
-
-
- 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
- ==============================================================================
- ==============================================================================
-