I'm using Delphi 2009 and SDL_WM_SetCaption doesn't work as it should. PChar is actually PWideChar in Delphi 2009. When I call SDL_WM_SetCaption('Test', 'Test'), my window's caption is set to 'T'... all other characters are discarded (I guess wide representation of char T contains null character after T ASCII character and that is why SDL_WM_SetCaption use only first letter).

I didn't test other functions that use PChar type, but they probably don't work either.

Using PAnsiChar instead of PChar would solve the problem.