TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Hubert Chan
date: 1996-08-15 20:22:04
subject: Trying to write a DLL

I am trying to write a DLL for a custom button class.  I am using EMX 0.9a and
Project Manager 1.03.  When I try to link to the DLL, LINK386 gives me an error:
"error L2022: ButtonInitialize (alias ButtonInitialize) : export
undefined". 
The project consists of a Buttons.CPP, Buttons.DEF and Buttons.H (Buttons.CPP
and Buttons.DEF are the source files in the Project Manager file).  The Exports
section of the DEF file is just "EXPORTS  ButtonInitialize".  In
the CPP and
header files, I have ButtonInitilize defined as "BOOL EXPENTRY
ButtonInitialize()".  I also tried "BOOL APIENTRY
ButtonInitialize()", but I got
the same error.  The ButtonInitialize function just registers the button class.

Can someone please help me figure out what's causing the error?

Thanks in advance.

Hubert Chan
___
 * MR/2 2.26 NR * 

--- Maximus/2 3.01
* Origin: MACH2 VULCAN OS/2 SYSTEMS 1-403-489-4250 (1:342/61)
SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/888 800/1
@PATH: 342/61 3615/50 396/1 270/101 712/515 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™.