Click here to Skip to main content
15,913,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Numeric Template Error C2296 Pin
Richard MacCutchan27-Jan-10 22:00
mveRichard MacCutchan27-Jan-10 22:00 
GeneralRe: Numeric Template Error C2296 Pin
Skippums28-Jan-10 3:49
Skippums28-Jan-10 3:49 
OK... I must not be communicating clearly, so here is how I am currently interpreting your answers:

"There is no way to put a compile-time (ie, using the preprocessor) guard on a block of statements based on the type of a template parameter. If you want to execute code within a template for types with differing interfaces, you must either create specialized templates for each type, create multiple methods with unique signatures, or typecast the input to the appropriate type for each applicable section of code. Any of these methods will work, and there is no other way to accomplish the same thing."

Did I interpret your answers correctly, or is something above not true? Thanks,

Sounds like somebody's got a case of the Mondays

-Jeff

GeneralRe: Numeric Template Error C2296 Pin
Richard MacCutchan28-Jan-10 5:16
mveRichard MacCutchan28-Jan-10 5:16 
GeneralRe: Numeric Template Error C2296 Pin
Ken Moynihan28-Jun-10 16:41
Ken Moynihan28-Jun-10 16:41 
GeneralRe: Numeric Template Error C2296 Pin
Richard MacCutchan28-Jun-10 21:29
mveRichard MacCutchan28-Jun-10 21:29 
GeneralRe: Numeric Template Error C2296 Pin
kmoy00728-Jun-10 22:46
kmoy00728-Jun-10 22:46 
GeneralRe: Numeric Template Error C2296 Pin
Richard MacCutchan29-Jun-10 1:40
mveRichard MacCutchan29-Jun-10 1:40 
Questionscrolling image using GDI+ under Windows 7 is very slow and flicking Pin
CODEPC27-Jan-10 4:14
CODEPC27-Jan-10 4:14 
AnswerRe: scrolling image using GDI+ under Windows 7 is very slow and flicking Pin
LunaticFringe27-Jan-10 11:08
LunaticFringe27-Jan-10 11:08 
GeneralRe: scrolling image using GDI+ under Windows 7 is very slow and flicking Pin
CODEPC27-Jan-10 12:09
CODEPC27-Jan-10 12:09 
GeneralRe: scrolling image using GDI+ under Windows 7 is very slow and flicking Pin
LunaticFringe27-Jan-10 13:06
LunaticFringe27-Jan-10 13:06 
QuestionClosing a document and leaving the view Pin
maycockt27-Jan-10 3:13
maycockt27-Jan-10 3:13 
AnswerRe: Closing a document and leaving the view Pin
CPallini27-Jan-10 3:30
mveCPallini27-Jan-10 3:30 
GeneralRe: Closing a document and leaving the view [modified] Pin
maycockt27-Jan-10 3:58
maycockt27-Jan-10 3:58 
AnswerRe: Closing a document and leaving the view Pin
krmed27-Jan-10 4:37
krmed27-Jan-10 4:37 
GeneralRe: Closing a document and leaving the view Pin
maycockt27-Jan-10 4:48
maycockt27-Jan-10 4:48 
GeneralRe: Closing a document and leaving the view Pin
krmed27-Jan-10 4:53
krmed27-Jan-10 4:53 
GeneralRe: Closing a document and leaving the view Pin
maycockt27-Jan-10 4:58
maycockt27-Jan-10 4:58 
GeneralRe: Closing a document and leaving the view Pin
krmed27-Jan-10 5:05
krmed27-Jan-10 5:05 
GeneralRe: Closing a document and leaving the view Pin
maycockt27-Jan-10 5:14
maycockt27-Jan-10 5:14 
QuestionHow to HTML Email using Simple MAPI Interface Pin
SNArruda27-Jan-10 2:51
SNArruda27-Jan-10 2:51 
AnswerRe: How to HTML Email using Simple MAPI Interface Pin
Rozis27-Jan-10 11:38
Rozis27-Jan-10 11:38 
QuestionCFileDialog doubt Pin
Member 439977127-Jan-10 0:39
Member 439977127-Jan-10 0:39 
AnswerRe: CFileDialog doubt Pin
Roger Stoltz27-Jan-10 0:46
Roger Stoltz27-Jan-10 0:46 
GeneralRe: CFileDialog doubt Pin
Rajesh R Subramanian27-Jan-10 0:48
professionalRajesh R Subramanian27-Jan-10 0:48 

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.