Hi,
I need to call a 'C' external function in my newly created PostgreSQL function. I am using PostgreSQL 8.2 Version. I Have tried it by creating a 'C' Dll in VC++ 6.0 and calling this function in PostgreSQL function. When I am calling the 'C' function, It gives me message saying "Missing Magic Block", On searching Internet I got 'fmgr.h' file and I have included this file in my source code and again compiling the DLL, It gaves me a message saying "PGFunction " undeclared Identifier in VC++ 6.0. Can anybody provide me some sample code in creating a DLL in VC++ 6.0 with some functions and calling those functions in the PostgreSQL.
also provide me fmgr.h and pgmagic.h header files also.
waiting for your valuable replies.
Thanks & Regards
Gouse Shaik
I need to call a 'C' external function in my newly created PostgreSQL function. I am using PostgreSQL 8.2 Version. I Have tried it by creating a 'C' Dll in VC++ 6.0 and calling this function in PostgreSQL function. When I am calling the 'C' function, It gives me message saying "Missing Magic Block", On searching Internet I got 'fmgr.h' file and I have included this file in my source code and again compiling the DLL, It gaves me a message saying "PGFunction " undeclared Identifier in VC++ 6.0. Can anybody provide me some sample code in creating a DLL in VC++ 6.0 with some functions and calling those functions in the PostgreSQL.
also provide me fmgr.h and pgmagic.h header files also.
waiting for your valuable replies.
Thanks & Regards
Gouse Shaik