TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: James R. Cook
from: Phil Crown
date: 1997-01-05 04:47:59
subject: Acronyms ...

-=> Quoting James R. Cook to Phil Crown <=-



 JRC> (As) far as I know ...  ;>



Thanks.



 JRC> Say, I visited your homepage last night.  Good selection of OS/2

 JRC> stuff.  I have a realy DUMB question for you.  I've got Watcom 10.0a

 JRC> and I'm trying to create a couple of simple DLLs.  I've had no luck so

 JRC> far.  It seems to create the DLL, but the import libraries don't work. 

 JRC> Can you gin up a simple example or point me to a FAQ on the subect? 

 JRC> Thanks!



I think all the functions must be declared MRESULT EXPENTRY.



Also in your .def file (hmm... I've heard Watcom doesn't use .def

files?) include the EXPORTS statement listing functions to be exported.



LIBRARY ptccom

DESCRIPTION 'COM Port Routines - Crown Software (c) 1995'

DATA MULTIPLE NONSHARED

EXPORTS

        Carrier

        OpenPort

        Send

        SetBaudRate

        SetBaudRateExt





Try the archives below for example code, I know one of them is an

example of how to make an external REXX dll.  Most are examples for

Watcom (by the Watcom people) and CSet (or VAC)?



They are also at hobbes and its mirrors.



ftp.leo.org/pub/comp/os/os2/rexx/vxtech01-05.zip

ftp.leo.org/pub/comp/os/os2/rexx/vxtech06.zip

ftp.leo.org/pub/comp/os/os2/rexx/vxtech07.zip

ftp.leo.org/pub/comp/os/os2/rexx/vxtech08-10.zip

ftp.leo.org/pub/comp/os/os2/rexx/vxtech11.zip



 JRC> Oh, and I'm using the commandline (TShell not WPS).



I run CMD.EXE most of the time as my WPS (not pmshell.exe).  TShell uses

less memory, but with cmd.exe you can still run PM apps.



Phil Crown

pcrown{at}airmail.net

http://web2.airmail.net/pcrown/



--- Blue Wave/OS2 v2.30

* Origin: * MacSavvy OS/2 BBS * Dallas, Texas * 972-250-4479 * (1:124/1208)
SEEN-BY: 50/99 54/99 270/101 620/243 625/0 160 711/409 410 413 430 808 809
SEEN-BY: 711/934 955 712/311 407 505 506 517 623 624 704 841 713/317 800/1
@PATH: 124/1208 1 396/1 270/101 712/624 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™.