PostgreSQL native from Phil Ide

This forum is for ideas and or code to be contributed for general use.
Message
Author
User avatar
hz_scotty
Posts: 107
Joined: Thu Jan 28, 2010 8:20 am
Location: Wr.Neustadt / Österreich

Re: PostgreSQL native from Phil Ide

#41 Post by hz_scotty »

now it is ok :clap:
best regards
Hans

fransm
Posts: 11
Joined: Fri Feb 05, 2010 10:37 am

Re: PostgreSQL native from Phil Ide

#42 Post by fransm »

Hi Nolberto,

I am getting a reserved keyword error when I compile the last version of yours.

It is not happy with the dccombobox command.

Can you please assist

regards
Frans

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: PostgreSQL native from Phil Ide

#43 Post by rdonnay »

It is not happy with the dccombobox command.
DCCOMBOBOX is an eXpress++ command in DCDIALOG.CH.
The eXpress train is coming - and it has more cars.

fransm
Posts: 11
Joined: Fri Feb 05, 2010 10:37 am

Re: PostgreSQL native from Phil Ide

#44 Post by fransm »

Hi Roger,

Thanks for the reply..

I found the problem. Wasn't looking properly.

However over the weekend I was stuck with an issue I could not resolve.

When compiling a dll and I include the XBPGSQL.LIB in the xpj file, I get a error "DLL couldn't be loaded", when trying to run a routine in the dll. If I remove the XBPGSQL.LIB then everything is fine except for the unresolved symbol errors. There is just something when compiling with this lib included that prevents the dll being loaded. Did Nolberto designed it this way, or am I missing something. ?

regards
Frans

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: PostgreSQL native from Phil Ide

#45 Post by rdonnay »

What version of Xbase++ are you using?

Is Nolberto's DLL compiled with the same version?

You should try to load his dll with CHK4DLL.EXE or DLLINFO.EXE.
The eXpress train is coming - and it has more cars.

fransm
Posts: 11
Joined: Fri Feb 05, 2010 10:37 am

Re: PostgreSQL native from Phil Ide

#46 Post by fransm »

Hi Roger,

I have no idea what version Nolberto used

I am using xbase++ 1.90.355

I ran dllinfo with the following results.

type xbase++ , unloadable
imported DLLs
ot4xb.dll
xpprt1.dll
xppdbgc.dll

I suppose this explains why I am having problems loading the dll.

I also ran chk4dll with the following results

ot4xb.dll -> can be loaded
xpprt1.dll -> can be loaded
xppdbgc.dll -> can be loaded

Is there perhaps a loadable dll available somewhere >

regards

Frans

User avatar
Auge_Ohr
Posts: 1405
Joined: Wed Feb 24, 2010 3:44 pm

Re: PostgreSQL native from Phil Ide

#47 Post by Auge_Ohr »

fransm wrote:I get a error "DLL couldn't be loaded", when trying to run a routine in the dll.
what Version of PostgreSQL is installed 32bit or 64bit :?:

the Msg is IMHO because PostgreSQL libpq.dll
greetings by OHR
Jimmy

fransm
Posts: 11
Joined: Fri Feb 05, 2010 10:37 am

Re: PostgreSQL native from Phil Ide

#48 Post by fransm »

Hi Jimmy

I am running a windows 2003 server x64

Postgres is ver 9.4 x32

regards
Frans

User avatar
Auge_Ohr
Posts: 1405
Joined: Wed Feb 24, 2010 3:44 pm

Re: PostgreSQL native from Phil Ide

#49 Post by Auge_Ohr »

fransm wrote:Postgres is ver 9.4 x32
32bit DLL are ok.

have you copy x:\Program Files\PostgreSQL\9.4\bin\*.DLL into your Xbase++ App Directory :?:
greetings by OHR
Jimmy

fransm
Posts: 11
Joined: Fri Feb 05, 2010 10:37 am

Re: PostgreSQL native from Phil Ide

#50 Post by fransm »

Hi Jimmy

I still get the same error.

Strange that his demo works without any problems, but as soon as I include the xbpgsql.lib in my project file I get the error "dll couldn't be loaded". The dllinfo.exe app also returns the message that the dll is unloadable

The fact that the demo runs, means that the dll must be loading. I don't have a cooking clue what is going on here.

Can Nolberto be contacted? Maybe he would be so kind as to assist.

regards
Frans

Post Reply