Page 1 of 1

import/endimport ... os depending

Posted: Tue Sep 26, 2006 3:15 pm
by bingo

Code: Select all

;no effect in pb4!!!
If OSVersion() <> #PB_OS_Windows_XP
End
EndIf

Import "any.lib" 
  function_xp_only(a.l.b.l)
EndImport

function_xp_only(0,0)

End
... against dll error "no entry point found in dll ..." 8)

Posted: Tue Sep 26, 2006 3:20 pm
by Rings
IMPORT's are binding during the compiling process, not at runtime.
so that cannot work.
For delay-loading use special dll's and include the Imports (libs) there



and btw,
throw win89 ;)