Thread: question concerning dll linking
Hello,
I' d like to know if it is possible to create a C function (and the associated dll) that calls functions from another dll ?
For example
CREATE OR REPLACE FUNCTION MyFunction() RETURNS INTEGER
AS 'MyDll'
AS 'MyDll'
LANGUAGE 'c';
with code for MyFunction in MyDll.dll and some others calls in MyOtherDll.dll.
Thank you for your answer.
B.S.
SIMON Benjamin wrote: > I' d like to know if it is possible to create a C function (and the > associated dll) that calls functions from another dll ? > > For example > > CREATE OR REPLACE FUNCTION MyFunction() RETURNS INTEGER > AS 'MyDll' > LANGUAGE 'c'; > > with code for MyFunction in MyDll.dll and some others calls in > MyOtherDll.dll. Presumably would would have to link MyDll.dll against other MyOtherDll.dll. Or you can use the command LOAD to load arbitary DLLs and have your code use them.
Please, I want unsuscribe
Thank you very much
----- Original Message -----From: SIMON BenjaminSent: Tuesday, February 24, 2004 1:38 PMSubject: [CYGWIN] question concerning dll linkingHello,I' d like to know if it is possible to create a C function (and the associated dll) that calls functions from another dll ?For exampleCREATE OR REPLACE FUNCTION MyFunction() RETURNS INTEGER
AS 'MyDll'LANGUAGE 'c';with code for MyFunction in MyDll.dll and some others calls in MyOtherDll.dll.Thank you for your answer.B.S.
> Please, I want unsuscribe > Thank you very much > ----- Original Message ----- > From: SIMON Benjamin > To: pgsql-cygwin@postgresql.org > Sent: Tuesday, February 24, 2004 1:38 PM > Subject: [CYGWIN] question concerning dll linking > > > Hello, > > I' d like to know if it is possible to create a C function (and the > associated dll) that calls functions from another dll ? > > For example > > CREATE OR REPLACE FUNCTION MyFunction() RETURNS INTEGER > AS 'MyDll' > LANGUAGE 'c'; > > with code for MyFunction in MyDll.dll and some others calls in > MyOtherDll.dll. > > Thank you for your answer. > > B.S. I can't see any reason why not.