Hujiklo
No, there are no includes in any of the source
Rhyolite
The examples are using the win32 dll's (kernal32.dll,user32.dll etc). My understanding is that they will be used from the windows system32 directory. Even so, I tried copying one of them to the userlibs directory and still got the same error.
Thanks guys for the hints
Here is an example of my exact scenario.
In my userlibs directory I have a file called "user32Decls.bb"
In that file there is a function declaration api_SystemParametersInfo%(uAction%, uParam%, lpvParam$, fuWinIni%):"SystemParametersInfoA"
Now I have a Blitz3D program that I downloaded and modified slightly (Name changes) from the forums that looks like.
; Required Userlib
; .lib "user32.dll"
; api_SystemParametersInfo%(uAction%, uParam%, lpvParam$, fuWinIni%):"SystemParametersInfoA"
AppTitle "Change Desktop Wallpaper by Eikon"
Graphics 640, 320, 16, 2
Const SET_WALLPAPER% = 20
Const UPDATE_INI_FILE% = 1
file$ = "Cash Out.bmp" ; Change to path of the wallpaper
ret% = api_SystemParametersInfo(SET_WALLPAPER%, 0, file$, UPDATE_INI_FILE%)
If Not ret% Then RuntimeError "Set Wallpaper failed!"
When I run that program I get
Function api_SystemParametersInfo not found
I could be way off base here but from the help file reguarding the userlibs directory I get the impression that blitz3D reads the decl files from there when it loads and adds any function declarations it finds there to its command list. It seems to me that that is not happening.
Any help would be appreciated
No, there are no includes in any of the source
Rhyolite
The examples are using the win32 dll's (kernal32.dll,user32.dll etc). My understanding is that they will be used from the windows system32 directory. Even so, I tried copying one of them to the userlibs directory and still got the same error.
Thanks guys for the hints
Here is an example of my exact scenario.
In my userlibs directory I have a file called "user32Decls.bb"
In that file there is a function declaration api_SystemParametersInfo%(uAction%, uParam%, lpvParam$, fuWinIni%):"SystemParametersInfoA"
Now I have a Blitz3D program that I downloaded and modified slightly (Name changes) from the forums that looks like.
; Required Userlib
; .lib "user32.dll"
; api_SystemParametersInfo%(uAction%, uParam%, lpvParam$, fuWinIni%):"SystemParametersInfoA"
AppTitle "Change Desktop Wallpaper by Eikon"
Graphics 640, 320, 16, 2
Const SET_WALLPAPER% = 20
Const UPDATE_INI_FILE% = 1
file$ = "Cash Out.bmp" ; Change to path of the wallpaper
ret% = api_SystemParametersInfo(SET_WALLPAPER%, 0, file$, UPDATE_INI_FILE%)
If Not ret% Then RuntimeError "Set Wallpaper failed!"
When I run that program I get
Function api_SystemParametersInfo not found
I could be way off base here but from the help file reguarding the userlibs directory I get the impression that blitz3D reads the decl files from there when it loads and adds any function declarations it finds there to its command list. It seems to me that that is not happening.
Any help would be appreciated