Hi Rodrigues,
Saw your code.. Did the program compile ???? because i think u are using "void *proc" as pointer to a fuction called "noticeproc" but the way u have defined the pointer to a function is not correct.
the declaration should be like this ,
PQnoticeProcessor (*proc) (void *, char * );
now proc becomes pointer to function which takes 2 parameters and returns PQnotice..........
Well i didn;t see your rest of the code ... But if the problem persists then we can see that also...
Ciao Tapesh
--- Goldwyn Rodrigues goldwyn_r@myrealbox.com wrote:
Hi Guys,
code : accessing postgresql databases using C. Library used: libpq-fe.h
I am trying to change the notice processor of the C program so that all errors and notices are caught in the notice.txt file. The SQL error is deliberate to generate an error. But the program just does'nt work, or probably the syntax usage is wrong. I have tried all permutations and combinations, except the right one ;)
It is a major goof up of pointers. I have attached the program, please help.
Thanx
Goldwyn :o)
ATTACHMENT part 2 application/octet-stream
name=notice.c
__________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com