Maybe I'm missing something obvious here, but no matter what I do, I am unable to compile the following code into a DLL from which the functions are exported:
When I compile this code and use QuickView (Windows 95) on the resulting DLL, no Export Table is listed containing the functions that should have been exported. When I attempt to use the supposedly exported functions from a different application, they cannot be located.
Any ideas?
Code:
#COMPILE DLL #DIM ALL #OPTION VERSION4 #REGISTER NONE #INCLUDE "WIN32API.INC" FUNCTION LibMain( BYVAL hInstance AS LONG, BYVAL nReason AS LONG, BYVAL nReserved AS LONG ) EXPORT AS LONG SELECT CASE nReason CASE %DLL_PROCESS_ATTACH CALL Init( hInstance ) CASE %DLL_PROCESS_DETACH CALL CleanUp( hInstance ) END SELECT FUNCTION = %TRUE END FUNCTION SUB Init( BYVAL hInstance AS LONG ) 'Register classes END SUB SUB CleanUp( BYVAL hInstance AS LONG ) 'Unregister classes END SUB FUNCTION DoSomething( BYVAL sText AS STRING ) EXPORT AS LONG MSGBOX sText END FUNCTION
Any ideas?

Comment