LeftyG
08-02-2022, 01:04
Hello all,
New to thinBasic, but not Basic in general. I've coded in many different dialects of Basic over the years, QBasic, Visual Basic, PureBasic, etc. I tried looking at a few examples and I think I get it. I'm just wondering do I put the DLL in the same folder with the thinbasic wrapper resides, do I need the header files if its a C library?
Say I wanted to wrap SDL2, would I do something like this?
Const SDL_INIT_VIDEO = 32 'value converted to decimal from hex
Type Rect
x as single
y as single
w as single
h as integer
End Type
Declare Function SDL_Init Lib "SDL2.dll" "Alias SDL_Init" (ByVal flags as single) as single
New to thinBasic, but not Basic in general. I've coded in many different dialects of Basic over the years, QBasic, Visual Basic, PureBasic, etc. I tried looking at a few examples and I think I get it. I'm just wondering do I put the DLL in the same folder with the thinbasic wrapper resides, do I need the header files if its a C library?
Say I wanted to wrap SDL2, would I do something like this?
Const SDL_INIT_VIDEO = 32 'value converted to decimal from hex
Type Rect
x as single
y as single
w as single
h as integer
End Type
Declare Function SDL_Init Lib "SDL2.dll" "Alias SDL_Init" (ByVal flags as single) as single