home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 15 Message
/
15-Message.zip
/
UU991120.zip
/
Uh991119.txt
< prev
next >
Wrap
Text File
|
1999-11-20
|
75KB
|
2,148 lines
comp.os.os2.programmer.misc (Usenet)
Saturday, 13-Nov-1999 to Friday, 19-Nov-1999
+----------------------------------------------------------------------------+
From: sgross@fto.de 12-Nov-99 13:49:22
To: All 13-Nov-99 00:33:05
Subj: Dupes in this Newsgroup from Domain fto.de
From: sgross@fto.de (Steffen Gross)
Hallo
The reposting has stopped yesterday at evening , after i have found my
configuration error .
I am sorry for this error .
Kind regards Steffen Gross
--
-----------------------------------------------------------
sgross@fto.de (Steffen Gross)
-----------------------------------------------------------
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: InterNetNews at News.BelWue.DE (Stuttgart, German
(1:109/42)
+----------------------------------------------------------------------------+
From: martin.schaffoener@student.uni-m... 12-Nov-99 17:51:03
To: All 13-Nov-99 00:33:05
Subj: Re: SOMobjects Toolkit Availability?
Message sender: martin.schaffoener@student.uni-magdeburg.de
From: martin.schaffoener@student.uni-magdeburg.de (Martin Schafföner)
On Thu, 11 Nov 1999 19:45:09, "andrew g" <awremovethismg@yesic.com>
wrote:
> If you know where on IBM I can find the SOMobjects toolkit, please let me
> know.
>
You can't anymore. The 2.1 version is included with os/2 toolkits,
and the 3.0 version, which is corba 2.0 compliant and which never
officially got released, is no more available for download. I have it
here sitting on a CD, but I don't know what it's good for. IBM
stopped supporting SOM in june, 1997. Why on earth they did, I guess
only god knows... I guess, distributed objects did not fit their idea
of "network computing"...
Have fun,
Martin Schafföner
Suzuki GS650G Katana
OS/2 Warp 4 with FixPak 11
There are currently 42 processes
with 206 threads active.
This machine's uptime 7h 40min 10sec.
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: Otto-von-Guericke-Universitaet Magdeburg (1:109/42)
+----------------------------------------------------------------------------+
From: teeezin@aol.com 12-Nov-99 17:56:24
To: All 13-Nov-99 00:33:05
Subj: OS/2 Warp version 3 plus BonusPak ... NIB
From: teeezin@aol.com (Teeezin)
OS/2 Warp version 3 plus BonusPak
New in the box, still sealed!
up for auction on ebay with a few other things:
http://cgi3.ebay.com/aw-cgi/eBayISAPI.dll?ViewListedItems&userid=gregb10
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: AOL http://www.aol.com (1:109/42)
+----------------------------------------------------------------------------+
From: @tin.it 12-Nov-99 07:55:10
To: All 13-Nov-99 05:13:20
Subj: Re: SYS_DLLS and superclassing native controls
From: @tin.it (Alessandro Cantatore)
In article <3828955d.97047@news.demon.co.uk>,
kh@no.spam.munot.demon.co.uk (Kevin) wrote:
>I list my DLL in SYS_DLLS->LoadEachProcess (or whatever it's called).
LoadPerProcess
>The DLL loads and executes its initialisation. WinQueryClassInfo gets
>TRUE for WC_ENTRYFIELD. WinRegisterClass for WC_ENTRYFIELD with
>CS_PUBLIC gets FALSE. But after re-booting, any window with an entry
This works here:
CLASSINFO ci;
WinQueryClassInfo(NULLHANDLE, WC_ENTRYFIELD, &ci);
WinRegisterClass(NULLHANDLE, WC_ENTRYFIELD, NewEntryFieldProcedure,
ci.flClassStyle,
ci.cbWindowData + 4);
(add extra 4 bytes in the window words and never use the the first
4 bytes to store class data since other programs may be using them
for their own data)
>field traps. This tends to indicate that my wndproc is being called,
>even though I got FALSE on the register. I wonder if the address
>returned by WinQueryClassInfo is valid in all the other processes.
how did you build the dll? I used SHARED INITGLOBAL...
besides that it is better to build it as a subsystem DLL rather
than initializing the C runtime since I guess you need to subclass
just a small part of the entryfield procedure
In any case I think the most correct thing to do is:
-1) create a new window class re-registering the WC_ENTRYFIELD:
WinRegisterClass(NULLHANDLE, "newENTRYFIELD", NewEntryFieldProcedure,
ci.flClassStyle & ~CS_PUBLIC,
^^^^^^^^^^^^^
-2) use some tool to automatically edit all the references to:
ENTRYFIELD ecc
into
CONTROL parameters, "newENTRYFIELD", window styles
it should be possible with the enhanced grep of the EPM
-3) re-build the program
--
bye
Alessandro Cantatore
email reply to: alexcant at: tin.it
http://acsoft.ghostbbs.cx
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: TIN (1:109/42)
+----------------------------------------------------------------------------+
From: dmhills@attglobal.net 13-Nov-99 22:32:06
To: All 13-Nov-99 10:28:22
Subj: Re: redirect stdio from program for rexx processing
From: dmhills@attglobal.net (Don Hills)
In article <382B5180.C72CB02E@dvart.com>,
bruno schwander <bschwand@dvart.com> wrote:
>I need to write a rexx script that will start an executable program and
>communicate with this program through its standard input/output.
Piping input to a program that is started from within the REXX program
is easy:
/***/
myprog = 'C:\PROGS\MYPROG.EXE'
mydata = 'This is the data to be fed to STDIN'
Address 'CMD ECHO' mydata '|' myprog
/* Piping the program's output to the REXX queue is also easy: */
Address 'CMD' myprog '| RXQUEUE'
Pull data
/* Combining the techniques: */
Address 'CMD ECHO' mydata '|' myprog '| RXQUEUE'
Pull data
--
Don Hills (dmhills at attglobaldotnet) Wellington, New Zealand
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: Global Network Services - Remote Access Mail & Ne
(1:109/42)
+----------------------------------------------------------------------------+
From: pfitz@ican.net 13-Nov-99 11:03:14
To: All 13-Nov-99 10:28:22
Subj: Re: Problems when handling WM_PAINT in a second thread
From: Peter Fitzsimons <pfitz@ican.net>
cbzh@my-deja.com wrote:
>
> In a graphics application I am passing all WM_PAINT messages on to a
> worker thread ("object window") for doing the real painting because it
You must call WinBegin/EndPaint() in the original thread, even if
painting occurs (slightly) later in the worker thread (the worker thread
has to query/maintain an HPS itself). Are you doing this? I've seen
other's caught by this trap.
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: @Home Network Canada (1:109/42)
+----------------------------------------------------------------------------+
From: pfitz@ican.net 13-Nov-99 11:04:14
To: All 13-Nov-99 10:28:22
Subj: WHAT IS fto.de AND WHY IS IT RE-POSTING EVERYTHING!?
From: Peter Fitzsimons <pfitz@ican.net>
subject says it all.
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: @Home Network Canada (1:109/42)
+----------------------------------------------------------------------------+
From: rsteiner@visi.com 14-Nov-99 04:01:02
To: All 13-Nov-99 10:28:22
Subj: Re: Real Modem
From: rsteiner@visi.com (Richard Steiner)
Here in comp.os.os2.setup.misc, Don McLeod <zachmcleod@earthlink.net>
spake unto us, saying:
>I have a 3Com/USR Internet Voice/Fax modem. I can't get the thing to run
>under OS/2 Warp 4. It's NOT a WINMODEM. I can get it to run fine under
>DOS, or Linux, but not Warp 4. Does anyone have any suggestions?
Which COM port and IRQ is it configured for? Is it an internal or an
external modem?
--
-Rich Steiner >>>---> rsteiner@visi.com >>>---> Bloomington, MN
OS/2 + BeOS + Linux + Solaris + Win95 + WinNT4 + FreeBSD + DOS
+ VMWare + Fusion + vMac + Executor = PC Hobbyist Heaven! :-)
...and then she pressed the ctrl key... :-)
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: FIELDATA FORTRAN ENTHUSIASTS CLUB (1:109/42)
+----------------------------------------------------------------------------+
From: kh@no.spam.munot.demon.co.uk 13-Nov-99 16:17:09
To: All 13-Nov-99 12:46:02
Subj: Re: SYS_DLLS and superclassing native controls
From: kh@no.spam.munot.demon.co.uk (Kevin)
Hmm. It's created/destroyed with WinCreateCursor and WinDestroyCursor.
You can get the size, position, attributes and owning hwnd into a
CURSORINFO structure with WinQueryCursorInfo. I think it's called a
cursor.
On 11 Nov 1999 21:51:31 GMT, uno@40th.com (uno@40th.com) wrote:
>
>Kevin? (kh@no.spam.munot.demon.co.uk?) wrote (Thu, 11 Nov 1999 21:32:47 GMT):
>>You're thinking of pointers. I want to replace the cursors - those
>>blinking lines you see in entry fields. These are drawn dynamically by
>
>You're thinking of the caret. The mouse cursor is a cursor. The text
>cursor is a caret.
>
> '`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'
> Corne1 Huth - http://40th.com/
> Bullet database engines/servers 3.1 Win32-WinCE-OS2-Linux+
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: Organization (1:109/42)
+----------------------------------------------------------------------------+
From: jonesy@rmi.nospam.net 13-Nov-99 16:59:23
To: All 13-Nov-99 12:46:02
Subj: Re: WHAT IS fto.de AND WHY IS IT RE-POSTING EVERYTHING!?
From: Jonesy <jonesy@rmi.nospam.net>
Peter Fitzsimons <pfitz@ican.net> wrote:
> subject says it all.
:: Sat, 13 Nov 1999 04:04:28 comp.os.os2.programmer.misc Thread 5 of 5
:: Lines 1 WHAT IS fto.de AND WHY IS IT RE-POSTING EV No responses
:: Peter Fitzsimons <pfitz@ican.net> at @Home Network Canada
::
:: Newsgroups: comp.os.os2.programmer.misc
::
:: subject says it all.
Maybe in *your* universe...
Jonesy
--
48 days to go until the Year 2000 -- So what!
414 days to go until the 3rd Millennium of the C.E.
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: RMI.net (1:109/42)
+----------------------------------------------------------------------------+
From: hunters@sapphire.indstate.edu 15-Nov-99 18:00:17
To: All 15-Nov-99 14:46:25
Subj: >64MB Memory: A fix from our favorite OS/2 programmer...
From: hunters@sapphire.indstate.edu
Daniela Engert has once again come through in spades for the OS/2 user...
Behold!
ftp://hobbes.nmsu.edu/pub/incoming/patchldr.zip
(to be moved to:
ftp://hobbbes.nmsu.edu/pub/os2/system/patches/patchldr.zip)
:)
--
-Steven Hunter *OS/2 Warp 4 * |But on the other hand...|
hunters@sapphire.indstate.edu *AMD K6-2 400* |There's 5 more fingers. |
Sent via Deja.com http://www.deja.com/
Before you buy.
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: Deja.com - Before you buy. (1:109/42)
+----------------------------------------------------------------------------+
From: zachmcleod@earthlink.net 15-Nov-99 12:43:11
To: All 15-Nov-99 20:08:23
Subj: Re: Real Modem
From: Zachariah McLeod <zachmcleod@earthlink.net>
No, I can't
Richard Steiner wrote:
> Here in comp.os.os2.setup.misc, Zachariah McLeod <zachmcleod@earthlink.net>
> spake unto us, saying:
>
> >According to Windows 98 it's on COM 1, the interrupt is 4, and the address
> >is 3F8. Is the DMA than interrupt or the address?
>
> A modem shouldn't use a DMA. The other information (IRQ and base addr)
> sure looks standard to me for something using COM1.
>
> Can you see the modem using the DOS software in a VDM?
>
> --
> -Rich Steiner >>>---> rsteiner@visi.com >>>---> Bloomington, MN
> OS/2 + BeOS + Linux + Solaris + Win95 + WinNT4 + FreeBSD + DOS
> + VMWare + Fusion + vMac + Executor = PC Hobbyist Heaven! :-)
> Two wrongs don't make a right -- but three LEFTS do!!
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: EarthLink Network, Inc. (1:109/42)
+----------------------------------------------------------------------------+
From: dcasey@ibm.net 15-Nov-99 18:26:02
To: All 16-Nov-99 05:11:16
Subj: Re: >64MB Memory: A fix from our favorite OS/2 programmer...
From: dcasey@ibm.net (Dan Casey)
Well ... she did say, yesterday, that it seemed to be "ready for
public release" ... I guess she wasn't kidding :-))
In article <80phnv$c9n$1@nnrp1.deja.com>, hunters@sapphire.indstate.edu wrote:
>Daniela Engert has once again come through in spades for the OS/2 user...
>
>Behold!
>ftp://hobbes.nmsu.edu/pub/incoming/patchldr.zip
>(to be moved to:
>ftp://hobbbes.nmsu.edu/pub/os2/system/patches/patchldr.zip)
>
>:)
>
>--
>-Steven Hunter *OS/2 Warp 4 * |But on the other hand...|
>hunters@sapphire.indstate.edu *AMD K6-2 400* |There's 5 more fingers. |
>
>
>Sent via Deja.com http://www.deja.com/
>Before you buy.
--
**************************************************************
* Dan Casey *
* President *
* V.O.I.C.E. (Virtual OS/2 International Consumer Education *
* http://www.os2voice.org *
* Abraxas on IRC *
* http://members.iquest.net/~dcasey *
* Charter Associate member, Team SETI *
* Warpstock 99 in Atlanta http://www.warpstock.org *
**************************************************************
* E-Mail (subject: Req. PGP Key) for Public Key *
**************************************************************
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: V.O.I.C.E., Indianapolis, IN (1:109/42)
+----------------------------------------------------------------------------+
From: stefanj@gte.net 16-Nov-99 00:54:11
To: All 16-Nov-99 05:11:16
Subj: Joystick Device Driver Contest Update #2
From: stefanj@gte.net (Jason Stefanovich)
We have received a new donation pledge of $10 from Zoltan Bokeny for
the MAMERun Joystick Device Driver Contest.
What is it?
Write your own joystick device driver for OS/2 and you could win a
Gravis Gamepad Pro + $30 and earn the respect and gratitude of OS/2
gamers around the world! With the many new games available and the
advance of game controllers there arises a need for a better
joystick device driver than IBM's advanced joystick device driver.
Support for new controller features, such as 8+ buttons, will greatly
enhance the OS/2 gaming experience for gamers as well as
developers.
For rules and other information check out:
http://home1.gte.net/stefanj/contest.htm
I am looking for additional sponsors for this contest. If you would
like to contribute please go to:
http://home1.gte.net/stefanj/sponsor.htm
Any questions can be sent to me at Stefanj@gte.net
--- WtrGate+ v0.93.p7 sn 165
* Origin: Origin Line 1 Goes Here (1:109/42)
+----------------------------------------------------------------------------+
From: h.h.ginnerup@image.dk 15-Nov-99 23:53:24
To: All 16-Nov-99 05:11:16
Subj: pcAnywhere on Warp 3?
From: h.h.ginnerup@image.dk (Hans H. Ginnerup)
Does anybody have any expierience in howto run pcAnywhere on Warp 3.0.
Symantec faq say that ver. 2.0 might work but not supported. I don't
know anything about Os2, so any hints or suggestions how to install it
would be most welcome.
Thanks, Hans
--- WtrGate+ v0.93.p7 sn 165
* Origin: Origin Line 1 Goes Here (1:109/42)
+----------------------------------------------------------------------------+
From: weigel+@pitt.edu 16-Nov-99 11:29:05
To: All 16-Nov-99 10:39:07
Subj: Re: SOMobjects Toolkit Availability?
From: weigel+@pitt.edu (Matthew C Weigel)
Martin Schaff÷ner <martin.schaffoener@student.uni-magdeburg.de> wrote:
>On Thu, 11 Nov 1999 19:45:09, "andrew g" <awremovethismg@yesic.com>
>wrote:
>
>> If you know where on IBM I can find the SOMobjects toolkit, please let me
>> know.
>>
>You can't anymore. The 2.1 version is included with os/2 toolkits,
>and the 3.0 version, which is corba 2.0 compliant and which never
>officially got released, is no more available for download.
Oh? It *looks* available, although since I've already downloaded it I
didn't try again:
http://www.software.ibm.com/ad/som/som30tk.html
--
Matthew Weigel Programmer/Sysadmin
weigel+@pitt.edu Operating Systems Advocate
http://www.pitt.edu/~weigel
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: University of Pittsburgh (1:109/42)
+----------------------------------------------------------------------------+
From: niclas.lindstrom@edt.ericsson.se 16-Nov-99 21:55:11
To: All 16-Nov-99 20:09:24
Subj: Changing fontsize in OS/2 Window from rexx?
From: Niclas =?iso-8859-1?Q?Lindstr=F6m?= <niclas.lindstrom@edt.ericsson.se>
How do I change the current font size for an OS/2 VIO Window from within
a Rexx program..??
Niclas Lindström
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: Ericsson IT Services (1:109/42)
+----------------------------------------------------------------------------+
From: steve53_remove_this@earthlink.net 16-Nov-99 14:13:22
To: All 16-Nov-99 20:09:24
Subj: Re: pcAnywhere on Warp 3?
From: steve53_remove_this@earthlink.net
In <38309b08.140140127@news.image.dk>, on 11/15/99
at 11:53 PM, h.h.ginnerup@image.dk (Hans H. Ginnerup) said:
>Does anybody have any expierience in howto run pcAnywhere on Warp 3.0.
>Symantec faq say that ver. 2.0 might work but not supported. I don't know
>anything about Os2, so any hints or suggestions how to install it would
>be most welcome.
Install v2.0 it in a full screen WinOS/2 session. Run it in a full screen
session. It tends to hang on startup, but once started seems to be pretty
stable.
HTH,
Steven
--
-------------------------------------------------------------------
Steven Levine <steve53removethis@earthlink.net> MR2/ICE 1.77 #10183
Warp4/FP11
-------------------------------------------------------------------
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: EarthLink Network, Inc. (1:109/42)
+----------------------------------------------------------------------------+
From: alyork@ibm.net 16-Nov-99 16:09:22
To: All 16-Nov-99 21:31:09
Subj: IBM C Compiler Consultant Required
From: Al York <alyork@ibm.net>
We need a someone who can port a C++ program from Borland 2.0 compiler
to the IBM C Compiler.
Thanks - Al York
alan_york@ddp.ca
--- WtrGate+ v0.93.p7 sn 165
* Origin: Origin Line 1 Goes Here (1:109/42)
+----------------------------------------------------------------------------+
From: bogus@bogusdomain.com 16-Nov-99 16:22:26
To: All 16-Nov-99 21:31:09
Subj: UDP socket broadcast (sendto) won't work on WSeB
From: Robert Basler <bogus@bogusdomain.com>
I'm working on a UDP application that broadcasts on your local TCP/IP
lan to find any existing servers. This code works if the client is on
Warp 4 and the server is on either Warp 4 or WSeB, but if the client is
on WSeB, I get a TCP/IP error 10065 (SOCEHOSTUNREACH) when the client
attempts the sendto() call. If I am connected to the internet through
the dialup, the sendto call works (but of course doesn't find the server
because the server is on the local LAN, not on the internet.)
The WSeB box can ping all the boxes on the LAN and vice-versa.
I had a look at the toolkit for TCPIP 4.21 and it has a slight change in
the sockaddr_in structure, but implementing that change didn't make any
difference.
Here's the code (prettified a bit). If you have any suggestions, please
email aurorasw at direct period ca which is my real email address.
Thanks.
int s, tries, found;
char buf[256], buf2[256];
int nonblocking, errorcode, broadcast;
struct sockaddr_in server, client;
tries=5;
found=0;
while ((tries>0) && (found==0)) {
/* Create a datagram socket in the internet domain and use the
default protocol (UDP). */
if ((s = socket(PF_INET, SOCK_DGRAM, 0)) < 0) {
// Print socket error
return(-1);
}
/* Bind the UDP socket to the server address. */
client.sin_family = AF_INET; /* Server is in Internet
Domain */
client.sin_port = 0; /* Any port in a storm */
client.sin_addr.s_addr = INADDR_ANY; /* Server's Internet
Address */
if (bind(s, (struct sockaddr *)&client, sizeof(client)) < 0) {
// Print socket error
return(-1);
}
/* Set up the server name */
server.sin_family = AF_INET; /* Internet
Domain */
server.sin_port = htons(SERVERBROADCAST_UDP); /* Server
Port */
server.sin_addr.s_addr = INADDR_BROADCAST; /* broadcast to
all servers */
// Make up our message, the client name and version
strcpy(buf,"MESSAGETOBROADCAST");
// Set socket to allow broadcasts
broadcast=1;
if
(setsockopt(s,SOL_SOCKET,SO_BROADCAST,(char*)&broadcast,sizeof(broadcast))!=0)
{
// Print socket error
return(-3);
}
/* Broadcast the message in buf to the server */
if (sendto(s, buf, (strlen(buf)+1), 0, (struct sockaddr *)&server,
sizeof(server)) < 0) {
// Print socket error
return(-2);
}
// Set socket to non-blocking mode
nonblocking=1;
if (ioctl(s,FIONBIO,(caddr_t)&nonblocking,sizeof(nonblocking))!=0)
{
// Print socket error
return(-3);
}
// Wait for response for 2 seconds.
int32 timeout=TimeGet();
while ((TimeElapsed(timeout)<2000) && (found<maxserverstofind)) {
/* Receive a message on socket udpsock in buf of maximum size
32 from a client. */
int server_address_size = sizeof(server);
if (recvfrom(s,buf,sizeof(buf),0,(struct sockaddr *)
&server,&server_address_size) <0) {
// Additional processing, and socket close.
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: via Internet Direct - http://www.mydirect.com/ (1:109/42)
+----------------------------------------------------------------------------+
From: cotroneo@stny.rr.com 17-Nov-99 00:40:08
To: All 16-Nov-99 21:31:09
Subj: shared memory allocation
From: cotroneo@stny.rr.com
I am trying to figure out how to use shared memory allocation
to access data from two different processes.
My visualage c++ gives example below which gives an
error in this line:
strcpy(pvShrObject, "Write your shared application data here.");
with the following compiler output:
share2.cpp(25:12) : error EDC3055: "PVOID" cannot be converted to "char*".
share2.cpp(25:12) : informational EDC3306: The previous message applies to
argum
ent 1 of function "strcpy(char*,const char*)".
So, how do you actually put string data into the shared memory area?
Keith
This example allocates named shared memory as Read/Write, and commits it
during allocation. It also
writes to it, and show how other processes can access it.
#define INCL_DOSMEMMGR /* Include DOS Memory Management APIs */
#define INCL_DOSERRORS /* DOS error values */
#include <os2.h>
#include <stdio.h>
#include <string.h>
int main (VOID)
{
PVOID pvShrObject = NULL; /* Pointer to shared memory object */
PSZ pszMemName = "\\SHAREMEM\\MYTOOL\\APPLICAT.DAT"; /* Object name */
PVOID pvAltObject = NULL; /* Alternate pointer to shared memory */
APIRET rc = NO_ERROR; /* Return code */
ULONG ulObjSize = 1024; /* Size (system rounds to 4096 - page bdy) */
rc = DosAllocSharedMem(&pvShrObject, /* Pointer to object pointer */
pszMemName, /* Name for shared memory */
ulObjSize, /* Desired size of object */
PAG_COMMIT | /* Commit memory */
PAG_WRITE ); /* Allocate memory as read/write */
if (rc != NO_ERROR) {
printf("DosAllocSharedMem error: return code = %u\n",rc);
return 1;
}
strcpy(pvShrObject, "Write your shared application data here.");
/* Get the address of the shared memory and reference it that way.
(Done for illustrative purposes only, this is how another process
would go about accessing the named shared memory.) */
rc = DosGetNamedSharedMem(&pvAltObject, /* Pointer to pointer of object
*/
pszMemName, /* Name of shared memory
*/
PAG_READ); /* Want read-only access
*/
if (rc != NO_ERROR) {
printf("DosGetNamedSharedMem error: return code = %u\n",rc);
return 1;
}
printf("Shared data read was \"%s\"\n",pvAltObject);
rc = DosFreeMem(pvShrObject);
if (rc != NO_ERROR) {
printf("DosFreeMem error: return code = %u\n",rc);
return 1;
}
return NO_ERROR;
}
Keith Cotroneo
cotroneo@stny.rr.com
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: Time Warner Road Runner - Binghamton NY (1:109/42)
+----------------------------------------------------------------------------+
From: mikus@bga.com 16-Nov-99 06:49:20
To: All 17-Nov-99 00:49:20
Subj: Re: >64MB Memory: A fix from our favorite OS/2 programmer...
From: mikus@bga.com (Mikus Grinbergs)
> Daniela Engert has once again come through in spades for the OS/2 user...
>
> Behold!
> ftp://hobbes.nmsu.edu/pub/incoming/patchldr.zip
> (to be moved to:
> ftp://hobbbes.nmsu.edu/pub/os2/system/patches/patchldr.zip)
Thanks, Daniela
And this points out the "drawbacks" when the manufacturer of an
operating system no longer provides "instant service" unless the
customer signs up for an expensive maintenance plan.
What happened here was that BIOSes have changed and no longer
provide a certain capability that they *did* provide when Warp
first came out. Without Daniela Engert, who knows __when__
IBM would have provided a fix for this incompatibility.
mikus
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: Gone Walkabout (1:109/42)
+----------------------------------------------------------------------------+
From: komh@hitel.net 17-Nov-99 00:24:09
To: All 17-Nov-99 00:49:20
Subj: Changing font size on PM
From: KO Myung-Hun <komh@hitel.net>
Hi.
I tried to change size of font on PM. the function that I used is
GpiCreateLogFont().
The returned value is correct( FONT_MATCH ). But actually, printed
font was not changed.
Below is a part of source.
---------
HPS hps;
FONTMETRICS fm;
FATTRS fat;
GpiQueryFontMetrics( hps, sizeof( fm ), &fm );
fat.usRecordLength = sizeof(FATTRS);
fat.fsSelection = 0;
fat.lMatch = 0L;
fat.idRegistry = 0;
fat.usCodePage = 0;
fat.lMaxBaselineExt = 8L;
fat.lAveCharWidth = 8L;
fat.fsType = 0;
fat.fsFontUse = FATTR_FONTUSE_NOMIX;
strcpy(fat.szFacename , fm.szFacename);
GpiCreateLogFont(hps,
NULL,
1L,
&fat);
GpiSetCharSet(hps, 1L);
GpiCharStringAt(hps, &ptl, 5L, "Hello");
---------
At last line, not only GpiCharStringAt but WinDrawText alos are not
affected. And that is in WM_PAINT message processing.
Bye.
- KO Myung-Hun.
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: Korea Telecom HiTEL (1:109/42)
+----------------------------------------------------------------------------+
From: mamodeo@stny.rr.com 16-Nov-99 23:38:13
To: All 17-Nov-99 03:37:15
Subj: Re: shared memory allocation
From: Marty <mamodeo@stny.rr.com>
cotroneo@stny.rr.com wrote:
>
> I am trying to figure out how to use shared memory allocation
> to access data from two different processes.
>
> My visualage c++ gives example below which gives an
> error in this line:
>
> strcpy(pvShrObject, "Write your shared application data here.");
>
> with the following compiler output:
>
> share2.cpp(25:12) : error EDC3055: "PVOID" cannot be converted to "char*".
> share2.cpp(25:12) : informational EDC3306: The previous message applies to
argum
> ent 1 of function "strcpy(char*,const char*)".
>
> So, how do you actually put string data into the shared memory area?
Just use a simple type caste:
strcpy((char *)pvShrObject, "Write your shared application data here.");
or if you prefer:
strcpy((PSZ)pvShrObject, "Write your shared application data here.");
or you can declare something of the appropriate type:
PSZ mychardata;
and assign it to the shared memory location:
mychardata = (PSZ)pvShrObject;
strcpy(mychardata, "Write your shared application data here.");
The latter method is preferable when working with structs because it is much
less messy to look at.
Everything else looked ok at a quick glance.
- Marty
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: Time Warner Road Runner - Binghamton NY (1:109/42)
+----------------------------------------------------------------------------+
From: mcbrides@erols.com 16-Nov-99 19:30:07
To: All 17-Nov-99 03:37:15
Subj: Re: >64MB Memory: A fix from our favorite OS/2 programmer...
From: mcbrides@erols.com (Jerry McBride)
In article <kLVM4kW2vH3T092yn@daina.bga.com>,
mikus@bga.com (Mikus Grinbergs) wrote:
>> Daniela Engert has once again come through in spades for the OS/2 user...
>>
>> Behold!
>> ftp://hobbes.nmsu.edu/pub/incoming/patchldr.zip
>> (to be moved to:
>> ftp://hobbbes.nmsu.edu/pub/os2/system/patches/patchldr.zip)
>
>Thanks, Daniela
>
>And this points out the "drawbacks" when the manufacturer of an
>operating system no longer provides "instant service" unless the
>customer signs up for an expensive maintenance plan.
>
>What happened here was that BIOSes have changed and no longer
>provide a certain capability that they *did* provide when Warp
>first came out. Without Daniela Engert, who knows __when__
>IBM would have provided a fix for this incompatibility.
>
Geee... I wonder if an internal MicroSoft memo will turn up, detailing how
to reail-road OS/2 via a BIOS tweak...
:.)
--
*******************************************************************************
* Sometimes, the BEST things in life really ARE free...
*
* Get a FREE copy of NetRexx 1.151 for your next java project at:
*
*
*
* GET IT NOW! WHILE IT'S STILL FREE!
*
*
*
* http://www2.hursley.ibm.com/netrexx
*
*******************************************************************************
/----------------------------------------\
| From the desktop of: Jerome D. McBride |
| mcbrides@erols.com |
\----------------------------------------/
--
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: TEAM-NETREXX (1:109/42)
+----------------------------------------------------------------------------+
From: stefanj@gte.net 17-Nov-99 07:24:08
To: All 17-Nov-99 10:26:29
Subj: Joystick Device Driver Contest..Authors Please Read!!!!
From: stefanj@gte.net (Jason Stefanovich)
I HAVE RECIEVED AN OFFER FROM A COMPANY FOR A
DONATION OF AN AMMOUNT OVER $100. THIS COMPANY WOULD LIKE TO KNOW IF
THERE ARE ANY PEOPLE WORKING ON THIS PROJECT BEFORE THEY PUT THEIR
MONEY DOWN. IF YOU ARE WORKING ON THIS PROJECT PLEASE CONTACT ME AT
STEFANJ@GTE.NET
The MAMERun Joystick Device Driver Contest:
http://home1.gte.net/stefanj/contest.htm
--- WtrGate+ v0.93.p7 sn 165
* Origin: Origin Line 1 Goes Here (1:109/42)
+----------------------------------------------------------------------------+
From: cannon@sonic.net 16-Nov-99 23:57:07
To: All 17-Nov-99 10:26:29
Subj: Re: SOMobjects Toolkit Availability?
From: Andrew Cannon <cannon@sonic.net>
"Martin Schafföner" wrote:
> On Thu, 11 Nov 1999 19:45:09, "andrew g" <awremovethismg@yesic.com>
> wrote:
>
> > If you know where on IBM I can find the SOMobjects toolkit, please let me
> > know.
> >
> You can't anymore. The 2.1 version is included with os/2 toolkits,
> and the 3.0 version, which is corba 2.0 compliant and which never
> officially got released, is no more available for download. I have it
> here sitting on a CD, but I don't know what it's good for. IBM
> stopped supporting SOM in june, 1997. Why on earth they did, I guess
> only god knows... I guess, distributed objects did not fit their idea
> of "network computing"...
OpenDoc killed SOM 3.0, since they somehow felt that OpenDoc was more
important that is why Warp 4 came with som2.X Later, they leveraged som 3.0
into the ComponentBroker. For a while, there were references to SOM 4.0 in
the ComponentBroker, but eventually that disappeared.
If you're interested in distributed objects on OS/2 FNORB works well and is
very easy to program.
--
Andy Cannon http://www.sonic.net/~cannon
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: Sonic,Santa Rosa CA,http://www.sonic.net (1:109/42)
+----------------------------------------------------------------------------+
From: asmirnov@sendmail.mid.ru 17-Nov-99 13:16:09
To: All 17-Nov-99 10:26:29
Subj: How can I convert 32bit linear pointer to 16bit Seg:Offs one to pass to
From: Alexey Smirnov <asmirnov@sendmail.mid.ru>
Hi!
I am an russian programmer who wrote a SysInfo/2 PM utility
(ftp://hobbes.nmsu.edu/pub/os2/util/system/sysinfo0038.zip).
Now I want to solve a problem with calling any Dos16 functions from
my PM programm. The matter is that I use SpeedSoft Siby to craete a
SysInfo/2, so I cant call Dos16 functions natively (without a pointer
conversion). That is why I ask you to help me wrote a function that will
do such conversion. May be, I can find that function (or, macro) in
Watcom CPP ?
Best regards, Alexey Smirnov.
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: Combellga (1:109/42)
+----------------------------------------------------------------------------+
From: lsunley@mb.sympatico.ca 17-Nov-99 15:35:03
To: All 17-Nov-99 14:38:17
Subj: Re: How can I convert 32bit linear pointer to 16bit Seg:Offs one to pas
From: lsunley@mb.sympatico.ca (Lorne Sunley)
On Wed, 17 Nov 1999 10:16:18, Alexey Smirnov
<asmirnov@sendmail.mid.ru> wrote:
> Hi!
> I am an russian programmer who wrote a SysInfo/2 PM utility
> (ftp://hobbes.nmsu.edu/pub/os2/util/system/sysinfo0038.zip).
> Now I want to solve a problem with calling any Dos16 functions from
> my PM programm. The matter is that I use SpeedSoft Siby to craete a
> SysInfo/2, so I cant call Dos16 functions natively (without a pointer
> conversion). That is why I ask you to help me wrote a function that will
> do such conversion. May be, I can find that function (or, macro) in
> Watcom CPP ?
>
There are a number of 32 to 16 bit address conversion
functions in the "devhelp" group.
You may have to download the device driver development
kit from http://service.software.ibm.com/ddk/ to get the
headers that you need.
Lorne Sunley
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: MBnet Networking Inc. (1:109/42)
+----------------------------------------------------------------------------+
From: martin.schaffoener@student.uni-m... 17-Nov-99 19:24:01
To: All 17-Nov-99 16:33:03
Subj: Re: SOMobjects Toolkit Availability?
Message sender: martin.schaffoener@student.uni-magdeburg.de
From: martin.schaffoener@student.uni-magdeburg.de (Martin Schafföner)
On Tue, 16 Nov 1999 11:29:11, weigel+@pitt.edu (Matthew C Weigel)
wrote:
> Martin Schafföner <martin.schaffoener@student.uni-magdeburg.de> wrote:
> >On Thu, 11 Nov 1999 19:45:09, "andrew g" <awremovethismg@yesic.com>
> >wrote:
> >
> >> If you know where on IBM I can find the SOMobjects toolkit, please let me
> >> know.
> >>
> >You can't anymore. The 2.1 version is included with os/2 toolkits,
> >and the 3.0 version, which is corba 2.0 compliant and which never
> >officially got released, is no more available for download.
>
> Oh? It *looks* available, although since I've already downloaded it I
> didn't try again:
>
Well, my fault. When I downloaded it, I found the page by searching
the download category, which did not work last week or so. That's why
I concluded it wouldn't be available anymore, which turns out to be
wrong.
Martin Schafföner
Suzuki GS650G Katana
OS/2 Warp 4 with FixPak 11
There are currently 37 processes
with 145 threads active.
This machine's uptime 0h 31min 39sec.
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: Otto-von-Guericke-Universitaet Magdeburg (1:109/42)
+----------------------------------------------------------------------------+
From: lyn@zolotek.REMOVE-SPAM.com 17-Nov-99 18:55:01
To: All 17-Nov-99 16:33:03
Subj: Perl @INC
From: lyn@zolotek.REMOVE-SPAM.com
Hallo - this may well be considered a dumb question, but I really_need
the answer and so far it has totally escaped me. As Apache 1.3.9 no
longer honours the 'redirect' setting in config.sys for f:/perllib
..;e:\usr\bin\perllib ... , I need to add e:/usr/bin/perllib/lib into
@INC manually. I have RTFM but can't see how to apply the brief notes
there. Instead, I've edited every file (exe, dll, .packlist, etc) in
the perl package, re-zippped and then re-installed it but still get
the same error message that @INC contains f:/perllib .... This
f:/perllib is now *nowhere* to be found in the perl tree! (I've also
tried to build a new perl 5.00562, but this fails part way through
make - probably too many libs missing: while trying to fix this emx
complains about missing separators in the makefiles - grrr.). I've
spent 3 days on this problem now and I'm still no further ahead than
day one - and these perl cgi's are still failing.
Does anyone know:
a/ the steps needed to add new entries to @INC?, or
b/ how to change this entry before re-installing?
(PS. This problem only arises if Apache is asked for a cgi which
includes a 'use' - on a simple cgi like formmail.cgi there's no
problem)
Many thanks in advance
Lyn
--- WtrGate+ v0.93.p7 sn 165
* Origin: Origin Line 1 Goes Here (1:109/42)
+----------------------------------------------------------------------------+
From: seg@NOSPAM-us.ibm.com 17-Nov-99 16:29:10
To: All 18-Nov-99 21:42:12
Subj: Re: How can I convert 32bit linear pointer to 16bit Seg:Offs one to pas
From: "Scott E. Garfinkle" <seg@NOSPAM-us.ibm.com>
On Wed, 17 Nov 1999 15:35:06 GMT, Lorne Sunley wrote:
>There are a number of 32 to 16 bit address conversion
>functions in the "devhelp" group.
Yes. Use them! Also, if you're programming for Aurora (or Warp 4 FP13+) you
can use the KEE functions, too. See Holger Veit's web page. DON'T just
assume that you can do some "quick and dirty" translation from 16:16<->32 bit
addresses, since this fails with packed code selectors.
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: NCSD OS/2 Service (1:109/42)
+----------------------------------------------------------------------------+
From: seg@NOSPAM-us.ibm.com 17-Nov-99 16:37:08
To: All 18-Nov-99 21:42:12
Subj: feature to allow association of file handles with file names, etc.
From: "Scott E. Garfinkle" <seg@NOSPAM-us.ibm.com>
This subject came up some time ago, but I was recently moved to do something
about it. OK, so as af Aurora Fixpack 1, Warp 4 Fixpack 13, and Warp 3 FP43
this will be possible. What you'll do is call DosQuerySysState(...QS_FILE).
You get a system-wide list of MFTs with their associated SFTs. Each SFT has
an SFN (unique for most kinds of handles). That's there today. What's also
there today is that for each process, you get back a list of SFNs open in
that process. The change is that from now on, I'll leave in closed handles
(handle # -1), which were formerly compressed away. Thus, the first entry in
a process' file handle list is handle 0, next is handle 1.... The cFN field
will reflect the size of this table, rather than the JFN size, as it used to
do. I hope this helps someone.
-scott
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: NCSD OS/2 Service (1:109/42)
+----------------------------------------------------------------------------+
From: pfitz@ican.net 17-Nov-99 23:55:25
To: All 18-Nov-99 21:42:12
Subj: Re: How can I convert 32bit linear pointer to 16bit Seg:Offs one to pas
From: Peter Fitzsimons <pfitz@ican.net>
Alexey Smirnov wrote:
>
> Hi!
> I am an russian programmer who wrote a SysInfo/2 PM utility
> (ftp://hobbes.nmsu.edu/pub/os2/util/system/sysinfo0038.zip).
> Now I want to solve a problem with calling any Dos16 functions from
> my PM programm. The matter is that I use SpeedSoft Siby to craete a
> SysInfo/2, so I cant call Dos16 functions natively (without a pointer
> conversion). That is why I ask you to help me wrote a function that will
> do such conversion. May be, I can find that function (or, macro) in
> Watcom CPP ?
>
Watcom (with a few bugs, which version are you using?) will do the
translations automatically if you prototype the 16 bit functions
properly (ie: with _Far16).
Can you give a code example of something that is failing?
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: @Home Network Canada (1:109/42)
+----------------------------------------------------------------------------+
From: gj@NOSPAM.ucdavis.edu 17-Nov-99 15:41:14
To: All 18-Nov-99 21:42:12
Subj: Re: >64MB Memory: A fix from our favorite OS/2 programmer...
From: "G. J. Mattey" <gj@NOSPAM.ucdavis.edu>
This worked for me, ending my frustration of the past four months.
Kudos to Daniela.
G. J. Mattey
UC Davis Philosophy Department
hunters@sapphire.indstate.edu wrote:
> Daniela Engert has once again come through in spades for the OS/2 user...
>
> Behold!
> ftp://hobbes.nmsu.edu/pub/incoming/patchldr.zip
> (to be moved to:
> ftp://hobbbes.nmsu.edu/pub/os2/system/patches/patchldr.zip)
>
> :)
>
> --
> -Steven Hunter *OS/2 Warp 4 * |But on the other hand...|
> hunters@sapphire.indstate.edu *AMD K6-2 400* |There's 5 more fingers. |
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: UC Davis Philosophy Department (1:109/42)
+----------------------------------------------------------------------------+
From: cotroneo@stny.rr.com 17-Nov-99 23:27:02
To: All 18-Nov-99 21:42:12
Subj: Re: shared memory allocation
From: cotroneo@stny.rr.com
In <38323143.388D3D4B@stny.rr.com>, Marty <mamodeo@stny.rr.com> writes:
>cotroneo@stny.rr.com wrote:
>>
>> I am trying to figure out how to use shared memory allocation
>> to access data from two different processes.
>>
>> My visualage c++ gives example below which gives an
>> error in this line:
>>
>> strcpy(pvShrObject, "Write your shared application data here.");
>>
>> with the following compiler output:
>>
>> share2.cpp(25:12) : error EDC3055: "PVOID" cannot be converted to "char*".
>> share2.cpp(25:12) : informational EDC3306: The previous message applies to
argum
>> ent 1 of function "strcpy(char*,const char*)".
>>
>> So, how do you actually put string data into the shared memory area?
>
>Just use a simple type caste:
>strcpy((char *)pvShrObject, "Write your shared application data here.");
>
>or if you prefer:
>strcpy((PSZ)pvShrObject, "Write your shared application data here.");
>
>or you can declare something of the appropriate type:
>PSZ mychardata;
>
>and assign it to the shared memory location:
>mychardata = (PSZ)pvShrObject;
>strcpy(mychardata, "Write your shared application data here.");
>
>The latter method is preferable when working with structs because it is much
>less messy to look at.
>
>Everything else looked ok at a quick glance.
>
>- Marty
Great! Thanks for your help Marty.
Keith
Keith Cotroneo
cotroneo@stny.rr.com
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: Time Warner Road Runner - Binghamton NY (1:109/42)
+----------------------------------------------------------------------------+
From: ilya@math.ohio-state.edu 18-Nov-99 00:00:15
To: All 18-Nov-99 21:42:12
Subj: Re: feature to allow association of file handles with file names, etc.
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
[A complimentary Cc of this posting was sent to Scott E. Garfinkle
<seg@NOSPAM-us.ibm.com>],
who wrote in article <frthfvozpbz.fld2q51.pminews@ausnews>:
> This subject came up some time ago, but I was recently moved to do something
> about it. OK, so as af Aurora Fixpack 1, Warp 4 Fixpack 13, and Warp 3 FP43
> this will be possible.
Is it possible to find the fixpack level without calling external
programs and/or parsing some files?
Ilya
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: Department of Mathematics, The Ohio State Univers
(1:109/42)
+----------------------------------------------------------------------------+
From: gj@NOSPAM.ucdavis.edu 17-Nov-99 18:53:15
To: All 18-Nov-99 21:42:12
Subj: Re: >64MB Memory: A fix from our favorite OS/2 programmer...
From: "G. J. Mattey" <gj@NOSPAM.ucdavis.edu>
Jerry McBride wrote:
> In article <kLVM4kW2vH3T092yn@daina.bga.com>,
> mikus@bga.com (Mikus Grinbergs) wrote:
> >> Daniela Engert has once again come through in spades for the OS/2 user...
> >>
> >> Behold!
> >> ftp://hobbes.nmsu.edu/pub/incoming/patchldr.zip
> >> (to be moved to:
> >> ftp://hobbbes.nmsu.edu/pub/os2/system/patches/patchldr.zip)
> >
> >Thanks, Daniela
> >
> >And this points out the "drawbacks" when the manufacturer of an
> >operating system no longer provides "instant service" unless the
> >customer signs up for an expensive maintenance plan.
> >
> >What happened here was that BIOSes have changed and no longer
> >provide a certain capability that they *did* provide when Warp
> >first came out. Without Daniela Engert, who knows __when__
> >IBM would have provided a fix for this incompatibility.
> >
>
> Geee... I wonder if an internal MicroSoft memo will turn up, detailing how
> to reail-road OS/2 via a BIOS tweak...
>
> :.)
>
>
Hmm... The ACPI specifications were written by Intel, Microsoft and Toshiba,
beginning in 1996.
http://www.teleport.com/~acpi/
I guess li'l ole IBM didn't take much notice of it.
G. J. Mattey
UC Davis Philosophy Department
> --
>
>
*******************************************************************************
> * Sometimes, the BEST things in life really ARE free...
*
> * Get a FREE copy of NetRexx 1.151 for your next java project at:
*
> *
*
> * GET IT NOW! WHILE IT'S STILL FREE!
*
> *
*
> * http://www2.hursley.ibm.com/netrexx
*
>
*******************************************************************************
>
> /----------------------------------------\
> | From the desktop of: Jerome D. McBride |
> | mcbrides@erols.com |
> \----------------------------------------/
>
> --
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: UC Davis Philosophy Department (1:109/42)
+----------------------------------------------------------------------------+
From: swaugh1@attglobal.net 17-Nov-99 19:24:18
To: All 18-Nov-99 21:42:12
Subj: Re: Info: Java Media Framework 2.0 Beta 2
From: Scott <swaugh1@attglobal.net>
Thanks for the post Tim. The idea of being able to play quicktime on our
machines and watch the Win98 Comdex demo crash in the luxury of my home is
such
a nice thought....
Timothy Sipples wrote:
> Sun and IBM have released the Java Media Framework Version 2.0 Beta 2. It
> is available in a pure Java(TM) cross-platform version (compatible with OS/2
> Warp).
>
> Visit:
>
> http://java.sun.com/products/java-media/jmf
>
> for more information and/or to download.
>
> What's most interesting about this release is the file formats supported for
> playback, including:
>
> - Macromedia Flash 2
> - Apple Quicktime (with certain CODECs, such as Cinepak)
> - MP2 and MP3 Audio
> - many more
>
> In other words, using the Java Media Framework it should be relatively easy
> to create a "native" Flash plug-in for OS/2 Warp's Netscape Communicator.
>
> Has anybody tried this out yet?
>
> --
> Timothy Sipples
> IBM Network Computing Software
> Chicago, Illinois
> Web: http://www.satdirect.com/aviation
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: Global Network Services - Remote Access Mail & Ne
(1:109/42)
+----------------------------------------------------------------------------+
From: lsunley@mb.sympatico.ca 18-Nov-99 04:22:25
To: All 18-Nov-99 21:42:13
Subj: Re: Info: Java Media Framework 2.0 Beta 2
From: lsunley@mb.sympatico.ca (Lorne Sunley)
Well it took me a while to try it out but I finally downloaded it
today
and set it up.
After a bit of playing around with the classpath I was able to get
the JMFStudio applcation running. The command to run it was
java -classpath \jmf2.0beta\lib\jmf.jar;.;%classpath% JMFStudio
I downloaded a .MOV file from www.mtv.com and tried it out.
Video display was pretty good and the sound rendering was
also OK.
Now all I have to do is figure out what type of formats it supports
and how to convince Netscape 4.61 that it should use the code
to play multimedia files.....
This was on Warp Server for e-Business SMP, Java 1.1.8 with
the Swing Runtime and Toolkit installed.
Now if it would just play RealPlayer format video/audio files....
or it may I just don't know how....
Lorne Sunley
On Mon, 8 Nov 1999 00:43:36, Timothy Sipples
<tsipple@us.iNoSPAMbm.com> wrote:
> Sun and IBM have released the Java Media Framework Version 2.0 Beta 2. It
> is available in a pure Java(TM) cross-platform version (compatible with OS/2
> Warp).
>
> Visit:
>
> http://java.sun.com/products/java-media/jmf
>
> for more information and/or to download.
>
> What's most interesting about this release is the file formats supported for
> playback, including:
>
> - Macromedia Flash 2
> - Apple Quicktime (with certain CODECs, such as Cinepak)
> - MP2 and MP3 Audio
> - many more
>
> In other words, using the Java Media Framework it should be relatively easy
> to create a "native" Flash plug-in for OS/2 Warp's Netscape Communicator.
>
> Has anybody tried this out yet?
>
> --
> Timothy Sipples
> IBM Network Computing Software
> Chicago, Illinois
> Web: http://www.satdirect.com/aviation
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: MBnet Networking Inc. (1:109/42)
+----------------------------------------------------------------------------+
From: jostein.ullestad@NOSPAMvisma.no 18-Nov-99 14:31:04
To: All 18-Nov-99 23:54:08
Subj: Nanosaur, a Mac game with source code
From: Jostein Ullestad <jostein.ullestad@NOSPAMvisma.no>
Could it be ported to OS/2?
http://www.pangeasoft.net/nano/
http://www.pangeasoft.net/nano/nanosource.html
Jostein
--
Remove "NOSPAM" from my email address when replying
http://www.powerutilities.no/
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: Tele2 Norway AS Public Access (1:109/42)
+----------------------------------------------------------------------------+
From: seg@NOSPAM-us.ibm.com 18-Nov-99 08:54:21
To: All 18-Nov-99 23:54:08
Subj: Re: feature to allow association of file handles with file names, etc.
From: "Scott E. Garfinkle" <seg@NOSPAM-us.ibm.com>
On 18 Nov 1999 00:00:31 GMT, Ilya Zakharevich wrote:
>Is it possible to find the fixpack level without calling external
>programs and/or parsing some files?
No, not really, in general. For this purpose, I have some sample code that
will do the trick, though.
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: NCSD OS/2 Service (1:109/42)
+----------------------------------------------------------------------------+
From: stefanj@gte.net 18-Nov-99 18:02:09
To: All 18-Nov-99 23:54:09
Subj: Joystick Device Driver Contest Update #3
From: stefanj@gte.net (Jason Stefanovich)
We have received a new donation pledge from EDM/2,
one of their great EDM/2 CD's with an archive of all their
issues + some great dev. software
MAMERun Joystick Device Driver Contest.
What is it?
Write your own joystick device driver for OS/2 and you could win a
Gravis Gamepad Pro + $80 and earn the respect and gratitude of OS/2
gamers around the world! With the many new games available and the
advance of game controllers there arises a need for a better
joystick device driver than IBM's advanced joystick device driver.
Support for new controller features, such as 8+ buttons, will greatly
enhance the OS/2 gaming experience for gamers as well as
developers.
For rules and other information check out:
http://home1.gte.net/stefanj/contest.htm
I am looking for additional sponsors for this contest. If you would
like to contribute please go to:
http://home1.gte.net/stefanj/sponsor.htm
Any questions can be sent to me at Stefanj@gte.net
--- WtrGate+ v0.93.p7 sn 165
* Origin: Origin Line 1 Goes Here (1:109/42)
+----------------------------------------------------------------------------+
From: awmg@yesic.com 18-Nov-99 20:06:29
To: All 18-Nov-99 23:54:09
Subj: Re: Perl @INC
From: awmg@yesic.com (andrew g)
On Wed, 17 Nov 1999 18:55:02, lyn@zolotek.REMOVE-SPAM.com wrote about
@INC.
Ummm, did you try using -I commandline switch? Sorry if this is not
too helpful. Ilya hangs out here, and maybe he'll reply too.
--- WtrGate+ v0.93.p7 sn 165
* Origin: Origin Line 1 Goes Here (1:109/42)
+----------------------------------------------------------------------------+
From: mads@troest.NEVERMORE.dk 18-Nov-99 22:24:07
To: All 18-Nov-99 23:54:10
Subj: Re: Nanosaur, a Mac game with source code
From: mads@troest.NEVERMORE.dk (Mads Orbesen Troest)
On Thu, 18 Nov 1999 14:31:09, Jostein Ullestad
<jostein.ullestad@NOSPAMvisma.no> wrote:
> Could it be ported to OS/2?
Not unless you want to get sued, according to the license:
> YOU CANNOT ...port any of this code in any quantity, shape or form to
Windows/PC.
> Nano saur and the code are happily Mac-only and we want to keep it that way.
These were the incoherent ramblings of ...
... /\/\\ads Orbesen Troest <mads@troest.NEVERMORE.dk>
[http://www.sprog.auc.dk/~motr96]
(Please remove NEVERMORE from address when replying via email...)
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: SIRIUS Cybernetics (1:109/42)
+----------------------------------------------------------------------------+
From: dmcbride@no.tower.spam.to.org 19-Nov-99 02:38:08
To: All 18-Nov-99 23:54:10
Subj: Re: Perl @INC
From: "Darin McBride" <dmcbride@no.tower.spam.to.org>
On 17 Nov 1999 18:55:02 GMT, lyn@zolotek.REMOVE-SPAM.com wrote:
>Hallo - this may well be considered a dumb question, but I really_need
>the answer and so far it has totally escaped me. As Apache 1.3.9 no
>longer honours the 'redirect' setting in config.sys for f:/perllib
>...;e:\usr\bin\perllib ... , I need to add e:/usr/bin/perllib/lib into
>@INC manually. I have RTFM but can't see how to apply the brief notes
1. I run Apache 1.3.9 on OS/2, and don't have any such problem. I have the
following line in my config.sys:
set PERLLIB_PREFIX=f:/perllib/lib;D:/LANG/PERLLIB/LIB
Works just fine here. I also have the following in a command file in my
startup folder:
set emxopt=-h100
D:\TCPIP\HTTPD\APACHE_1.3.9\HTTPD.EXE -d D:\TCPIP\httpd
The first line allows 100 file handles - a problem in EMX, as far as I'm
concerned. I run virtual sites, each with independent logs. Like I said,
everything works fine as is.
2. I added another directory to allow me to use my own perl modules, and put
the following at the top of each CGI script:
===================================
extproc perl -w
BEGIN
{
unshift @INC, qw(d:/src/perl);
}
===================================
(I like whitespace. This can be done much more compactly if you want.)
This must be done before any 'use' or 'require' statements. If you can't
figure out the *real* problem, the above may be adapted for your use.
---
Disclaimer: unless explicitly mentioned otherwise, I do not speak
for the company I work for.
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: @Home Network Canada (1:109/42)
+----------------------------------------------------------------------------+
From: ilya@math.ohio-state.edu 19-Nov-99 08:56:08
To: All 19-Nov-99 05:24:20
Subj: SOMObject_somDispatch() not returning
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
I'm writing a Perl module for SOM access, and everything works as
designed, except error recovery. I make a call like this
rc = SOMObject_somDispatch(
obj, /* target for somDispatch */
ret, /* dispatched method result */
methId, /* the somId for meth */
start_val); /* target and args for _set_msg */
but if the obj does not implement a method for methId,
SOMObject_somDispatch() does not return. I get a message
SOMObject_somDispatch: Method was nonesuch.
Error: Current method not defined on the target object.
"somobj.c": 670: SOM Error - code = 2-006-9, severity = Fatal.
on the screen, and the process exits.
How to inform somDispatch that I actually want to check the return
value, and please to do terminate me? Btw, where is Environment for
oidl interfaces?
The object is of type 'Dog' from $TOOLKIT/SAMPLES/REXX/SOM/ANIMAL
which has
callstyle = oidl;
Ilya
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: Department of Mathematics, The Ohio State Univers
(1:109/42)
+----------------------------------------------------------------------------+
From: joealicia@webtv.net 19-Nov-99 03:04:12
To: All 19-Nov-99 10:23:02
Subj: IDE cd rom
From: joealicia@webtv.net (Joey McLaughlin)
I cant get os2 2.1 to load the drivers for my cd-rom. Could it be that
2.1 only supports scsi driven cd roms. I think it may need mscdex
loaded. If this is so should it mscdex be installed via dos or os2. And
is this possible to with a floppy without a lot of complex dos
commands.....i dont speak dos..but i do have the complete os2 2.1 spec.
edt. install package...anyone please help.
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: WebTV Subscriber (1:109/42)
+----------------------------------------------------------------------------+
From: pfitz@ican.net 19-Nov-99 11:19:29
To: All 19-Nov-99 10:23:02
Subj: Re: IDE cd rom
From: Peter Fitzsimons <pfitz@ican.net>
Joey McLaughlin wrote:
>
> I cant get os2 2.1 to load the drivers for my cd-rom. Could it be that
> 2.1 only supports scsi driven cd roms. I think it may need mscdex
> loaded. If this is so should it mscdex be installed via dos or os2. And
> is this possible to with a floppy without a lot of complex dos
> commands.....i dont speak dos..but i do have the complete os2 2.1 spec.
> edt. install package...anyone please help.
What type of IDE drive do you have? Is it ATAPI compliant?
Forget about mscdex, that will never work.
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: @Home Network Canada (1:109/42)
+----------------------------------------------------------------------------+
From: nospam@nospam.org 19-Nov-99 13:12:03
To: All 19-Nov-99 14:29:29
Subj: Re: IDE cd rom
From: nospam@nospam.org (andrew g)
On Fri, 19 Nov 1999 11:04:24, joealicia@webtv.net (Joey McLaughlin)
wrote:
> I cant get os2 2.1 to load the drivers for my cd-rom. Could it be that
> 2.1 only supports scsi driven cd roms.
My OS/2 2.1 setup didn't come with Sound Blaster CD-ROM drivers, I had
to get them.
ftp://hobbes.nmsu.edu/pub/os2/system/drivers/sound/sbcd2pan.zip
or
ftp://hobbes.nmsu.edu/pub/os2/system/drivers/sound/sbcd2.zip
Of course, you may not be using a Sound Blaster card or IDE card...
andrew
(followup to the coo.setup newsgroups)
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: Introits and Graduals (1:109/42)
+----------------------------------------------------------------------------+
From: hei@hatespam.norman.no 19-Nov-99 13:18:23
To: All 19-Nov-99 14:29:29
Subj: Attaching Semaphores to Pipes
From: hei@hatespam.norman.no (Harald Eilertsen)
Greetings
Does anybody know how to make use of semaphores attached to named
pipes, as in DosSetNPipeSem? I've tried simply waiting for the sem
with DosWaitEventSem, but the sem never got posted. I also wonder how
I can retreive the key I've sent in with DosSetNPipeSem, to determine
what pipe caused the sem to get posted. (That is if the sem ever is
posted.)
My scenario is that i use a named pipe for communication between two
processes. Ech process attach a sem to the pipe when it is
created/opened. I wish to use the sem to wait for data to be posted to
the pipe, and then use DosPeekNPipe for checking the header of the
received message. I wish to do it this way to be able to determine if
the receiving buffer is large enough to hold the message without
removing the message from the pipe.
Take Care!
--
Harald Eilertsen
Norman Data Defence Systems
http://www.norman.no/
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: Norman Data Defence Systems (1:109/42)
+----------------------------------------------------------------------------+
From: lsunley@mb.sympatico.ca 19-Nov-99 15:15:24
To: All 19-Nov-99 14:29:29
Subj: Re: IDE cd rom
From: lsunley@mb.sympatico.ca (Lorne Sunley)
On Fri, 19 Nov 1999 11:04:24, joealicia@webtv.net (Joey McLaughlin)
wrote:
> I cant get os2 2.1 to load the drivers for my cd-rom. Could it be that
> 2.1 only supports scsi driven cd roms. I think it may need mscdex
> loaded. If this is so should it mscdex be installed via dos or os2. And
> is this possible to with a floppy without a lot of complex dos
> commands.....i dont speak dos..but i do have the complete os2 2.1 spec.
> edt. install package...anyone please help.
>
If the CD-ROM is a standard ATAPI CD-ROM device
(most of the later ones 2X or better usually are) you
can update the IDE drivers with the IDEDASD package
from the IBM device driver repository.
ftp://ftp.software.ibm.com/ps/products/os2/os2ddpak/idedasd.exe
Lorne Sunley
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: MBnet Networking Inc. (1:109/42)
+----------------------------------------------------------------------------+
From: seg@NOSPAM-us.ibm.com 19-Nov-99 09:11:29
To: All 19-Nov-99 14:30:00
Subj: Re: Attaching Semaphores to Pipes
From: "Scott E. Garfinkle" <seg@NOSPAM-us.ibm.com>
On 19 Nov 1999 13:18:47 GMT, Harald Eilertsen wrote:
>Does anybody know how to make use of semaphores attached to named
>pipes, as in DosSetNPipeSem? I've tried simply waiting for the sem
>with DosWaitEventSem, but the sem never got posted. I also wonder how
>I can retreive the key I've sent in with DosSetNPipeSem, to determine
>what pipe caused the sem to get posted. (That is if the sem ever is posted.)
It does work. Make sure you are using a shared event sem (not private). As
far
as getting back the info, what you should do is have a different semaphore
handle
for each pipe, then use DosWaitMuxWaitSem(WAITANY) to wait for (at least) one
sem to be posted. If you stash the pipe handle in the "user dword" of the
MuxWait key,
it will all drop out automatically.
-scott
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: NCSD OS/2 Service (1:109/42)
+----------------------------------------------------------------------------+
From: skrise@attglobal.net 19-Nov-99 15:32:26
To: All 19-Nov-99 16:52:02
Subj: Getting Started...
From: skrise@attglobal.net
I want to get involved in some of the exciting
online OS/2 development projects, but have no
experience doing OS/2 specific programming.
What books or online resources would be recommended
as definitive guides to general OS/2 programming?
Thanks,
Steven
--
Abstainer: a weak person who yields
to the temptation of denying himself a pleasure.
... Ambrose Bierce
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: Chains of Protein (1:109/42)
+----------------------------------------------------------------------------+
From: lyn@zolotek.REMOVE-SPAM.com 19-Nov-99 22:00:03
To: All 19-Nov-99 20:18:03
Subj: Re: Perl @INC
From: lyn@zolotek.REMOVE-SPAM.com
On Fri, 19 Nov 1999 02:38:16, "Darin McBride"
<dmcbride@no.tower.spam.to.org> wrote:
> On 17 Nov 1999 18:55:02 GMT, lyn@zolotek.REMOVE-SPAM.com wrote:
>
> >Hallo - this may well be considered a dumb question, but I really_need
> >the answer and so far it has totally escaped me. As Apache 1.3.9 no
> >longer honours the 'redirect' setting in config.sys for f:/perllib
> >...;e:\usr\bin\perllib ... , I need to add e:/usr/bin/perllib/lib into
> >@INC manually. I have RTFM but can't see how to apply the brief notes
>
> 1. I run Apache 1.3.9 on OS/2, and don't have any such problem. I have the
> following line in my config.sys:
>
> set PERLLIB_PREFIX=f:/perllib/lib;D:/LANG/PERLLIB/LIB
This works fine for Powerweb and Apache 1.3.6 with this cgi script,
but not Apache 1.3.9 - either for me or for others with the same
script. Do you have any scripts which 'use' modules from the standard
perl distribution? 1.3.9 will run formmail.cgi (not even a cmd) quite
happily, as it has no 'use' or 'require' statements.
> Works just fine here. I also have the following in a command file in my
> startup folder:
>
> set emxopt=-h100
> D:\TCPIP\HTTPD\APACHE_1.3.9\HTTPD.EXE -d D:\TCPIP\httpd
I have 'set emxopt=-h1024' in config.sys
> The first line allows 100 file handles - a problem in EMX, as far as I'm
> concerned. I run virtual sites, each with independent logs. Like I said,
> everything works fine as is.
>
> 2. I added another directory to allow me to use my own perl modules, and put
> the following at the top of each CGI script:
>
> ===================================
> extproc perl -w
>
> BEGIN
> {
> unshift @INC, qw(d:/src/perl);
> }
> ===================================
Mine have 'extproc perl -S', then:
require 5.002;
use strict;
use Socket;
my $LINK_TIMEOUT = 45;
my $LINK_PORT = 7786;
my $LINK_HOST = 'localhost';
my $ERROR_ACTION = "-notify";
$ENV{PATH} = "/bin:/usr/bin";
$ENV{IFS} = " ";
I tried putting this BEGIN .. into the script with e:/usr/bin/perl,
but it turned out to need the full path to strict.pm. Then it needed
the full path for socket.pm added, and then the full path for
config.pm. After all this it failed for a new reason: "premature end
of script headers ... ok= def: connect: No route to host". The log
for the daemon (which this cgi connects with) had "Died in server
spawn: REQUEST_METHOD is not defined at <daemon>". This doesn't happen
at all with v 1.3.6 or other servers. So ... I just booted Linux and
compiled a new Apache 1.3.9 and ran the same cgi, and got exactly the
same error. Hmm. So, I changed to Apache 1.3.6 in Linux and again got
the same error. Normally on Linux this runs a comiled C cgi, not perl.
Now I'm back in OS/2, running this same perl cgi quite happily under
Apache 1.3.6 or Powerweb. Odd. Maybe I'll have to buy some books on C
and figure out what "blah: parameter has incomplete type" and "blah:
referenced from text segment" means prior to failing to compile the C
version of the cgi. Or just give up on Apache 1.3.9.
Best regards
Lyn
--- WtrGate+ v0.93.p7 sn 165
* Origin: Origin Line 1 Goes Here (1:109/42)
+----------------------------------------------------------------------------+
From: ilya@math.ohio-state.edu 19-Nov-99 23:16:29
To: All 19-Nov-99 21:29:20
Subj: Re: Perl @INC
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
[A complimentary Cc of this posting was sent to
<lyn@zolotek.REMOVE-SPAM.com>],
who wrote in article
<J8TqGkcvSg25-pn2-RQDb29WLF8Zj@man-a147.dialup.zetnet.co.uk>:
> > 1. I run Apache 1.3.9 on OS/2, and don't have any such problem. I have
the
> > following line in my config.sys:
> >
> > set PERLLIB_PREFIX=f:/perllib/lib;D:/LANG/PERLLIB/LIB
>
> This works fine for Powerweb and Apache 1.3.6 with this cgi script,
> but not Apache 1.3.9 - either for me or for others with the same
> script.
Are your perl script seeing this environment variable?
> Mine have 'extproc perl -S', then:
> require 5.002;
> use strict;
> use Socket;
If your server is unsetting environment, and you do not know a way to
ask it to set PERLLIB_PREFIX, you can always
BEGIN { require 'q:/set/up/inc.pl';
}
- assuming q:/set/up/inc.pl will assign @INC to some sane
value. Hmm, PERL_SHDIR (sp?) is set up on startup too... You may
have problems with shell-invoking system()s unless you have you pdksh
in f:/bin...
Ilya
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: Department of Mathematics, The Ohio State Univers
(1:109/42)
+----------------------------------------------------------------------------+
From: barrowcl@flash.net 20-Nov-99 00:43:05
To: All 19-Nov-99 21:29:20
Subj: Re: IBM C Compiler Consultant Required
From: "George Barrowcliff" <barrowcl@flash.net>
Try posting this in the ibm.software.vacpp.misc news group
Al York wrote in message <3831F247.1391409@ibm.net>...
>We need a someone who can port a C++ program from Borland 2.0 compiler
>to the IBM C Compiler.
>
>Thanks - Al York
>
>alan_york@ddp.ca
>
>
>
--- WtrGate+ v0.93.p7 sn 165
* Origin: Usenet: Bergen Brunswig (1:109/42)
+----------------------------------------------------------------------------+
+============================================================================+