[comp.windows.ms.programmer] Prolog-epilog, callback functions

weiss@theory.lcs.mit.edu (Paul G. Weiss) (11/07/90)

I am porting a language product from OS/2 to Windows.  I have two
questions that I need to have answered by some knowledgeable person or
persons.

1.  Windows Prolog and Epilog.  Is this merely for real-mode support?  If
I know that my application is not going to run in real-mode can I dispense
with these?  Also, when is the -GW style of prolog-epilog appropriate?

2.  Callback functions.  The documentation states that all callback functions
must be exported.  This is confusing to me.  Since you pass the
instance-address of the function to Windows, why does it need to be
exported.  Again, is this something that is only necessary for real mode?