Click here to Skip to main content
15,911,711 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Template Pin
Jens Doose4-May-04 0:12
Jens Doose4-May-04 0:12 
GeneralRe: Template Pin
Antony M Kancidrowski4-May-04 2:53
Antony M Kancidrowski4-May-04 2:53 
GeneralRe: Template Pin
Anonymous4-May-04 3:41
Anonymous4-May-04 3:41 
GeneralRe: Template Pin
Jens Doose4-May-04 4:43
Jens Doose4-May-04 4:43 
GeneralRe: Template Pin
Anonymous4-May-04 5:40
Anonymous4-May-04 5:40 
GeneralRe: Template Pin
Anonymous4-May-04 21:19
Anonymous4-May-04 21:19 
GeneralRe: Template Pin
Jens Doose5-May-04 5:45
Jens Doose5-May-04 5:45 
GeneralTemplate Pin
Anonymous3-May-04 23:03
Anonymous3-May-04 23:03 
Here is how I declare my template in my .h:

template<class t=""> class CPlaylist
{
public:
CPlaylist(T m_vPlaylist);
virtual ~CPlaylist();
void DeleteMedia(int iPosition);

protected:
vector <t> m_vPlaylist;
CString m_csName;
};

In my .cpp, I define my function:
template<class t=""> void CPlaylist<t>:eleteMedia(int iPosition)
{
m_vPlaylist.Erase(iPosition);
}


That compiles but I have no access to all of the Vector function when I write a "." . I can't see them...
Some ideas about that?
Generalset time like a clock Pin
Member 8209053-May-04 22:52
Member 8209053-May-04 22:52 
GeneralRe: set time like a clock Pin
Joe Woodbury4-May-04 4:28
professionalJoe Woodbury4-May-04 4:28 
GeneralRe: set time like a clock Pin
Member 8209054-May-04 15:55
Member 8209054-May-04 15:55 
GeneralRe: set time like a clock Pin
Joe Woodbury4-May-04 19:45
professionalJoe Woodbury4-May-04 19:45 
GeneralRe: set time like a clock Pin
Member 8209054-May-04 20:05
Member 8209054-May-04 20:05 
GeneralRe: set time like a clock Pin
Joe Woodbury5-May-04 6:31
professionalJoe Woodbury5-May-04 6:31 
Questionwhy not to open &lt;graphics.h&gt;in vc++? Pin
vividtang3-May-04 22:38
vividtang3-May-04 22:38 
AnswerRe: why not to open &lt;graphics.h&gt;in vc++? Pin
Jens Doose3-May-04 22:57
Jens Doose3-May-04 22:57 
QuestionHow to drag file between my app and windows explorer /desktop. Pin
andyxia3-May-04 22:11
andyxia3-May-04 22:11 
AnswerRe: How to drag file between my app and windows explorer /desktop. Pin
Jens Doose3-May-04 23:22
Jens Doose3-May-04 23:22 
GeneralRe: How to drag file between my app and windows explorer /desktop. Pin
andyxia4-May-04 0:17
andyxia4-May-04 0:17 
GeneralRe: How to drag file between my app and windows explorer /desktop. Pin
Jens Doose4-May-04 1:06
Jens Doose4-May-04 1:06 
Generalto create a browse button to display path of file using mfc dialog box Pin
shiva shankar3-May-04 21:43
shiva shankar3-May-04 21:43 
GeneralRe: to create a browse button to display path of file using mfc dialog box Pin
2249173-May-04 23:07
2249173-May-04 23:07 
Generalout of memory Pin
Member 10128693-May-04 21:40
Member 10128693-May-04 21:40 
GeneralRe: out of memory Pin
toxcct3-May-04 22:40
toxcct3-May-04 22:40 
GeneralA way to copy a file from my www-server to CPU&#8230; Pin
anderslundsgard3-May-04 21:11
anderslundsgard3-May-04 21:11 

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.