🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #250

Re: Return MIDAS error mesages

#250
From: Carlos F. Quijano
Date: Wed, 17 Jul 2002 22:21
78 lines
2420 bytes
thx!


well, an example can be:

Server:

STDMETHODIMP TQARiskAppSrvrImpl::RS_Iniciar()
{
  HRESULT ret;

  int i;

     try{
            int a =  1/0;  // ERROR!
      }
      catch(Exception &e){
        return Error(e.Message.c_str(), IID_IQARiskAppSrvr); // IN COM WORKS
OK , BUT IN MIDAS I CANT SEE THE MESSAGE TEXT
      }
    }
  return ret;
}


Client:

void __fastcall TDMQARisk::dcomcQAAfterConnect(TObject *Sender)
{
  IQARiskAppSrvrDisp QARiskServer;
  try
  {
    if (!DMQARisk->dcomcQA->Connected)
      DMQARisk->dcomcQA->Connected = true;
    QARiskServer.Bind(DMQARisk->dcomcQA->GetServer());
    try
    {
      QARiskServer->RS_Iniciar();
    }
    catch(...){ // HOW CAN I TAKE THE ERROR MESSAGE????

    }
  }
  __finally
  {
    if (QARiskServer.IsBound())
      QARiskServer.Unbind();
  }


THX FOR ALL!!

Carlos





"vavan" <vavan@santel.ru> wrote in message
news:hs1ajugvj0on4o3rlg7q9g3mo6319ggmij@4ax.com...
> On Tue, 16 Jul 2002 11:10:58 -0500, "Carlos F. Quijano"
> <cquijanot@cable.net.co> wrote:
>
> >I have a development over MIDAS and I need to return to client extended
> >error messages.
> >
> >I try to use:
> >
> >return Error(.....
> >
> >but my client no see that.
>
> could you please be more specific in what exactly you're trying to do?
>
> show your code (both client and appserver)
>
> --
> Vladimir Ulchenko aka vavan
Technical Details
Message-ID: <3d35edec_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3d34457c$1_2@dnews> <hs1ajugvj0on4o3rlg7q9g3mo6319ggmij@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,8d4f5f1f9527f08e
X-Google-Attributes: gidfcd2b,public
X-Google-ArrivalTime: 2002-07-17 15:34:19 PST
From: "Carlos F. Quijano" <cquijanot@cable.net.co>
Newsgroups: borland.public.cppbuilder.database.multi-tier
References: <3d34457c$1_2@dnews> <hs1ajugvj0on4o3rlg7q9g3mo6319ggmij@4ax.com>
Subject: Re: Return MIDAS error mesages
Date: Wed, 17 Jul 2002 17:21:55 -0500
Lines: 80
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 200.24.80.34
Message-ID: <3d35edec_1@dnews>
X-Trace: dnews 1026944492 200.24.80.34 (17 Jul 2002 15:21:32 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews