Board index » delphi » Urgent: ASP-->Delphi3-->Oracle Backend??????

Urgent: ASP-->Delphi3-->Oracle Backend??????

Does anyone know how to implement the above using COM ???
Are there any samples or URLs I can refer to in order to implement the above

I had written the following code:

procedure Tlogin.verifyuser;
  SqlStr, PasWord : String;


     SqlStr := '';
     SqlStr := 'Select Password From SOC_USER_MST Where Upper(UserId) =
'+''''+ Trim(m_userid)+ '''';
     With VerifyPasswd Do Begin

         If (Eof and Bof)OR (Encrypt(UpperCase(Trim(m_password)),
Trim(m_userid)) <> PasWord ) Then begin
         else begin
         ShowMessage (' Please proceed ... ');

file://ShellExecute(Handle, nil, 'D:\Inetpub\wwwroot\trial\Project6.htm',
nil, nil, SW_SHOWNORMAL);


The ASP codes:

set obj = Server.CreateObject("logpro.login")
  obj.userid = Request.Form("userid")
  obj.password = Request.Form("password")

But when i run on the webpage, the error message says that:

error '8000ffff'
Unexpected Failure.

Where can i check for the meaning of the ASP error code like '8000ffff'?



Re:Urgent: ASP-->Delphi3-->Oracle Backend??????

Error 8000ffff is also known as Catastrophic Error. It is an error which
could not be correctly identified - check out the COM documentation error
and the COM-related pascal units to see when the error gets triggered.

Is TLogin an object that implements IDispatch? Are you sure your libraries
are correctly registered? Are Borland's libraries registered, too? (you will
need them if you use IStrings or other similar interfaces).

BTW, ShowMessage is a function you do *not* want to use in ASP. ASP runs on
another desktop, and it will hang IIS. Try the following routine for
debugging purposes:

procedure ReportUser(const Message :string);
  MessageBox(0, PChar(Message), nil, MB_SERVICE_NOTIFICATION or MB_TOPMOST);

The ShellExecute you have there would launch a browser on the virtual
desktop, too - an you would have no way to close it, draining system

May the code be with you.

Marcelo Lopez Ruiz

Other Threads