done and tested on Mac OS X,i just need to apply it to sourceforge.
You have to declare an AnsiString first, since now there is a native UNICODE support on Delphi 2009. Like in this example :
procedure Dummy;
var
name : AnsiString;
begin
name := 'Projet SDL';
SDL_WM_SetCaption(PAnsiChar(name), nil);
end;
Jedi-SDL work in Delphi 2010 ?
I will upgrade my games to SDL and Delphi 2010, but I do not know if SDL works with delphi 2010.
Kotai.
www.kotai.es
www.remakesonline.com -> Nemesis Online & Bubble Bobble Online & Castlevania Online & Penguin Adventure Online
www.miniracingonline.com
Add this to jedi-sdl.inc to get it working with D2010:
Code:{$IFDEF ver210} {$DEFINE Delphi} {Delphi 2009} {$DEFINE Delphi32} {$DEFINE Delphi4UP} {$DEFINE Delphi5UP} {$DEFINE Delphi6UP} {$DEFINE Delphi7UP} {$DEFINE Delphi8UP} {$DEFINE Delphi9UP} {$DEFINE Delphi10UP} {$DEFINE Delphi11UP} {$DEFINE Delphi12UP} {$DEFINE Delphi14UP} {$WARN UNSAFE_TYPE OFF} {Disable warning for unsafe types in Delphi 7} {$DEFINE Has_Int64} {$DEFINE HAS_TYPES} {$ENDIF ver210}
Vampyre Imaging Library
Earth Under Fire (PGD Big Boss 3rd place)
Domains Of Chaos (PGD Multiplexity 5th place)
Seems like this new .inc is not included in the latest JEDI-SDL version. Or at least I didn't find it.
Now trying to copy the changes to my jedi-sdl.inc and prep it for D2010.
Also, I noticed that the source-code in the start-post is mangled. Probably caused by the forum migration. I've encountered the same issue in other threads and PM's aswell. Is there a tool to get the original code back?
Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.
Bookmarks