Click here to Skip to main content
15,896,118 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDatabase problem Pin
Sakhalean3-Jun-10 18:58
Sakhalean3-Jun-10 18:58 
AnswerRe: Database problem Pin
«_Superman_»3-Jun-10 19:47
professional«_Superman_»3-Jun-10 19:47 
AnswerRe: Database problem Pin
Niklas L3-Jun-10 22:17
Niklas L3-Jun-10 22:17 
GeneralRe: Database problem Pin
Sakhalean4-Jun-10 4:59
Sakhalean4-Jun-10 4:59 
QuestionHelp with Template Container of Pointers to any type Pin
zZDimonZz3-Jun-10 8:56
zZDimonZz3-Jun-10 8:56 
AnswerRe: Help with Template Container of Pointers to any type Pin
Code-o-mat3-Jun-10 9:23
Code-o-mat3-Jun-10 9:23 
AnswerRe: Help with Template Container of Pointers to any type Pin
Niklas L3-Jun-10 11:46
Niklas L3-Jun-10 11:46 
AnswerRe: Help with Template Container of Pointers to any type Pin
John R. Shaw3-Jun-10 12:08
John R. Shaw3-Jun-10 12:08 
Remember that the most common template parameters are types.

// The 2nd template parameter is expected to be a container type,
// but there is no easy way to enforce that constraint at the moment.
template <class T, class containerType >
class tContainer_t
{
	containerType m_container;
public:
	tContainer_t();
	~tContainer_t();
};

// Usage
tContainer_t<char, vector<char*> > vc;
// OR
tContainer_t<char, list<char*> > lc;
// etc..


// Here, the 2nd template parameter has a default container type specified
template <class T, class containerType = std::vector<T*> >
class tContainer_t
{
	containerType m_container;
public:
	tContainer_t();
	~tContainer_t();
};

// Usage
tContainer_t<char> vc; // Using default container vector<char*>
// OR
tContainer_t<char, list<char*> > lc;
// etc..

INTP
"Program testing can be used to show the presence of bugs, but never to show their absence." - Edsger Dijkstra
"I have never been lost, but I will admit to being confused for several weeks. " - Daniel Boone

GeneralRe: Help with Template Container of Pointers to any type Pin
zZDimonZz7-Jun-10 6:29
zZDimonZz7-Jun-10 6:29 
AnswerRe: Help with Template Container of Pointers to any type Pin
Stephen Hewitt3-Jun-10 13:58
Stephen Hewitt3-Jun-10 13:58 
AnswerRe: Help with Template Container of Pointers to any type Pin
Aescleal3-Jun-10 20:50
Aescleal3-Jun-10 20:50 
NewsBusco programadores C++ / DirectX - Motor videojuegos Pin
ThundThund3-Jun-10 8:28
ThundThund3-Jun-10 8:28 
GeneralRe: Busco programadores C++ / DirectX - Motor videojuegos Pin
loyal ginger3-Jun-10 9:42
loyal ginger3-Jun-10 9:42 
GeneralRe: Busco programadores C++ / DirectX - Motor videojuegos Pin
ThundThund3-Jun-10 9:43
ThundThund3-Jun-10 9:43 
QuestionDirectshow question Pin
godspeed1233-Jun-10 7:59
godspeed1233-Jun-10 7:59 
AnswerRe: Directshow question Pin
Hristo-Bojilov4-Jun-10 9:01
Hristo-Bojilov4-Jun-10 9:01 
QuestionVS2010 - project setup Pin
Ed SHaw3-Jun-10 0:59
Ed SHaw3-Jun-10 0:59 
AnswerRe: VS2010 - project setup Pin
«_Superman_»3-Jun-10 1:05
professional«_Superman_»3-Jun-10 1:05 
QuestionGDI leak in "Tree View" with TVS_CHECKBOXES property Pin
139135068422-Jun-10 21:57
139135068422-Jun-10 21:57 
AnswerRe: GDI leak in "Tree View" with TVS_CHECKBOXES property Pin
139135068423-Jun-10 0:24
139135068423-Jun-10 0:24 
QuestionCommandLine execution problem Pin
krishna_CP2-Jun-10 21:04
krishna_CP2-Jun-10 21:04 
AnswerRe: CommandLine execution problem Pin
Richard MacCutchan2-Jun-10 21:13
mveRichard MacCutchan2-Jun-10 21:13 
AnswerRe: CommandLine execution problem Pin
KarstenK2-Jun-10 21:32
mveKarstenK2-Jun-10 21:32 
GeneralRe: CommandLine execution problem DOS Error code 1073741819 Pin
krishna_CP2-Jun-10 22:39
krishna_CP2-Jun-10 22:39 
GeneralRe: CommandLine execution problem DOS Error code 1073741819 Pin
KarstenK2-Jun-10 22:49
mveKarstenK2-Jun-10 22: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.