Recent

Author Topic: QLDBLibraryLoader invalid ConnectionType  (Read 2838 times)

Danyfirex

  • New Member
  • *
  • Posts: 13
QLDBLibraryLoader invalid ConnectionType
« on: September 20, 2014, 11:04:48 pm »
Hi. I'm a new man progamming is freepascal. I'm trying to create a sqlite conection but I can't load the library.

In my FormCreate event I put my code as wiki says. when I run my app it show this error:

QLDBLibraryLoader1.ConnectionType='SQLite3'

this is my code.

Code: [Select]
SQLDBLibraryLoader1.ConnectionType:='SQLite3';
  SQLDBLibraryLoader1.LibraryName := 'sqlite3.dll';
  SQLDBLibraryLoader1.Enabled := true;
  SQLDBLibraryLoader1.LoadLibrary; 


Saludos


BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: QLDBLibraryLoader invalid ConnectionType
« Reply #1 on: September 23, 2014, 05:58:59 pm »
What version of FPC are you using?
Have you read the note on the wiki page (http://wiki.lazarus.freepascal.org/TSQLDBLibraryLoader#Use_and_alternatives):
Quote
Support for using SQlite with SQLDBLibraryLoader was added to FPC trunk (2.7.1) and is not available in earlier FPC versions. Possible alternative: InitializeSQLite function in unit sqlite3dyn. Please remove this text if tested.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Danyfirex

  • New Member
  • *
  • Posts: 13
Re: QLDBLibraryLoader invalid ConnectionType
« Reply #2 on: September 27, 2014, 09:48:27 pm »
Thank you for your reply. I did not read well. I'm using 2.6.

It's solved.


Saludos


BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: QLDBLibraryLoader invalid ConnectionType
« Reply #3 on: September 28, 2014, 08:16:20 am »
Glad it's solved & thanks for posting that!

Saludos,
BigChimp
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

 

TinyPortal © 2005-2018