Advertisement
Guest User

Untitled

a guest
Oct 6th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #define fbc -dll -Wl " --entry _MAIN@12"
  2.  
  3. #include "windows.bi"
  4. #include "crt.bi"
  5.  
  6. function main ( HINSTANCE as handle , uReason as uinteger , Reserved as any ptr ) as integer export
  7.   select case uReason
  8.   case DLL_PROCESS_ATTACH    
  9.     puts("Process attach")
  10.     fb_Init( 0, NULL, 0 )
  11.        
  12.   case DLL_PROCESS_DETACH
  13.    
  14.   case DLL_THREAD_ATTACH:
  15.    
  16.   case DLL_THREAD_DETACH:
  17.    
  18.   end select    
  19.   return 1
  20. end function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement