Click here to Skip to main content
15,895,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: more over i have tally software Pin
mandanani30-Jul-07 21:36
mandanani30-Jul-07 21:36 
Questionhi i m working in asp.net Pin
munna_vannan30-Jul-07 20:58
munna_vannan30-Jul-07 20:58 
AnswerRe: hi i m working in asp.net Pin
Don Box30-Jul-07 21:06
Don Box30-Jul-07 21:06 
AnswerRe: hi i m working in asp.net Pin
Mark Salsbery31-Jul-07 8:07
Mark Salsbery31-Jul-07 8:07 
QuestionRe: hi i m working in asp.net Pin
Hamid_RT31-Jul-07 21:18
Hamid_RT31-Jul-07 21:18 
Questionhow to import data to tally from xml? Pin
munna_vannan30-Jul-07 20:53
munna_vannan30-Jul-07 20:53 
QuestionMember Function Template Pin
Andy Rama30-Jul-07 20:42
Andy Rama30-Jul-07 20:42 
AnswerRe: Member Function Template [modified] Pin
Nelek30-Jul-07 20:54
protectorNelek30-Jul-07 20:54 
If you dont make a return of your "T x" and you declare only "T a" and "T b" in your main... how can the programm do the operation? Try...
template
T CProg::AddValues(T a, T b)
{
T x = a+b;
return (T) x;
}


and...
void main()
{
CProg prog;
prog.SetVal(9);
int a,b, c;
a = b =8;
c = prog.AddValues(a,b);
}



What does now the programm say?

EDIT:

I have just realiced that the error you told has not much to do with my answer (but anyways is something it could fail). This code is from Simon Huge's template to a smart CList.

template<class TYPE, class ARG_TYPE>
inline CMyList<TYPE, ARG_TYPE> operator + (const CMyList<TYPE, ARG_TYPE> &lhs, const CMyList<TYPE, ARG_TYPE> &rhs)
{	CMyList newList(lhs);
	newList.AddTail(rhs);
	return newList;
}


Maybe it gives you an idea

-- modified at 3:00 Tuesday 31st July, 2007

Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

GeneralRe: Member Function Template Pin
Andy Rama30-Jul-07 21:00
Andy Rama30-Jul-07 21:00 
GeneralRe: Member Function Template Pin
Andy Rama30-Jul-07 21:09
Andy Rama30-Jul-07 21:09 
GeneralRe: Member Function Template Pin
Andy Rama30-Jul-07 21:22
Andy Rama30-Jul-07 21:22 
GeneralRe: Member Function Template Pin
Nelek30-Jul-07 21:39
protectorNelek30-Jul-07 21:39 
GeneralRe: Member Function Template Pin
jhwurmbach30-Jul-07 22:10
jhwurmbach30-Jul-07 22:10 
GeneralRe: Member Function Template Pin
Nelek30-Jul-07 23:56
protectorNelek30-Jul-07 23:56 
AnswerRe: Member Function Template Pin
Nelek30-Jul-07 21:12
protectorNelek30-Jul-07 21:12 
QuestionCString accumulation Pin
tom groezer30-Jul-07 20:40
tom groezer30-Jul-07 20:40 
AnswerRe: CString accumulation Pin
Rage30-Jul-07 20:59
professionalRage30-Jul-07 20:59 
AnswerRe: CString accumulation Pin
Joe Smith IX30-Jul-07 21:19
Joe Smith IX30-Jul-07 21:19 
QuestionRegarding Interview Pin
tasumisra30-Jul-07 20:26
tasumisra30-Jul-07 20:26 
AnswerRe: Regarding Interview Pin
mandanani30-Jul-07 20:31
mandanani30-Jul-07 20:31 
GeneralRe: Regarding Interview Pin
Nelek30-Jul-07 21:42
protectorNelek30-Jul-07 21:42 
AnswerRe: Regarding Interview Pin
David Crow31-Jul-07 2:55
David Crow31-Jul-07 2:55 
QuestionGDI Object count Pin
Nishad S30-Jul-07 20:11
Nishad S30-Jul-07 20:11 
AnswerRe: GDI Object count Pin
mandanani30-Jul-07 20:30
mandanani30-Jul-07 20:30 
GeneralRe: GDI Object count Pin
Nishad S30-Jul-07 20:57
Nishad S30-Jul-07 20:57 

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.