el dorado <do_ra_do@xxxxxxx> writes: > (By the way, I can't compile it as C++ Code (/TP) No, you can't. > 1>d:\pgsql83\getstring\c_getstring.c(75) : warning C4311: 'type cast' : pointer truncation from 'char [8]' to 'Datum' > 1>d:\pgsql83\getstring\c_getstring.c(75) : warning C4312: 'type cast' : conversion from 'Datum' to 'Pointer' of greater size > 1>d:\pgsql83\getstring\c_getstring.c(75) : warning C4311: 'type cast' : pointer truncation from 'varlena *' to 'Datum' These look like you are trying to compile in a 64-bit environment. We don't (yet) support building 64-bit in Windows. Use 32-bit. regards, tom lane