Click here to Skip to main content
15,909,896 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: How the component knows it has been Advise for connection from Client? Pin
sudeesh26-Jul-06 2:53
sudeesh26-Jul-06 2:53 
Questioninterview questions on ATL COM Pin
pathakr21-Jul-06 3:49
pathakr21-Jul-06 3:49 
QuestionHope this works ! Pin
nvatia21-Jul-06 3:41
nvatia21-Jul-06 3:41 
AnswerRe: Hope this works ! Pin
Stephen Hewitt21-Jul-06 4:04
Stephen Hewitt21-Jul-06 4:04 
GeneralRe: Hope this works ! Pin
nvatia21-Jul-06 4:12
nvatia21-Jul-06 4:12 
AnswerRe: Hope this works ! Pin
Stephen Hewitt21-Jul-06 4:18
Stephen Hewitt21-Jul-06 4:18 
GeneralRe: Hope this works ! Pin
nvatia21-Jul-06 5:14
nvatia21-Jul-06 5:14 
GeneralRe: Hope this works ! Pin
Stephen Hewitt21-Jul-06 18:12
Stephen Hewitt21-Jul-06 18:12 
You need to add the extra typename when you refer to a nested type of a class that is dependant on a template parameter in a template. It tells the compiler it's a type and in this case to interpret the "*" as a pointer not multiplication.

e.g.

template<typename TYPE, typename ARG_TYPE>
typename CBanana<TYPE, ARG_TYPE>::CApple*
\-----------\/------------/ \-\/-/
2. Is nested in this class 1. This nested type
which is dependant on the
template parameters 'TYPE'
and 'ARG_TYPE'.
CBanana<TYPE, ARG_TYPE>::GetApple(typename CBananaa<TYPE, ARG_TYPE>::CApple* pApple)
{
return pApple;
}

The same goes for the other use of typename. The reason you need to do this is quite involved but actually quite reasonable once you understand it.


Steve
GeneralRe: Hope this works ! [modified] Pin
Zac Howland25-Jul-06 5:57
Zac Howland25-Jul-06 5:57 
GeneralRe: Hope this works ! Pin
Stephen Hewitt26-Jul-06 2:09
Stephen Hewitt26-Jul-06 2:09 
GeneralRe: Hope this works ! Pin
Zac Howland26-Jul-06 3:41
Zac Howland26-Jul-06 3:41 
QuestionTemplates compile error - errata 2 Pin
nvatia21-Jul-06 3:29
nvatia21-Jul-06 3:29 
AnswerRe: Templates compile error - errata 2 Pin
toxcct25-Jul-06 21:24
toxcct25-Jul-06 21:24 
QuestionTemplate compile error - errata Pin
nvatia21-Jul-06 3:26
nvatia21-Jul-06 3:26 
AnswerRe: Template compile error - errata Pin
prasad_som21-Jul-06 3:37
prasad_som21-Jul-06 3:37 
QuestionTemplates compile error Pin
nvatia21-Jul-06 3:23
nvatia21-Jul-06 3:23 
QuestionATL WTL STL Pin
mathumala21-Jul-06 3:11
mathumala21-Jul-06 3:11 
AnswerRe: ATL WTL STL Pin
toxcct21-Jul-06 3:22
toxcct21-Jul-06 3:22 
GeneralRe: ATL WTL STL Pin
Zac Howland25-Jul-06 10:11
Zac Howland25-Jul-06 10:11 
Questionsafearray access returns junk pls help Pin
nikhil_ag198520-Jul-06 1:52
nikhil_ag198520-Jul-06 1:52 
Questionneed ATL???for login to server and access data Pin
With_problem19-Jul-06 21:40
With_problem19-Jul-06 21:40 
AnswerRe: need ATL???for login to server and access data Pin
Steve S19-Jul-06 21:50
Steve S19-Jul-06 21:50 
GeneralRe: need ATL???for login to server and access data Pin
With_problem19-Jul-06 22:12
With_problem19-Jul-06 22:12 
GeneralRe: need ATL???for login to server and access data Pin
Steve S19-Jul-06 22:24
Steve S19-Jul-06 22:24 
QuestionC# BHO question Pin
elefas19-Jul-06 3:15
elefas19-Jul-06 3:15 

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.