By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,587 Members | 1,070 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,587 IT Pros & Developers. It's quick & easy.

Calling External 'C' Function in PostgreSQL

P: 18

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
Jul 20 '11 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.