Hi,
BCPPBuilder 5.01 Proffesional, DOA 3.43.
I call DOA DLL from a 3rd Party (non-Delphi) app. Basically I export entry point and when the external app calls my DLL :
1)Create a form which has Oracle Session on it (not connected yet)
2)Call Logon()
It fails with
ORA-12154 could not ressolve service name.
I have been using DOA for several years now, and very familiar with the error, so tried obvious things like .world with service name
etc. Can connect from IDE OK...
Is it possible to debug into the source code in BCPP Builder code of DOA - I've been using Delphi all the time before...
Another thought - we are registered and have source code, but still could it be that I somehow running unregistered version and because I use host app to call my DLL it does not work??
I did not modify DllMain or anything should I do anything specific in it for DOA to work. All I have is:
#pragma argsused
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fwdreason, LPVOID lpvReserved)
{
return 1;
}
I am not using memmgr.lib/dll either - my main is CPP and form's module is cpp but file with exported function is .C.
Any ideas, pleeeeeeaaaaseeee.....
Sergei, Glasgow.
See code below:
AnsiString ask_string(){
AnsiString returnValue;
AskForm = new TAskForm(NULL); AskForm->Sess1->LogOn();
if (AskForm->ShowModal() == mrOk){
//returnValue = AskForm->Edit1->Text;
if (!AskForm->ODSet1->Bof &&
!AskForm->ODSet1->Eof) {
returnValue = AnsiString(
AskForm->ODSet1->FieldValues["INSTANCEID_REF"]);
}
} else
returnValue = "";
delete AskForm;
AskForm = NULL;
return returnValue;
};
------------------
Sergei
BCPPBuilder 5.01 Proffesional, DOA 3.43.
I call DOA DLL from a 3rd Party (non-Delphi) app. Basically I export entry point and when the external app calls my DLL :
1)Create a form which has Oracle Session on it (not connected yet)
2)Call Logon()
It fails with
ORA-12154 could not ressolve service name.
I have been using DOA for several years now, and very familiar with the error, so tried obvious things like .world with service name
etc. Can connect from IDE OK...
Is it possible to debug into the source code in BCPP Builder code of DOA - I've been using Delphi all the time before...
Another thought - we are registered and have source code, but still could it be that I somehow running unregistered version and because I use host app to call my DLL it does not work??
I did not modify DllMain or anything should I do anything specific in it for DOA to work. All I have is:
#pragma argsused
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fwdreason, LPVOID lpvReserved)
{
return 1;
}
I am not using memmgr.lib/dll either - my main is CPP and form's module is cpp but file with exported function is .C.
Any ideas, pleeeeeeaaaaseeee.....
Sergei, Glasgow.
See code below:
AnsiString ask_string(){
AnsiString returnValue;
AskForm = new TAskForm(NULL); AskForm->Sess1->LogOn();
if (AskForm->ShowModal() == mrOk){
//returnValue = AskForm->Edit1->Text;
if (!AskForm->ODSet1->Bof &&
!AskForm->ODSet1->Eof) {
returnValue = AnsiString(
AskForm->ODSet1->FieldValues["INSTANCEID_REF"]);
}
} else
returnValue = "";
delete AskForm;
AskForm = NULL;
return returnValue;
};
------------------
Sergei