Ir al contenido


Foto

[TRUCO DELPHI] Ruta de las Librerias BDE - Borland Database Engine.


  • Por favor identifícate para responder
No hay respuestas en este tema

#1 sir.dev.a.lot

sir.dev.a.lot

    Advanced Member

  • Miembros
  • PipPipPip
  • 545 mensajes
  • Location127.0.0.1

Escrito 01 diciembre 2016 - 08:03

[TRUCO DELPHI] Ruta de las Librerias BDE - Borland Database Engine.


delphi
  1. uses
  2. Registry;
  3.  
  4. // ...
  5.  
  6. function BDEDLLPath: string;
  7. begin
  8. Result := 'C:\Program Files\Borland\Common Files\BDE';
  9. with TRegistry.Create do
  10. try
  11. RootKey := HKEY_LOCAL_MACHINE;
  12. if OpenKey('Software\Borland\Database Engine',False) then begin
  13. if ValueExists('DLLPATH') then
  14. Result := ReadString('DLLPATH') + '';
  15. CloseKey;
  16. end;
  17. finally
  18. Free;
  19. end;
  20. end;

Saludos!


  • 1




IP.Board spam blocked by CleanTalk.