Re: EuAllegro Help
- Posted by jmduro Aug 14, 2019
- 1352 views
Icy_Viking said...
Thanks Greg, simple oversight. Ok, so I did an error check and it says the function is failing to register. I checked the DLL and the al_install_system() function is inside the DLL.
public constant xal_install_system = define_c_func(al,"+al_install_system",{C_INT,C_POINTER},C_BOOL) public function al_install_system(atom ver,atom x) return c_func(xal_install_system,{ver,x}) end function if xal_install_system = -1 then puts(1,"al_install_system failed!\n") --this does come up when I run the wrapper library abort(0) end if
ver should always be set to ALLEGRO_VERSION_INT. x refers to a pointer. Is it set to NULL or allocated ?
Jean-Marc