Coding > FPC Valkyrie
Problems with SVN Valkyrie
(1/1)
Igor Savin:
Kornel, have you broken something fundamentally with the latest Valkyrie?
I cannot compile 0.8.5 Berserk with it.
\\\
procedure TInput.Load(INIFile : TINI; CommandReader : TTokenReader);
begin
INICallbackProcedureReader := CommandReader;
INIFile.QuerySection(@INICallbackProcedure); {this line outputs error}
end;
***
E:\Elwin\Yhacking\Pascal\Valk\vrltools.pas(383,47) Error: Incompatible type for arg no. 1: Got "<address of procedure(const ShortString,const ShortString);Register>", expected "<procedure variable type of procedure(const AnsiString,const AnsiString);Register>"
***
If we look into
vini.pas
<...>
procedure QuerySection(inicallback : TINIFileCallbackProcedure);
<..>
type TINIFileCallbackProcedure = procedure (const nkey,nvalue : string);
<...>
\\\
Okay, I comment all the stuff. Then:
bruichar.pas
Menu := TTextMenu.Create(67,12,1);
bruichar.pas(162,35) Error: Incompatible type for arg no. 3: Got "ShortInt", expected "<procedure variable type of procedure(Byte) of object;Register>"
\\\
And it goes on and on and on...
\\\
Why is it important to have BRL compiling in spite of all the changes (as in "keeping up-to-date")? Well, since I use BerserkRL as a reference material for applying Valkyrie; and if it doesn't work, my Valkyrion project is effectively stalled :). Not that it's high priority or anything (you have DoomRL 0.9.8.9 to take care of), but still it'd be nice if you could have a look at it some day.
p. s. Do you use jedi SDL for SDL?
p. p. s. Have you received my letter? It's not that I expect any answer, but usually you make some kind of a gesture indicating the letter was not lost in delivery stage.
Kornel Kisielewicz:
Yeah, I broke some things -- I'll fix Berserk ASAP.
I use Jedi-SDL.
I recieved your mail, I am just really overflooded with work, I'll reply ASAP too :).
P.S. It should compile now.
Igor Savin:
Thanks, it works much better now; although I thought it's the Berserk which needs updating, not the Valkyrie (downdating?..).
Menu.Create still doesn't work, so I just replace Menus with my those of my own; then it compiles.
\I recieved your mail, I am just really overflooded with work, I'll reply ASAP too :).\
Aww, it's no big deal; glad it got there. I needed Valkyrie much more than a piece of conversation :-P
Kornel Kisielewicz:
What error does Menu.Create produce?
Igor Savin:
Menu := TTextMenu.Create(67,12,1);
\\\
bruichar.pas(162,35) Error: Incompatible type for arg no. 3: Got "ShortInt", expected "<procedure variable type of procedure(Byte) of object;Register>"
\\\
The same, as the one before. I'm using the latest (24) stable Lazarus, FPC 2.2.0
Navigation
[0] Message Index
Go to full version