import/endimport ... os depending

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
bingo
Enthusiast
Enthusiast
Posts: 210
Joined: Fri Apr 02, 2004 12:21 pm
Location: germany/thueringen
Contact:

import/endimport ... os depending

Post 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)
["1:0>1"]
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Post 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 ;)
SPAMINATOR NR.1
Post Reply