Click here to Skip to main content
15,922,894 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: error including C files in VC++ 6 project Pin
Iain Clarke, Warrior Programmer17-Jul-03 2:58
Iain Clarke, Warrior Programmer17-Jul-03 2:58 
GeneralRe: error including C files in VC++ 6 project Pin
Iain Clarke, Warrior Programmer17-Jul-03 4:18
Iain Clarke, Warrior Programmer17-Jul-03 4:18 
Generaldesparate help needed in making a param array Pin
safee ullah17-Jul-03 2:17
safee ullah17-Jul-03 2:17 
GeneralRe: desparate help needed in making a param array Pin
Ryan Binns17-Jul-03 3:10
Ryan Binns17-Jul-03 3:10 
GeneralRe: desparate help needed in making a param array Pin
Anonymous17-Jul-03 3:59
Anonymous17-Jul-03 3:59 
GeneralRe: desparate help needed in making a param array Pin
Ryan Binns17-Jul-03 4:03
Ryan Binns17-Jul-03 4:03 
GeneralDetecting workstation access Pin
Sayan Mukherjee17-Jul-03 1:47
Sayan Mukherjee17-Jul-03 1:47 
GeneralRe: Detecting workstation access Pin
Ryan Binns17-Jul-03 3:11
Ryan Binns17-Jul-03 3:11 
GeneralRe: Detecting workstation access Pin
Mil1017-Jul-03 23:15
Mil1017-Jul-03 23:15 
GeneralBackground color of a CTreeCtrl object. Pin
Bob Stanneveld17-Jul-03 1:36
Bob Stanneveld17-Jul-03 1:36 
GeneralRe: Background color of a CTreeCtrl object. Pin
Ryan Binns17-Jul-03 3:12
Ryan Binns17-Jul-03 3:12 
GeneralRe: Background color of a CTreeCtrl object. Pin
Bob Stanneveld18-Jul-03 8:32
Bob Stanneveld18-Jul-03 8:32 
GeneralRe: Background color of a CTreeCtrl object. Pin
Ryan Binns18-Jul-03 14:35
Ryan Binns18-Jul-03 14:35 
QuestionHyperlinks from database..?? Pin
G}{0$T17-Jul-03 1:21
G}{0$T17-Jul-03 1:21 
AnswerRe: Hyperlinks from database..?? Pin
Steve S17-Jul-03 1:59
Steve S17-Jul-03 1:59 
GeneralRe: Hyperlinks from database..?? Pin
G}{0$T17-Jul-03 2:11
G}{0$T17-Jul-03 2:11 
GeneralRe: Hyperlinks from database..?? Pin
Ryan Binns17-Jul-03 3:13
Ryan Binns17-Jul-03 3:13 
GeneralCan't get remove to work for me properly.. Pin
IrishSonic17-Jul-03 1:15
IrishSonic17-Jul-03 1:15 
GeneralRe: Can't get remove to work for me properly.. Pin
Cedric Moonen17-Jul-03 1:20
Cedric Moonen17-Jul-03 1:20 
GeneralMAPI problem!!! help Pin
xxhimanshu17-Jul-03 1:07
xxhimanshu17-Jul-03 1:07 
GeneralMAPI problem!!! help Pin
xxhimanshu17-Jul-03 1:07
xxhimanshu17-Jul-03 1:07 
Generalout-of-class definition of members of template classes Pin
roel_17-Jul-03 1:00
roel_17-Jul-03 1:00 
GeneralRe: out-of-class definition of members of template classes Pin
Mike Dimmick17-Jul-03 2:37
Mike Dimmick17-Jul-03 2:37 
You can't do this at the moment with Visual C++. The definition of the template must be available to the compiler at the point of instantation, including the definitions of all methods.

In practical terms, this means you must define the function in the class.h header file.

At a rough guess, it should look something like:
template <typename T>
class A
{
public:
    T* GetT();
 
private:
    T* m_T;
};
 
template <typename T>
T* A<T>::GetT()
{
    return m_T;
}
Hope this helps.

By the way, to format your code on CodeProject, for small snippets, use the <code> attribute; for larger ones, use <pre>. To get angle brackets to render, you must use the &lt; and &gt;, or use the 'no HTML' check-box.
GeneralRe: out-of-class definition of members of template classes Pin
roel_17-Jul-03 4:03
roel_17-Jul-03 4:03 
GeneralRe: out-of-class definition of members of template classes Pin
roel_17-Jul-03 4:04
roel_17-Jul-03 4:04 

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.