Click here to Skip to main content
15,886,806 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Residental Application Pin
Blake Miller7-Oct-04 10:58
Blake Miller7-Oct-04 10:58 
GeneralRe: Residental Application Pin
David Crow7-Oct-04 11:12
David Crow7-Oct-04 11:12 
GeneralRe: Residental Application Pin
Mike Beckerleg7-Oct-04 4:12
Mike Beckerleg7-Oct-04 4:12 
GeneralRe: Residental Application Pin
Blake Miller7-Oct-04 10:59
Blake Miller7-Oct-04 10:59 
QuestionHow do I keep Yahoo's IM toast from poping over my screensaver? Pin
randythawkins7-Oct-04 2:27
randythawkins7-Oct-04 2:27 
GeneralNeed handle to CDocument. Pin
Jack12467-Oct-04 2:12
sussJack12467-Oct-04 2:12 
GeneralRe: Need handle to CDocument. Pin
David Crow7-Oct-04 4:15
David Crow7-Oct-04 4:15 
Generaltemplate problems Pin
pankajdaga7-Oct-04 2:01
pankajdaga7-Oct-04 2:01 
Hi everyone,

I am having problems trying to use a templated function.

I have a templated function like so:

template <class T>
bool SetCellStyle(int row, int column, const T & value)

Now I call the function like this for example:

void MyFunc(int value)
{
objectPointer->SetCellStyle<int>(row, column, value);
}

This results in the following error:
error C2275: 'int' : illegal use of this type as an expression.

I do not know why I am not allowed to do this. I would really appreciate some help here.

Thanks,
Pankaj

<font size = "1">
/**
I'm the one who's gonna have to die
When it's time for me to die
So let me live my life
The way I want to
- Jimi Hendrix
*/</font>
GeneralRe: template problems Pin
Joaquín M López Muñoz7-Oct-04 2:29
Joaquín M López Muñoz7-Oct-04 2:29 
GeneralRe: template problems Pin
Joaquín M López Muñoz7-Oct-04 2:38
Joaquín M López Muñoz7-Oct-04 2:38 
GeneralRe: template problems Pin
pankajdaga7-Oct-04 10:44
pankajdaga7-Oct-04 10:44 
GeneralDebugging DLL project in VC++ 6.0 Pin
Neeranjan7-Oct-04 1:51
Neeranjan7-Oct-04 1:51 
GeneralRe: Debugging DLL project in VC++ 6.0 Pin
Roger Allen7-Oct-04 7:13
Roger Allen7-Oct-04 7:13 
GeneralWriting/Reading binaric objects to/from a file Pin
impeham7-Oct-04 1:46
impeham7-Oct-04 1:46 
GeneralRe: Writing/Reading binaric objects to/from a file Pin
Cedric Moonen7-Oct-04 2:19
Cedric Moonen7-Oct-04 2:19 
GeneralRe: Writing/Reading binaric objects to/from a file Pin
impeham7-Oct-04 2:45
impeham7-Oct-04 2:45 
GeneralRe: Writing/Reading binaric objects to/from a file Pin
Cedric Moonen7-Oct-04 3:03
Cedric Moonen7-Oct-04 3:03 
GeneralRe: Writing/Reading binaric objects to/from a file Pin
Ravi Bhavnani7-Oct-04 2:23
professionalRavi Bhavnani7-Oct-04 2:23 
GeneralData Sharing Pin
shiraztk7-Oct-04 0:49
shiraztk7-Oct-04 0:49 
GeneralRe: Data Sharing Pin
Cedric Moonen7-Oct-04 1:12
Cedric Moonen7-Oct-04 1:12 
GeneralRe: Data Sharing Pin
Blake Miller7-Oct-04 11:07
Blake Miller7-Oct-04 11:07 
GeneralRe: Data Sharing Pin
jan larsen7-Oct-04 1:22
jan larsen7-Oct-04 1:22 
GeneralRe: Data Sharing Pin
shiraztk7-Oct-04 19:40
shiraztk7-Oct-04 19:40 
GeneralConverting CString Pin
Franz Klein7-Oct-04 0:07
Franz Klein7-Oct-04 0:07 
GeneralRe: Converting CString Pin
Joaquín M López Muñoz7-Oct-04 2:40
Joaquín M López Muñoz7-Oct-04 2:40 

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.