Click here to Skip to main content
15,897,718 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Removing MFC dependancy in MFC Extenstion DLL Pin
Mark Salsbery11-Dec-08 6:06
Mark Salsbery11-Dec-08 6:06 
GeneralRe: Removing MFC dependancy in MFC Extenstion DLL Pin
Nishad S11-Dec-08 17:45
Nishad S11-Dec-08 17:45 
AnswerRe: Removing MFC dependancy in MFC Extenstion DLL Pin
Michael Dunn10-Dec-08 9:29
sitebuilderMichael Dunn10-Dec-08 9:29 
GeneralRe: Removing MFC dependancy in MFC Extenstion DLL Pin
Nishad S10-Dec-08 21:16
Nishad S10-Dec-08 21:16 
Questiondoubt in Template Pin
KASR19-Dec-08 23:13
KASR19-Dec-08 23:13 
AnswerRe: doubt in Template Pin
Nishad S9-Dec-08 23:18
Nishad S9-Dec-08 23:18 
GeneralRe: doubt in Template Pin
KASR19-Dec-08 23:44
KASR19-Dec-08 23:44 
GeneralRe: doubt in Template Pin
Nishad S9-Dec-08 23:57
Nishad S9-Dec-08 23:57 
Consider the following example

template<class class="" t2="T1"> class X
{
public:
    T1 a;
    T2 b;
};

void main()
{
    X<int> m1;
    m1.a = 10; // int
    m1.b = 10; // int

    X<int,float> m2;
    m2.a = 10;   // int
    m2.b = 10.0; // float
}</class>


Here m1 is having both members as int type. It is created as X<int>, means T1 is int, and T2 which is not specified explicitly, became the default type. That is T1, which is int. So T2 is also int.

In the second case, m2, T1 is int and T2 is specified as float explicitly. Now T2 is float.

Hope now it is clear.

- NS -
[ODBaseBtn]

GeneralRe: doubt in Template Pin
KASR110-Dec-08 0:32
KASR110-Dec-08 0:32 
GeneralRe: doubt in Template Pin
CPallini10-Dec-08 0:27
mveCPallini10-Dec-08 0:27 
GeneralRe: doubt in Template Pin
KASR110-Dec-08 0:30
KASR110-Dec-08 0:30 
QuestionApplication crashes on one user account but works fine on another user account. Pin
V K 29-Dec-08 22:42
V K 29-Dec-08 22:42 
AnswerRe: Application crashes on one user account but works fine on another user account. Pin
ahmad_ali10-Dec-08 6:22
ahmad_ali10-Dec-08 6:22 
QuestionContinued Problems with VS2005 and MFC with Vista Pin
ldsdbomber9-Dec-08 22:41
ldsdbomber9-Dec-08 22:41 
Questionwhat does this error mean? Pin
monsieur_jj9-Dec-08 22:15
monsieur_jj9-Dec-08 22:15 
AnswerRe: what does this error mean? Pin
Cedric Moonen9-Dec-08 22:27
Cedric Moonen9-Dec-08 22:27 
QuestionWays to identify a specific computer Pin
Erik9-Dec-08 22:05
Erik9-Dec-08 22:05 
AnswerRe: Ways to identify a specific computer Pin
Graham Bradshaw10-Dec-08 0:07
Graham Bradshaw10-Dec-08 0:07 
AnswerRe: Ways to identify a specific computer Pin
Alan Balkany10-Dec-08 4:30
Alan Balkany10-Dec-08 4:30 
AnswerRe: Ways to identify a specific computer [modified] Pin
cmk10-Dec-08 6:08
cmk10-Dec-08 6:08 
Questionset date to a file name in C++ (DOS) Pin
mehdir219-Dec-08 22:00
mehdir219-Dec-08 22:00 
AnswerRe: set date to a file name in C++ (DOS) Pin
_AnsHUMAN_ 9-Dec-08 22:07
_AnsHUMAN_ 9-Dec-08 22:07 
QuestionVC 5.0 Compile Help Pin
dllmrobinson9-Dec-08 21:54
dllmrobinson9-Dec-08 21:54 
QuestionEnable scrollbar for editbox only if thel ength exceeds [modified] Pin
hariakuthota9-Dec-08 21:22
hariakuthota9-Dec-08 21:22 
QuestionControlling Video Camera Pin
Virex_A9-Dec-08 20:59
Virex_A9-Dec-08 20:59 

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.