Click here to Skip to main content
15,906,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: out-of-class definition of members of template classes Pin
Mike Dimmick17-Jul-03 4:19
Mike Dimmick17-Jul-03 4:19 
GeneralRe: out-of-class definition of members of template classes Pin
roel_17-Jul-03 5:51
roel_17-Jul-03 5:51 
GeneralRe: out-of-class definition of members of template classes Pin
Andrew Walker17-Jul-03 4:22
Andrew Walker17-Jul-03 4:22 
GeneralRe: out-of-class definition of members of template classes Pin
roel_17-Jul-03 5:52
roel_17-Jul-03 5:52 
GeneralCode for CMD.exe Pin
Saty17-Jul-03 0:42
Saty17-Jul-03 0:42 
GeneralRe: Code for CMD.exe Pin
Anthony_Yio18-Jul-03 1:09
Anthony_Yio18-Jul-03 1:09 
GeneralRe: Code for CMD.exe Pin
Mark Basedow18-Jul-03 14:27
Mark Basedow18-Jul-03 14:27 
Questionhow to take the result of a select query into a variable? Pin
vcseeker17-Jul-03 0:26
vcseeker17-Jul-03 0:26 
AnswerRe: how to take the result of a select query into a variable? Pin
Daniel Turini17-Jul-03 0:40
Daniel Turini17-Jul-03 0:40 
GeneralRe: how to take the result of a select query into a variable? Pin
vcseeker17-Jul-03 1:07
vcseeker17-Jul-03 1:07 
AnswerRe: how to take the result of a select query into a variable? Pin
Cedric Moonen17-Jul-03 1:16
Cedric Moonen17-Jul-03 1:16 
GeneralRe: how to take the result of a select query into a variable? Pin
vcseeker17-Jul-03 2:18
vcseeker17-Jul-03 2:18 
QuestionHow to set IP Address of any NIC? Pin
Hashim Saleem16-Jul-03 23:18
Hashim Saleem16-Jul-03 23:18 
GeneralWin2k DDK Pin
anshumanshinde16-Jul-03 23:03
anshumanshinde16-Jul-03 23:03 
GeneralRe: Win2k DDK Pin
Mike Dimmick16-Jul-03 23:27
Mike Dimmick16-Jul-03 23:27 

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.