Click here to Skip to main content
16,007,472 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Variable Argument (Ellipsis (...)) in MFC Win32 DLL Pin
4apai10-Apr-05 3:54
4apai10-Apr-05 3:54 
GeneralRe: Variable Argument (Ellipsis (...)) in MFC Win32 DLL Pin
asdf1753110-Apr-05 4:52
sussasdf1753110-Apr-05 4:52 
Questionhow can i know other programs change the table in access? Pin
liuyue9-Apr-05 21:46
liuyue9-Apr-05 21:46 
AnswerRe: how can i know other programs change the table in access? Pin
4apai10-Apr-05 3:56
4apai10-Apr-05 3:56 
Generaldialog box problem Pin
quistiun9-Apr-05 20:27
quistiun9-Apr-05 20:27 
GeneralRe: dialog box problem Pin
Steve Mayfield9-Apr-05 21:07
Steve Mayfield9-Apr-05 21:07 
GeneralRe: dialog box problem Pin
quistiun9-Apr-05 21:25
quistiun9-Apr-05 21:25 
GeneralException handling problem. Pin
Nick_Kisialiou9-Apr-05 20:09
Nick_Kisialiou9-Apr-05 20:09 
What am I doing? I want my template class to send an exception when one of input parameters is out of range.
How am I doing that? The main parts of the source code are presented below.
Does it work? Yes, it does. The exception is being sent and caught in the program passing wrong input parameters, error message is successfully displayed.
So, what is wrong? I receive a strange warning during compilation: Warning C4290: C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
I don't know what's wrong with it, but I don't like warnings... especially those that I don't understand. If you can tell me what the compliler (MS VC .NET) wants from me I will be very grateful to you. Thank you!!!

#define CLogicError std::logic_error
#define STRING std::string

class CMyError : public CLogicError
{
public:
CMyError(const STRING& what_arg) : CLogicError(what_arg) {};
};


template<class T> class TMy
{
...
T& operator()(const int nRow, const int nCol) throw (CMyError);
...
}

template<class T> T& TMy<T>::operator()(const int nRow, const int nCol) throw (CMyError)
{
...
}

The warning points to the line
T& operator()(const int nRow, const int nCol) throw (CMyError);
in class definition. It does not seem to like "throw (CMyError)" part. If I change it to "throw()" the compiler stops complaining.

GeneralRe: Exception handling problem. Pin
S. Senthil Kumar9-Apr-05 21:03
S. Senthil Kumar9-Apr-05 21:03 
GeneralRe: Exception handling problem. Pin
Nick_Kisialiou10-Apr-05 9:32
Nick_Kisialiou10-Apr-05 9:32 
GeneralRe: Exception handling problem. Pin
Joaquín M López Muñoz10-Apr-05 9:47
Joaquín M López Muñoz10-Apr-05 9:47 
GeneralRe: Exception handling problem. Pin
Nick_Kisialiou10-Apr-05 13:49
Nick_Kisialiou10-Apr-05 13:49 
GeneralALGORITHM OF SUBNETTING CLASS C IN PROGRAMMING FORMAT C / C++ Pin
shayok9-Apr-05 16:24
shayok9-Apr-05 16:24 
Generalgraph/plotting software Pin
monageasmear9-Apr-05 16:23
monageasmear9-Apr-05 16:23 
GeneralRe: graph/plotting software Pin
Taka Muraoka9-Apr-05 17:00
Taka Muraoka9-Apr-05 17:00 
GeneralRe: graph/plotting software Pin
ddmcr10-Apr-05 6:03
ddmcr10-Apr-05 6:03 
GeneralRe: graph/plotting software Pin
ddmcr10-Apr-05 6:15
ddmcr10-Apr-05 6:15 
Generalbat files Pin
monageasmear9-Apr-05 16:20
monageasmear9-Apr-05 16:20 
GeneralRe: bat files Pin
liquid_9-Apr-05 22:42
liquid_9-Apr-05 22:42 
Generalgetting currency format info Pin
nm_1149-Apr-05 16:06
nm_1149-Apr-05 16:06 
GeneralRe: getting currency format info Pin
Ravi Bhavnani9-Apr-05 16:29
professionalRavi Bhavnani9-Apr-05 16:29 
GeneralRe: getting currency format info Pin
nm_1149-Apr-05 16:50
nm_1149-Apr-05 16:50 
GeneralRe: getting currency format info Pin
Ravi Bhavnani10-Apr-05 9:24
professionalRavi Bhavnani10-Apr-05 9:24 
GeneralRe: getting currency format info Pin
nm_11410-Apr-05 10:43
nm_11410-Apr-05 10:43 
GeneralRe: getting currency format info Pin
Ravi Bhavnani10-Apr-05 11:12
professionalRavi Bhavnani10-Apr-05 11:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.