bmx-ng / bmk

The enhanced BlitzMax build program.
zlib License
28 stars 13 forks source link

LoadLibraryA ? #96

Closed Wiering closed 4 years ago

Wiering commented 4 years ago

Nice to find a new version of BlitzMax! While trying to get one of my old programs to work I ran into this error: Compile Error Identifier 'loadlibrarya' not found. Any ideas?

?win32
  Global GetFileAttributes: Int (lpFileName: Byte Ptr) = GetProcAddress (LoadLibraryA ("Kernel32"), "GetFileAttributesA")
?
Kerntrick commented 4 years ago

I think you need to import Pub.Win32

Wiering commented 4 years ago

Thanks, that worked.