pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
libpq and libpgtcl in Windows
4+ messages / 3 participants
[nested] [flat]

* libpq and libpgtcl in Windows
@ 1998-12-11 02:22 Hiroshi Inoue <Inoue@tpf.co.jp>
  0 siblings, 0 replies; 4+ messages in thread

From: Hiroshi Inoue @ 1998-12-11 02:22 UTC (permalink / raw)
  To: pgsql-hackers <pgsql-hackers@postgreSQL.org>; pgsql-interfaces

Hi all

I made dll's(libpq.dll,libpgtcl.dll) only for pgaccess.
It is a temporary solution for quick fix and the solution for general use 
is necessary.

I made libpgtcl.dll ignoring NOTIFY functionality(not used in pgaccess).
Sorry,I'm not a Tcl expert and can't provide proper code for NOTIFY 
functionality in Windows. 

Another problem exists between libpq and libpgtcl in Windows.
Libpgtcl references global data pgresStatus[] in libpq when using 
pg_result -status command. 
But in Windows libpgtcl doesn't reference pgresStatus[] in the same 
way as UNIX and pg_result -status returns improper values.

Any ideas ?

In my temporary solution for pgaccess,I used a function interface 
between libpq and libpgtcl instead of global data. 

Thanks

Hiroshi Inoue
Inoue@tpf.co.jp






^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* RE: [HACKERS] libpq and libpgtcl in Windows
@ 1998-12-11 14:16 Dan Gowin <DGowin@avantec.net>
  1998-12-14 00:49 ` RE: [HACKERS] libpq and libpgtcl in Windows Hiroshi Inoue <Inoue@tpf.co.jp>
  0 siblings, 1 reply; 4+ messages in thread

From: Dan Gowin @ 1998-12-11 14:16 UTC (permalink / raw)
  To: 'Hiroshi Inoue' <Inoue@tpf.co.jp>; PGSQL HACKERS (E-mail) <pgsql-hackers@postgreSQL.org>; pgsql-interfaces

Hiroshi,
	I've got a bug report for you. On a Win95 machine running
Tcl/Tk 8.1, the dll does not load correctly. A "load libpgtcl.dll"
at the "wish81" console gives a :
<Couldn't load file "libpgtcl.dll": invalid argument>. 
But it works file on Tcl/Tk 8.0 for Windows. Apparently the DLL 
interface in Tcl/Tk 8.1 is a little different, I'm not sure what 
it is. Are you using Microsoft Visual C++ or a Borland Compiler? 
The DLLs that Borland puts out are a little different but for the 
most part I have'nt to many problems with them. The Tcl that 
Scriptics puts out is compiled in Microsoft Visual C++.

I'll look at your code this weekend.

D.

-----Original Message-----
From: Hiroshi Inoue [mailto:Inoue@tpf.co.jp]
Sent: Thursday, December 10, 1998 9:23 PM
To: pgsql-hackers; pgsql-interfaces@postgreSQL.org
Subject: [HACKERS] libpq and libpgtcl in Windows


Hi all

I made dll's(libpq.dll,libpgtcl.dll) only for pgaccess.
It is a temporary solution for quick fix and the solution for general
use 
is necessary.

I made libpgtcl.dll ignoring NOTIFY functionality(not used in pgaccess).
Sorry,I'm not a Tcl expert and can't provide proper code for NOTIFY 
functionality in Windows. 

Another problem exists between libpq and libpgtcl in Windows.
Libpgtcl references global data pgresStatus[] in libpq when using 
pg_result -status command. 
But in Windows libpgtcl doesn't reference pgresStatus[] in the same 
way as UNIX and pg_result -status returns improper values.

Any ideas ?

In my temporary solution for pgaccess,I used a function interface 
between libpq and libpgtcl instead of global data. 

Thanks

Hiroshi Inoue
Inoue@tpf.co.jp






^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* RE: [HACKERS] libpq and libpgtcl in Windows
  1998-12-11 14:16 RE: [HACKERS] libpq and libpgtcl in Windows Dan Gowin <DGowin@avantec.net>
@ 1998-12-14 00:49 ` Hiroshi Inoue <Inoue@tpf.co.jp>
  1998-12-14 07:34   ` Re: [INTERFACES] RE: [HACKERS] libpq and libpgtcl in Windows Constantin Teodorescu <teo@flex.ro>
  0 siblings, 1 reply; 4+ messages in thread

From: Hiroshi Inoue @ 1998-12-14 00:49 UTC (permalink / raw)
  To: Dan Gowin <DGowin@avantec.net>; PGSQL HACKERS (E-mail) <pgsql-hackers@postgreSQL.org>; pgsql-interfaces

Hi all

> -----Original Message-----
> From: Dan Gowin [mailto:DGowin@avantec.net]
> Sent: Friday, December 11, 1998 11:17 PM
> To: 'Hiroshi Inoue'; PGSQL HACKERS (E-mail);
> 'pgsql-interfaces@postgreSQL.org'
> Subject: RE: [HACKERS] libpq and libpgtcl in Windows
> 
> 
> Hiroshi,
> 	I've got a bug report for you. On a Win95 machine running
> Tcl/Tk 8.1, the dll does not load correctly. A "load libpgtcl.dll"
> at the "wish81" console gives a :
> <Couldn't load file "libpgtcl.dll": invalid argument>. 
> But it works file on Tcl/Tk 8.0 for Windows. Apparently the DLL 
> interface in Tcl/Tk 8.1 is a little different, I'm not sure what 
> it is.

If the version of Tcl is different,the name is different(tcl76.dll,
tcl80.dll,tcl81.dll etc).
The dll I provided is only for Tcl8.0(tcl80.dll).
For Tcl8.1 another dll is necessary.
The dll for Tcl8.1 is necessary ?

 Are you using Microsoft Visual C++ or a Borland Compiler? 
> The DLLs that Borland puts out are a little different but for the 
> most part I have'nt to many problems with them. The Tcl that 
> Scriptics puts out is compiled in Microsoft Visual C++.
> 
> I'll look at your code this weekend.
> 
> D.
> 

Thanks

Hiroshi Inoue
Inoue@tpf.co.jp 



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: [INTERFACES] RE: [HACKERS] libpq and libpgtcl in Windows
  1998-12-11 14:16 RE: [HACKERS] libpq and libpgtcl in Windows Dan Gowin <DGowin@avantec.net>
  1998-12-14 00:49 ` RE: [HACKERS] libpq and libpgtcl in Windows Hiroshi Inoue <Inoue@tpf.co.jp>
@ 1998-12-14 07:34   ` Constantin Teodorescu <teo@flex.ro>
  0 siblings, 0 replies; 4+ messages in thread

From: Constantin Teodorescu @ 1998-12-14 07:34 UTC (permalink / raw)
  To: Hiroshi Inoue <Inoue@tpf.co.jp>; +Cc: Dan Gowin <DGowin@avantec.net>; PGSQL HACKERS (E-mail) <pgsql-hackers@postgreSQL.org>; pgsql-interfaces

Hiroshi Inoue wrote:
> 
> If the version of Tcl is different,the name is different(tcl76.dll,
> tcl80.dll,tcl81.dll etc).
> The dll I provided is only for Tcl8.0(tcl80.dll).
> For Tcl8.1 another dll is necessary.
> The dll for Tcl8.1 is necessary ?

Tcl/Tk 8.1 is currently in beta stage, but a lot of programmers choose
to "taste" the new flavor of Tcl/Tk 8.1
If it's not so hard, maybe it would be better to deliver DLL for all
currently available versions.


Best regards,
-- 
Constantin Teodorescu
FLEX Consulting Braila, ROMANIA



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~1998-12-14 07:34 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1998-12-11 02:22 libpq and libpgtcl in Windows Hiroshi Inoue <Inoue@tpf.co.jp>
1998-12-11 14:16 RE: [HACKERS] libpq and libpgtcl in Windows Dan Gowin <DGowin@avantec.net>
1998-12-14 00:49 ` Hiroshi Inoue <Inoue@tpf.co.jp>
1998-12-14 07:34   ` Constantin Teodorescu <teo@flex.ro>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox