Hi,
I currently have a file named win32.pasm containing the following:-
saveall
loadlib P1, 'user32'
dlfunc P2, P1, 'MessageBoxA', 'llttl'
store_global 'MessageBox', P2
# MANY MORE LINES LIKE THIS
restoreall
I compile that file to a .pbc file, which works out OK. In then have an imc
file that starts like this:-
.sub _MAIN
# Load Win32 library.
load_bytecode "win32.pbc"
# Look up MessageBox function.
find_global $P1, "MessageBox"
Executing that results in the following error:-
Global 'MessageBox' not found
in file '(unknown file)' near line -1