ERROR when access to FB2.5 from COM-object
Posted: Sat 05 Nov 2011 12:06
Hello!
My application have next structure - GUI Win32(BCB app) creates COM Object(VS app, EXE,external) that loads Dll(BCB module access to Database). When I try to connect to FB database I have error(exсeption) message box. When I use local COM object - All OK. Please help!
Here some source code:
IBCCon=new TIBCConnection(NULL);
IBCCon->Database=TS->DBFileName;
IBCCon->Server=TS->Host;
IBCCon->Password=TS->DBPass;
IBCCon->Username=TS->DBUser;
// next string executes with ERROR box
IBCInsSat=new TIBCStoredProc(NULL);
My application have next structure - GUI Win32(BCB app) creates COM Object(VS app, EXE,external) that loads Dll(BCB module access to Database). When I try to connect to FB database I have error(exсeption) message box. When I use local COM object - All OK. Please help!
Here some source code:
IBCCon=new TIBCConnection(NULL);
IBCCon->Database=TS->DBFileName;
IBCCon->Server=TS->Host;
IBCCon->Password=TS->DBPass;
IBCCon->Username=TS->DBUser;
// next string executes with ERROR box
IBCInsSat=new TIBCStoredProc(NULL);