Click here to Skip to main content
15,849,180 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Basic doubt with Class template Pin
hrishi3215-Jul-11 21:41
hrishi3215-Jul-11 21:41 
AnswerRe: Basic doubt with Class template Pin
Albert Holguin6-Jul-11 5:06
professionalAlbert Holguin6-Jul-11 5:06 
GeneralRe: Basic doubt with Class template Pin
hrishi3216-Jul-11 18:17
hrishi3216-Jul-11 18:17 
GeneralRe: Basic doubt with Class template Pin
Richard MacCutchan6-Jul-11 22:59
mveRichard MacCutchan6-Jul-11 22:59 
GeneralRe: Basic doubt with Class template Pin
hrishi3217-Jul-11 1:08
hrishi3217-Jul-11 1:08 
GeneralRe: Basic doubt with Class template Pin
Richard MacCutchan7-Jul-11 2:33
mveRichard MacCutchan7-Jul-11 2:33 
GeneralRe: Basic doubt with Class template [modified] Pin
hrishi3217-Jul-11 17:28
hrishi3217-Jul-11 17:28 
GeneralRe: Basic doubt with Class template Pin
Richard MacCutchan7-Jul-11 23:54
mveRichard MacCutchan7-Jul-11 23:54 
I have no idea what you are doing wrong, as you have not shown your code. Here is an implementation that works; just copy this code and paste into a single .cpp file and build it.
#include <iostream>

using namespace std;


template <class T> 
class CMyTemplate
{
public:
	virtual void Method1(T& TDummy);
};

template <class T>
void CMyTemplate<T>::Method1(T& TDummy)
{
	TDummy = TDummy + 1;
}

int wmain()
{
	int					zz = 25;
	CMyTemplate<int>	objT;
	objT.Method1(zz);
	wcout << L"Value of the dummy: " << zz << endl;

	return 0;
}

The best things in life are not things.

GeneralRe: Basic doubt with Class template Pin
hrishi3218-Jul-11 0:18
hrishi3218-Jul-11 0:18 
GeneralRe: Basic doubt with Class template Pin
Richard MacCutchan8-Jul-11 1:31
mveRichard MacCutchan8-Jul-11 1:31 
AnswerRe: Basic doubt with Class template Pin
Orjan Westin5-Aug-11 9:49
professionalOrjan Westin5-Aug-11 9:49 
AnswerRe: Basic doubt with Class template Pin
Paul M Watt10-Jul-11 17:09
mentorPaul M Watt10-Jul-11 17:09 
GeneralRe: Basic doubt with Class template Pin
hrishi32110-Jul-11 17:59
hrishi32110-Jul-11 17:59 
AnswerRe: Basic doubt with Class template Pin
Bram van Kampen19-Aug-11 15:54
Bram van Kampen19-Aug-11 15:54 
Questionbackgroud worker thread crashes but fine when foreground Pin
VeganFanatic26-Jun-11 5:44
VeganFanatic26-Jun-11 5:44 
AnswerRe: backgroud worker thread crashes but fine when foreground Pin
Richard MacCutchan26-Jun-11 6:18
mveRichard MacCutchan26-Jun-11 6:18 
GeneralRe: backgroud worker thread crashes but fine when foreground Pin
VeganFanatic26-Jun-11 6:19
VeganFanatic26-Jun-11 6:19 
GeneralRe: backgroud worker thread crashes but fine when foreground Pin
Richard MacCutchan26-Jun-11 6:44
mveRichard MacCutchan26-Jun-11 6:44 
GeneralRe: backgroud worker thread crashes but fine when foreground Pin
VeganFanatic26-Jun-11 6:46
VeganFanatic26-Jun-11 6:46 
GeneralRe: backgroud worker thread crashes but fine when foreground Pin
Richard MacCutchan26-Jun-11 6:57
mveRichard MacCutchan26-Jun-11 6:57 
GeneralRe: backgroud worker thread crashes but fine when foreground Pin
VeganFanatic26-Jun-11 6:58
VeganFanatic26-Jun-11 6:58 
GeneralRe: backgroud worker thread crashes but fine when foreground Pin
Richard MacCutchan26-Jun-11 7:06
mveRichard MacCutchan26-Jun-11 7:06 
GeneralRe: backgroud worker thread crashes but fine when foreground Pin
VeganFanatic26-Jun-11 7:08
VeganFanatic26-Jun-11 7:08 
AnswerRe: backgroud worker thread crashes but fine when foreground Pin
Albert Holguin5-Jul-11 10:52
professionalAlbert Holguin5-Jul-11 10:52 
AnswerRe: backgroud worker thread crashes but fine when foreground Pin
Paul M Watt10-Jul-11 17:24
mentorPaul M Watt10-Jul-11 17:24 

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.