Translate C Code to Delphi need help

On martes, 26 de abril de 2011 0 comentarios

 i have no time to convert all it code, but the LibMain is a DLL main, use in delphi like this

Code:
procedure LibraryProc(Reason: Integer);
begin
  case (Reason) of
    DLL_PROCESS_ATTACH:
    begin

    end;
    DLL_PROCESS_DETACH:
    begin
     end;
  end;
end;

begin
  DLLProc := @LibraryProc;
  DLLProc(DLL_PROCESS_ATTACH);
end.



Default RE: Translate C Code to Delphi need help

Code:
procedure LibraryProc(Reason: Integer);
begin
  case (Reason) of
    DLL_PROCESS_ATTACH:
    begin
      DisableThreadLibraryCalls (hInstance); 
    end;
  end;
end;

begin
  DLLProc := @LibraryProc;
  DLLProc(DLL_PROCESS_ATTACH);
end.
g_szPath : array of PChar
change to
g_szPath : PWideChar =

NULL change to nil

&si, &g_pi change to si, g_pi

0xDEADBEEF -> $DEADBEEF

that's all



(: Thanks & Thanks
Freeware iCoolPlayer : Play/Convert/Rip/Burn/Record/Radio/...
http://kenshin1101.googlepages.com
Reply With Quote

0 comentarios:

Publicar un comentario