Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Cant connect to FB during designTime only at run time


This question is answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Nov 1, 2017 10:05 AM Last Post By: Jeff Overcash (...
Eduardo Tavares

Posts: 29
Registered: 1/17/05
Cant connect to FB during designTime only at run time  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 1, 2017 3:06 AM
Hi!
I finally could install two versions of FB on my computer and run my projects but now I am having difficulty trying to set myconnection to true during designtime.It gives me this error message : DBX Error : Driver could not be properly initialized. Client library may be missing, not installed properly,of the wrong version or the driver may be missing from the system path.

But if I set sqldataset to true on the oncreate event it gives me no error message and it even show a message if I do a if statement checking if sqldataset is true.

My sqlconnection (myConnection) is set with its database property to IP/port:Path to database file

my fbclient.dll is on the same directory of my application.

what am I missing:

thank you

Edited by: Eduardo Tavares on Nov 1, 2017 3:06 AM
Jeff Overcash (...

Posts: 1,529
Registered: 9/23/99
Re: Cant connect to FB during designTime only at run time [Edit]
Helpful
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 1, 2017 10:05 AM   in response to: Eduardo Tavares in response to: Eduardo Tavares
Eduardo Tavares wrote:
Hi!
I finally could install two versions of FB on my computer and run my projects but now I am having difficulty trying to set myconnection to true during designtime.It gives me this error message : DBX Error : Driver could not be properly initialized. Client library may be missing, not installed properly,of the wrong version or the driver may be missing from the system path.

But if I set sqldataset to true on the oncreate event it gives me no error message and it even show a message if I do a if statement checking if sqldataset is true.

My sqlconnection (myConnection) is set with its database property to IP/port:Path to database file

my fbclient.dll is on the same directory of my application.

what am I missing:

This dll should be on your path. At run time it is found because the working
directory is the EXE's directory. At design time it is not found because the
working directory is the $(BDS)\bin directory.

OS loading rules are basically 1) working directroy 2) <windows>,
<windows\system> and finally 3) the path. first occurance it finds is the one
it will try to load.


thank you

Edited by: Eduardo Tavares on Nov 1, 2017 3:06 AM

--
Jeff Overcash (TeamB)
(Please do not email me directly unless asked. Thank You)
Learning is finding out what you already know. Doing is demonstrating that you
know it. Teaching is reminding others that they know it as well as you. We are
all leaners, doers, teachers. (R Bach)

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02