bonjour a tous !
voici le code de ma dll que je compte utiliser sous firebird comme udf :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
library Madll;
 
uses
  SysUtils,
  windows,
  Classes;
 
{$R *.res}
 
function ib_util_malloc(l: integer): pointer; cdecl; external 'ib_util.dll';
 
function ChangeMyString(const p: PChar): PChar; cdecl;
var
nomfichier: string;
begin
nomfichier := extractfilename(string(p));
Result := ib_util_malloc(Length(s) + 1);
StrPCopy(Result, s);
end;
exports
ChangeMyString;
begin
end.
Mon problème ici c'est que la dll ramène un seul resutat ! d'ou ma question comment la modifié pour quel ramène plusieurs.