PC Review


Reply
Thread Tools Rate Thread

how to display error message?

 
 
LunaMoon
Guest
Posts: n/a
 
      6th Jul 2008
Hi all,

I am using VC++ to develop some XLL file for use in Excel 2003.

Of course there are bugs.

The cell display "#NUM!".

But in VC++ I've already thrown exception with error message:

if (a!=b)
throw Constructor ("a must be equal b.", "myclass")...

Why couldn't I see the error message in Excel?

Thanks!

 
Reply With Quote
 
 
 
 
FSt1
Guest
Posts: n/a
 
      6th Jul 2008
hi
not sure if i'm uderstanding correctly but if a cell is displaying #NUM!,
that is the error.
what is the fomula that is generating the error.
see this site for a explination of excel formula errors.
http://www.dummies.com/WileyCDA/Dumm...FFICESOFT.html

regards
FSt1

"LunaMoon" wrote:

> Hi all,
>
> I am using VC++ to develop some XLL file for use in Excel 2003.
>
> Of course there are bugs.
>
> The cell display "#NUM!".
>
> But in VC++ I've already thrown exception with error message:
>
> if (a!=b)
> throw Constructor ("a must be equal b.", "myclass")...
>
> Why couldn't I see the error message in Excel?
>
> Thanks!
>
>

 
Reply With Quote
 
JLGWhiz
Guest
Posts: n/a
 
      6th Jul 2008
Is this what you are looking for?
Sub ErrorOut()
'Code that errors
On Error GoTo Handler:
'Other code
Exit Sub
Handler:
ErrMsg = Error(Err.Number)
MsgBox "Error Is: " & ErrMsg
End Sub


"LunaMoon" wrote:

> Hi all,
>
> I am using VC++ to develop some XLL file for use in Excel 2003.
>
> Of course there are bugs.
>
> The cell display "#NUM!".
>
> But in VC++ I've already thrown exception with error message:
>
> if (a!=b)
> throw Constructor ("a must be equal b.", "myclass")...
>
> Why couldn't I see the error message in Excel?
>
> Thanks!
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to display error message? LunaMoon Microsoft Excel Discussion 2 6th Jul 2008 08:46 PM
how to display error message? LunaMoon Microsoft Excel Misc 2 6th Jul 2008 08:46 PM
Display Error Message Terry DeJournett Microsoft Access Queries 1 9th May 2006 07:24 PM
display error message pierre Microsoft Access Forms 1 30th Dec 2005 05:04 PM
Display error in Message Box =?Utf-8?B?U2FuZHk=?= Microsoft VB .NET 2 19th Apr 2004 03:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:30 PM.