🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.multi-tier
4 messages
4 total messages Started by colin Wed, 10 Oct 2001 08:24
how to throw exeption on server and catch it in client
#435
Author: colin
Date: Wed, 10 Oct 2001 08:24
13 lines
1208 bytes
interface��
STDMETHODIMP TgggImpl::Show()
{
throw Exception("aaa");
}
client:
try
{
ggg->Show()}
catch(Exception &e)
{ShowMessage(e.Message);
}
but cannot catch it ,how to catch it
Re: how to throw exeption on server and catch it in client
#448
Author: Mark Cashman
Date: Mon, 29 Oct 2001 12:12
13 lines
1469 bytes
Hi, Colin!

Please provide details about the technology you are using to connect the
client and the server.

------
Mark Cashman (TeamB - C++ Builder), creator of The Temporal Doorway at
http://www.temporaldoorway.com
- Original digital art, writing, music and more -
C++ Builder / JBuilder Tips and The C++ Builder Programmer's Webring
(Join us!)
http://www.temporaldoorway.com/programming/index.htm
------
Re: how to throw exeption on server and catch it in client
#450
Author: Mark Cashman
Date: Mon, 29 Oct 2001 12:29
15 lines
1592 bytes
Hi, Colin!

The only way I know of to pass an error across a COM or DCOM interface
is via the HRESULT. I vaguely recall the existence of an option that
automatically translates an error HRESULT into an exception on the
client side, but I can't find it in the documentation.

------
Mark Cashman (TeamB - C++ Builder), creator of The Temporal Doorway at
http://www.temporaldoorway.com
- Original digital art, writing, music and more -
C++ Builder / JBuilder Tips and The C++ Builder Programmer's Webring
(Join us!)
http://www.temporaldoorway.com/programming/index.htm
------
Re: how to throw exeption on server and catch it in client
#452
Author: vavan
Date: Tue, 30 Oct 2001 07:22
12 lines
1459 bytes
On Mon, 29 Oct 2001 07:29:51 -0500, Mark Cashman
<mcashman@temporaldoorway.com> wrote:

>is via the HRESULT. I vaguely recall the existence of an option that
>automatically translates an error HRESULT into an exception on the
>client side, but I can't find it in the documentation.

You can achieve (theoretically) this using ICreateErrorInfo. For
additional details go http://www.techvanguards.com/

--
Vladimir Ulchenko aka vavan
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads