TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Arne de Bruijn
from: Detlef Engert
date: 1995-10-01 19:06:46
subject: SYSxxxx errors in program

Hello Arne!

Thus quoth Arne de Bruijn to Mike Byrne:
 MB>> Call DosGetMessage().
 MB>> I can't seem to do that in my programs.
 MB>> Keep in mind I'm compiling with VP.

 AdB> Yes, I found that problem too. It seems the function DosGetMessage does 
 AdB> not exists in the OS2 libraries, but a function called 
 AdB> DosTrueGetMessage does. The difference between it and DosGetMessage 
 AdB> is an extra parameter, using 0 for it seems to work fine.
 AdB> [..]

I hope I may butt in here.
In fact, DosGetMessage (and its aliases DOSGETMESSAGE, Dos32GetMessage and
DOS32GETMESSAGE too) does exist in OS2386.LIB. It is a small object (not an
import definition), containing code which calculates the 'extra' parameter
you discovered and then enters Dos32TrueGetMessage. The mystic extra
parameter is the adress of the so called message segment or 0 if there
isn't one. The message segment is added to your programm if you run MSGBIND
to bind one or more message files (different language versions for
instance) to your EXE. Dos32TrueGetMessage will look up the bound message
files first before going to disk. I use this mechanism in my programs to
bind some language versions (german and english in my case) into the EXE
and leave the other optional language versions as separate message files.
If you don't link the mentioned stub into your programs you cannot use
MSGBIND.

bye, Detlef

 ! mailto engert{at}ibm.net, 2:2490/2576.1{at}fidonet, 21:100/1015.9{at}gernet
--- Sqed/32 0.999/r00108
* Origin: Nachtigall/2, Nuernberg/Germany, +49-911-861319 (2:2490/2575.2)
SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 2490/2575 2501 3001 24/24 396/1 270/101 712/515 711/808 809 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™.