🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #1991

Borland C++ and exports

#1991
From: Brian K. W. Hook
Date: Sun, 07 Apr 1991 16:37
15 lines
1003 bytes
Can someone please explain to me when I do and do not need to use the
_export keyword or a .DEF file?  I was under the impressio that normally
you export a function that Windows will be calling directly.  E.g.
MainWndProc.  Now, using the Guide to Programming GENERIC works just fine
if I have "All functions exportable" checked off with no explicit exports
anywhere.  I just use the default .DEF file.

HOWEVER....the minute I add a LoadBitmap() to MainWndProc(), it dies at
that line with a UAE.  HOWEVER....when I use Smart Callbacks, it works.


What am I doing wrong or just not understanding?

Brian
Technical Details
Message-ID: <27869@uflorida.cis.ufl.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!uflorida!reef.cis.ufl.edu!jdb

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!uflorida!reef.cis.ufl.edu!jdb
From: jdb@reef.cis.ufl.edu (Brian K. W. Hook)
Newsgroups: comp.windows.ms.programmer
Subject: Borland C++ and exports
Message-ID: <27869@uflorida.cis.ufl.EDU>
Date: 7 Apr 91 16:37:54 GMT
Sender: news@uflorida.cis.ufl.EDU
Organization: UF CIS Dept.
Lines: 15