Click here to Skip to main content
15,910,009 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CFormView question ... Pin
Tom Archer30-Apr-02 22:26
Tom Archer30-Apr-02 22:26 
GeneralPutting an OLE or ActiveX in CView ... Pin
Hadi Rezaee30-Apr-02 19:02
Hadi Rezaee30-Apr-02 19:02 
GeneralRe: Putting an OLE or ActiveX in CView ... Pin
Mazdak1-May-02 0:32
Mazdak1-May-02 0:32 
Generaltoolbar buttons style Pin
Gabriel.P.G30-Apr-02 18:23
Gabriel.P.G30-Apr-02 18:23 
GeneralRe: toolbar buttons style Pin
Matt Philmon1-May-02 1:56
Matt Philmon1-May-02 1:56 
QuestionRecording Metafiles in Gdi+ into a Memory Buffer---possible? Pin
Swinefeaster30-Apr-02 17:17
Swinefeaster30-Apr-02 17:17 
QuestionQuestion bout menus? Pin
MaTrIX2k230-Apr-02 16:59
MaTrIX2k230-Apr-02 16:59 
GeneralDoubt in Template Pin
arthivjii30-Apr-02 15:49
arthivjii30-Apr-02 15:49 
I am creating a template class, with different functionalities. Some of them can work only with numeric types(short, float, double). But the user can still instantiate objects using non-numeric types such as "char" (To use the functionalities which need not require numeric types). I want to know how I can tell the user in run-time that certain operations are not applicable to a particular data type.
How do I check the data type instantiated in the object and let the user know that what he is trying to do is not possible?

I will be very grateful for suggestions?
(This is a simple C++ class and I am not using MFC)

Confused | :confused: Confused | :confused: Confused | :confused:
GeneralRe: Doubt in Template Pin
Tom Archer30-Apr-02 16:16
Tom Archer30-Apr-02 16:16 
GeneralRe: Doubt in Template Pin
Christian Graus30-Apr-02 19:07
protectorChristian Graus30-Apr-02 19:07 
GeneralRe: Doubt in Template Pin
Maxwell Chen1-May-02 6:15
Maxwell Chen1-May-02 6:15 
GeneralControl array Pin
marcela30-Apr-02 15:09
marcela30-Apr-02 15:09 
GeneralRe: Control array Pin
marcela30-Apr-02 15:33
marcela30-Apr-02 15:33 
GeneralRe: Control array Pin
Tom Archer30-Apr-02 16:13
Tom Archer30-Apr-02 16:13 
GeneralRe: Control array Pin
marcela30-Apr-02 17:33
marcela30-Apr-02 17:33 
GeneralRe: Control array Pin
Tom Archer30-Apr-02 18:01
Tom Archer30-Apr-02 18:01 
GeneralA Simple CString Question. Pin
Zizilamoroso30-Apr-02 13:23
Zizilamoroso30-Apr-02 13:23 
GeneralRe: A Simple CString Question. Pin
Christian Graus30-Apr-02 13:50
protectorChristian Graus30-Apr-02 13:50 
GeneralRe: A Simple CString Question. Pin
Nish Nishant30-Apr-02 13:56
sitebuilderNish Nishant30-Apr-02 13:56 
GeneralRe: A Simple CString Question. Pin
Tom Archer30-Apr-02 16:14
Tom Archer30-Apr-02 16:14 
GeneralRe: A Simple CString Question. Pin
Nish Nishant30-Apr-02 17:08
sitebuilderNish Nishant30-Apr-02 17:08 
GeneralRe: A Simple CString Question. Pin
Tom Archer30-Apr-02 17:12
Tom Archer30-Apr-02 17:12 
GeneralRe: A Simple CString Question. Pin
Nish Nishant30-Apr-02 17:45
sitebuilderNish Nishant30-Apr-02 17:45 
GeneralRe: A Simple CString Question. Pin
Tom Archer30-Apr-02 17:14
Tom Archer30-Apr-02 17:14 
GeneralRe: A Simple CString Question. Pin
Nish Nishant30-Apr-02 17:51
sitebuilderNish Nishant30-Apr-02 17:51 

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.