Subject | Re: [firebird-support] Error function in FB 2.1 |
---|---|
Author | Vlad Khorsun |
Post date | 2009-05-01T07:38:30Z |
> HI I HAD A ERROR IN A DB RECENTLY MIGRATED OF FB 1.5 TO FB 2.1, IN A DLL I HAD THIS FUNCTION WHO CALL THE TYPE RECORD.Are your "Caps Lock" key is locked forever ? Don't use capital letter - it means a scream
and very annoying for readers.
> function MinuteToHour(var M : Integer) : PISC_QUAD;You forget "cdecl" in function declaration.
> var TempDate : TCTimeStructure; Hr, Mt, S, MS : Word;You must never use malloc.
> begin
> Result := malloc(SizeOf(TISC_QUAD));
Regards,
Vlad