Click here to Skip to main content
15,920,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ReadOnly Radio button Pin
Rick York4-Jun-10 9:38
mveRick York4-Jun-10 9:38 
GeneralRe: ReadOnly Radio button Pin
Code-o-mat4-Jun-10 9:50
Code-o-mat4-Jun-10 9:50 
Questionunresolved external symbol sqlcxt Pin
ravi1204863-Jun-10 19:54
ravi1204863-Jun-10 19:54 
AnswerRe: unresolved external symbol sqlcxt Pin
«_Superman_»3-Jun-10 19:57
professional«_Superman_»3-Jun-10 19:57 
GeneralRe: unresolved external symbol sqlcxt Pin
ravi1204863-Jun-10 20:38
ravi1204863-Jun-10 20:38 
GeneralRe: unresolved external symbol sqlcxt Pin
«_Superman_»3-Jun-10 20:39
professional«_Superman_»3-Jun-10 20:39 
GeneralRe: unresolved external symbol sqlcxt Pin
ravi1204863-Jun-10 20:57
ravi1204863-Jun-10 20:57 
GeneralRe: unresolved external symbol sqlcxt Pin
«_Superman_»3-Jun-10 20:59
professional«_Superman_»3-Jun-10 20:59 
GeneralRe: unresolved external symbol sqlcxt Pin
ravi1204863-Jun-10 22:24
ravi1204863-Jun-10 22:24 
GeneralRe: unresolved external symbol sqlcxt Pin
«_Superman_»3-Jun-10 22:34
professional«_Superman_»3-Jun-10 22:34 
GeneralRe: unresolved external symbol sqlcxt Pin
ravi1204863-Jun-10 22:36
ravi1204863-Jun-10 22:36 
Questiondecompliler dll to c++ Pin
arun_pk3-Jun-10 19:34
arun_pk3-Jun-10 19:34 
AnswerRe: decompliler dll to c++ Pin
«_Superman_»3-Jun-10 19:42
professional«_Superman_»3-Jun-10 19:42 
GeneralRe: decompliler dll to c++ Pin
arun_pk3-Jun-10 19:45
arun_pk3-Jun-10 19:45 
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 

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.