Subject | Re: Firebird function to test if a database connection is not disconnected? |
---|---|
Author | jeff_j_dunlap |
Post date | 2009-05-15T15:21:49Z |
--- In firebird-support@yahoogroups.com, Dimitry Sibiryakov <sd@...> wrote:
I'm using VC++ 2005 and it COMPILES nicely but will not LINK into my C++ application. The isc_database_info() fucntion causes the linker error:
LNK2019: unresolved external symbol _isc_database_info@24 referenced in function "bool __cdecl IB_Connected(void * &)" (?IB_Connected@@YA_NAAPAX@Z)
I tried wrapping the header like this:
extern "C" {
#include "ibase.h"
}
But still get the same linker error.
> The easiest way is... just to call it. Here is piece of code:I really wish I was just writing to thank you for this efficient function that I really hope to use.
>
> bool IB_Connected(isc_db_handle& Handle)
> {
> if (Handle != NULL)
> {
> ISC_STATUS_ARRAY status_array;
> char request_buffer = isc_info_implementation;
> char result_buffer[10];
>
> if (isc_database_info(status_array, &Handle, 1, &request_buffer,
> sizeof(result_buffer), result_buffer))
> {
> Handle = NULL;
> }
> else
> return true;
> }
> return false;
> }
>
> SY, SD.
I'm using VC++ 2005 and it COMPILES nicely but will not LINK into my C++ application. The isc_database_info() fucntion causes the linker error:
LNK2019: unresolved external symbol _isc_database_info@24 referenced in function "bool __cdecl IB_Connected(void * &)" (?IB_Connected@@YA_NAAPAX@Z)
I tried wrapping the header like this:
extern "C" {
#include "ibase.h"
}
But still get the same linker error.