TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Daniel Morgan
from: David Sparrman
date: 1996-06-05 21:55:04
subject: Calling MSGAPI from Pascal

Hello!


DS>> Is there anyone out there that can give me some help to get started
DS>> using MSGAPI32.DLL from Pascal?

DM> You might want to try using one of the LIBraries, or compile MSGAPI 
DM> yourself.

I have now more or less given up the idea to use Pascal. As for C, I bought
a copy of IBM's C/Set++ a few years ago when no native Pascal compilers
where in sight. I haven't used it yet... until now.

Now it is installed and after some initial problems I got me a copy of
MSGAPI32.DLL compiled. Yes!

Here i have to insert a question about the 'C' way of doing things.
LIB-files, how do the work? I compile my programs for MSGAPI32.DLL anno '94
, but Scott changed the MSGAPI32.DLL before Max 3 was released - will my
programs work even if they are compiled for the 'old' msgapi, with an old
.LIB file?

DM> I couldn't figure out how to use the MSGAPI.DLL  Then 
DM> again, I guess you can't use OS/2 DLLs in Windows and vice-versa.

Obviously not. I think Windows would be a little bit confused if it was
asked to do a DosDevIOCtl call, just as OS/2 would be confused by a
DeviceMode call :)

DM> Good Luck!  The headers for Squish are complex.  It is best to learn C 
DM> again to use the msgapi.

Ok, i will give it a shot. If i get to frustrated perhaps my C++ package
gets itself a shot from something with a heavy caliber 

But this far everything have worked out well.

DM> /*  These are function pointers to memory functions you care to use
DM>  *  within msgapi, if the function pointer is NULL, then the msgapi will
DM>  *  use its own internal memory functions. 
DM>  */

DM>   minf.palloc      = 0x0L;
DM>   minf.pfree       = 0x0L;
DM>   minf.repalloc    = 0x0L;
DM>   minf.farpalloc   = 0x0L;
DM>   minf.farpfree    = 0x0L;
DM>   minf.farrepalloc = 0x0L;

Really nice to see! The documentation really got me comfused on this point
with those 'pointer-functions' with lots of bizarre parameters. Just
0x0L... I like that!

Thanks for your reply. (I have almost completed the first of the two
MSGAPI-programs I need)


regards,
        David
@EOT:

--- MsgedSQ/2 3.35
* Origin: Joshua BBS (2:206/141)
SEEN-BY: 50/99 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1
@PATH: 206/141 0 201/505 0 200 2104 109/347 18 13/25 396/1 270/101 712/515
@PATH: 711/808 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™.