Path: 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 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