TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Jeff Langr
from: Ed Blackman
date: 1994-10-28 05:07:26
subject: UICL

On  in a message to All, Jeff Langr wrote:

JL> I am looking for a snippet of C++ code that uses the IBM CSet++
JL> user interface class library (UICL) to do the following:
JL>
JL> 1. Create WPS object (a WPProgram object representing a windoze pgm)
JL> 2. Instantiate -- i.e. execute -- the program object
JL> 3. delete the program object

JL> I can do steps 1 & 3 in a regular C program using the OS/2 API
JL> (WinCreateObject, WinDestroyObject).  BUT I don't know of a
JL> way to start this object.  You'd think it'd be real easy;
JL> there's WinStartApp DosExecPgm and DosStartSession but no
JL> WinStartObject or corresponding API.

There's an easy way to do 2, and you don't even need to use UICL.  Call
WinSetObjectData() with "OPEN=DEFAULT" as the setup string.


Ed Blackman

... Chicago will be THE show stopper...  If you run the show on it!
--- Blue Wave/Max v2.12 OS/2 [NR]

* Origin: The Federal Post -{*}- Spring-Lake, NC (1:3634/2)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413
SEEN-BY: 711/430 807 808 809 934 942 949 712/353 623 713/888 800/1
@PATH: 3634/2 151/1000 1002 3615/50 229/2 12/2442 711/409 54/54 711/808 809
@PATH: 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.