Click here to Skip to main content
15,893,722 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: background color to button Pin
prasad_som4-Sep-06 2:10
prasad_som4-Sep-06 2:10 
QuestionDo you still remember ellipse math of University? Pin
includeh102-Sep-06 20:23
includeh102-Sep-06 20:23 
AnswerRe: Do you still remember ellipse math of University? Pin
Gary R. Wheeler3-Sep-06 4:19
Gary R. Wheeler3-Sep-06 4:19 
QuestionConvert ascii (1 byte) to 2 bytes Pin
lorey2-Sep-06 18:10
lorey2-Sep-06 18:10 
AnswerRe: Convert ascii (1 byte) to 2 bytes Pin
Waldermort2-Sep-06 19:40
Waldermort2-Sep-06 19:40 
GeneralRe: Convert ascii (1 byte) to 2 bytes Pin
lorey3-Sep-06 6:40
lorey3-Sep-06 6:40 
GeneralRe: Convert ascii (1 byte) to 2 bytes Pin
Waldermort3-Sep-06 7:59
Waldermort3-Sep-06 7:59 
Questionabout template Pin
rxgmoral2-Sep-06 17:56
rxgmoral2-Sep-06 17:56 
about template
i create template class
<<<<<m_templatedata.h>>>>>>>>
template <class t=""> struct CTDbNode
{
T Data;
CTDbNode(T Value):Data(Value){}
};

<<<<<<<m_templatestructure.h>>>>>>>>>>>
#pragma once
#include "m_TemplateData.h"
template<class t="">class CTDbList
{
public:
CTDbList()
{
pCurrent=NULL;
}
void CTInsert(T Value)
{
pCurrent=new CTDbNode(Value);
}
public:
CTDbNode<t> *pCurrent;
};


example
CTDbList<cstring> d;
d.CTInsert(_T("ddd"));

error:
e:\mystudio\project\shared\shared\m_templatestructure.h(12) : error C2955: 'CTDbNode' : use of class template requires template argument list
e:\mystudio\project\shared\shared\m_templatedata.h(15) : see declaration of 'CTDbNode'
e:\mystudio\project\shared\shared\m_templatestructure.h(11) : while compiling class template member function 'void CTDbList<t>::CTInsert(T)'
with
[
T=CString
]
e:\mystudio\project\shared\shared\cm_selectquery.cpp(6) : see reference to class template instantiation 'CTDbList<t>' being compiled
with
[
T=CString
]
e:\mystudio\project\shared\shared\m_templatestructure.h(12) : error C2514: 'CTDbNode' : class has no constructors
e:\mystudio\project\shared\shared\m_templatedata.h(15) : see declaration of 'CTDbNode'


thankSmile | :)
AnswerRe: about template Pin
Stephen Hewitt2-Sep-06 18:58
Stephen Hewitt2-Sep-06 18:58 
Questioninsert a value into binary file Pin
samkook2-Sep-06 17:08
samkook2-Sep-06 17:08 
AnswerRe: insert a value into binary file Pin
samkook10-Sep-06 11:23
samkook10-Sep-06 11:23 
QuestionCPP Name Decoration Pin
Bram van Kampen2-Sep-06 14:30
Bram van Kampen2-Sep-06 14:30 
AnswerRe: CPP Name Decoration Pin
Jörgen Sigvardsson2-Sep-06 14:37
Jörgen Sigvardsson2-Sep-06 14:37 
AnswerRe: CPP Name Decoration Pin
Stephen Hewitt2-Sep-06 19:03
Stephen Hewitt2-Sep-06 19:03 
Questionconstant variable at run time Pin
Ahmed Ismail Mohamed2-Sep-06 11:40
Ahmed Ismail Mohamed2-Sep-06 11:40 
AnswerRe: constant variable at run time Pin
Anonymuos2-Sep-06 11:55
Anonymuos2-Sep-06 11:55 
GeneralRe: constant variable at run time Pin
Ahmed Ismail Mohamed2-Sep-06 12:03
Ahmed Ismail Mohamed2-Sep-06 12:03 
GeneralRe: constant variable at run time Pin
Waldermort2-Sep-06 12:15
Waldermort2-Sep-06 12:15 
AnswerRe: constant variable at run time [modified] Pin
Nader Elshehabi2-Sep-06 13:48
Nader Elshehabi2-Sep-06 13:48 
GeneralRe: constant variable at run time Pin
Bram van Kampen2-Sep-06 14:46
Bram van Kampen2-Sep-06 14:46 
AnswerRe: constant variable at run time Pin
Nader Elshehabi2-Sep-06 19:15
Nader Elshehabi2-Sep-06 19:15 
GeneralRe: constant variable at run time [modified] Pin
MayankT2-Sep-06 23:41
MayankT2-Sep-06 23:41 
GeneralRe: constant variable at run time Pin
Nader Elshehabi3-Sep-06 1:07
Nader Elshehabi3-Sep-06 1:07 
GeneralRe: constant variable at run time Pin
MayankT3-Sep-06 15:23
MayankT3-Sep-06 15:23 
GeneralRe: constant variable at run time Pin
Nader Elshehabi3-Sep-06 17:48
Nader Elshehabi3-Sep-06 17:48 

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.