Click here to Skip to main content
15,890,185 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTrayIcon RightClick - Enable and Disable Pin
Paulraj G27-Dec-07 18:24
Paulraj G27-Dec-07 18:24 
GeneralRe: TrayIcon RightClick - Enable and Disable Pin
Nishad S27-Dec-07 19:52
Nishad S27-Dec-07 19:52 
GeneralProblem in writing template function inside class Pin
Naveen27-Dec-07 18:21
Naveen27-Dec-07 18:21 
GeneralRe: Problem in writing template function inside class [modified] Pin
Maxwell Chen27-Dec-07 18:47
Maxwell Chen27-Dec-07 18:47 
GeneralRe: Problem in writing template function inside class Pin
Naveen27-Dec-07 19:16
Naveen27-Dec-07 19:16 
GeneralRe: Problem in writing template function inside class Pin
Sarath C27-Dec-07 20:11
Sarath C27-Dec-07 20:11 
GeneralRe: Problem in writing template function inside class Pin
Maxwell Chen27-Dec-07 22:34
Maxwell Chen27-Dec-07 22:34 
GeneralRe: Problem in writing template function inside class Pin
Mahesh Kulkarni27-Dec-07 22:29
Mahesh Kulkarni27-Dec-07 22:29 
Hi Naveen ,
You are right the code given by you is working on VC7 and onwards
But if you want to make it possible on VC6 then please refere the code given below and make the changes accordingly. Hope this will help you.

template<class T><br />
class Test<br />
{<br />
public:<br />
 void someFunction( T obj );<br />
};<br />
<br />
template<class T> <br />
void Test<T>::someFunction( T obj )<br />
{<br />
<br />
}<br />
<br />
int main(int argc, char* argv[])<br />
{ <br />
int n = 0;<br />
Test<int> obj;<br />
obj.someFunction( n );// error comes here<br />
return 0;<br />
}


The secret of life is not enjoyment
but education through experience.
- Swami Vivekananda.


GeneralRe: Problem in writing template function inside class Pin
Naveen27-Dec-07 22:34
Naveen27-Dec-07 22:34 
GeneralRe: Problem in writing template function inside class Pin
Maxwell Chen27-Dec-07 22:39
Maxwell Chen27-Dec-07 22:39 
GeneralRe: Problem in writing template function inside class Pin
Mahesh Kulkarni27-Dec-07 22:58
Mahesh Kulkarni27-Dec-07 22:58 
GeneralRe: Problem in writing template function inside class Pin
Maxwell Chen27-Dec-07 23:05
Maxwell Chen27-Dec-07 23:05 
QuestionHow to resize bitmap which in CStatic Pin
hanlei000000000927-Dec-07 15:05
hanlei000000000927-Dec-07 15:05 
AnswerRe: How to resize bitmap which in CStatic Pin
peterchen27-Dec-07 15:36
peterchen27-Dec-07 15:36 
GeneralThank you, my problem has been solved by use WndImage Control. Pin
hanlei000000000927-Dec-07 16:37
hanlei000000000927-Dec-07 16:37 
GeneralWho can know the question of this program Pin
richardye27-Dec-07 14:06
richardye27-Dec-07 14:06 
GeneralAlternatives to FillRect Pin
KellyR27-Dec-07 11:28
KellyR27-Dec-07 11:28 
GeneralRe: Alternatives to FillRect Pin
Mark Salsbery27-Dec-07 11:53
Mark Salsbery27-Dec-07 11:53 
GeneralRe: Alternatives to FillRect Pin
KellyR27-Dec-07 16:43
KellyR27-Dec-07 16:43 
GeneralRe: Alternatives to FillRect Pin
Nishad S27-Dec-07 17:52
Nishad S27-Dec-07 17:52 
GeneralRe: Alternatives to FillRect Pin
KellyR28-Dec-07 3:51
KellyR28-Dec-07 3:51 
GeneralRe: Alternatives to FillRect Pin
Nishad S30-Dec-07 18:08
Nishad S30-Dec-07 18:08 
GeneralRe: Alternatives to FillRect Pin
cmk27-Dec-07 16:30
cmk27-Dec-07 16:30 
GeneralRe: Alternatives to FillRect Pin
KellyR28-Dec-07 3:52
KellyR28-Dec-07 3:52 
GeneralRe: Alternatives to FillRect Pin
cmk28-Dec-07 9:49
cmk28-Dec-07 9:49 

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.