said:
>What I'm trying do to is write c-code for a commandline executable
>program (compiled and created by the Watcom compiler). I want the
>executable to return the "ProgDetails" of a WPPROGRAM object instance (=
a
>WPPROGRAM object on my desktop).
This is non-trivial. You might say I can do this with with REXX and Henk=
Kelder's wptools.dll so why can't I do this from C code? There are
several reasons. The major one is that WPTOOLS.DLL goes through the back=
door which means it can only support the WPS types it understands.
What you might want to look at is using Rich Walsh's RWS server
http://hobbes.nmsu.edu/pub/incoming/rws060.zip
It allows arbitrary applications access to acces arbitrary WPS services.
>Error! E2038:_wpQueryProgDetails_ is an undefined reference
>Error! E2038:_wpAllocMem_ is an undefined reference
>file wpQueryProgDetails.obj(...,): undefined symbol _wpQueryProgDetails_=
>file wpQueryProgDetails.obj(...,): undefined symbol _wpAllocMem_
This is to be expected and will not change.
>Here's my code for WpQueryProgDetails.c:
You need to review the WPS Programming Guide to understand why what you
are trying can't possibly work.
>char *Self =3D ""; /*Remove this one after I fi=
gure
>out about the WPProgram data type*/
Not that it will help your code, but Self is a pointer to a SOMObject.
HTH,
Steven
--
----------------------------------------------------------------------
"Steven Levine" MR2/ICE 2.67 #10183 Warp4.someth=
ing/14.100c_W4
www.scoug.com irc.fyrelizard.com #scoug (Wed 7pm PST)
----------------------------------------------------------------------
=====================================================
To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-programming".
For problems, contact the list owner at
"postmaster@scoug.com".
=====================================================
<< Previous Message <<
Return to [ 10 |
September |
2005 ]
The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS
RESERVED.
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International
Business Machines Corporation.
All other trademarks remain the property of their respective owners.