Click here to Skip to main content
15,885,278 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionpost mouse move, wheel, RClick messages, (captured by CView) to the started thread Pin
m_code9-Apr-10 11:46
m_code9-Apr-10 11:46 
AnswerRe: post mouse move, wheel, RClick messages, (captured by CView) to the started thread Pin
Adam Roderick J9-Apr-10 18:11
Adam Roderick J9-Apr-10 18:11 
GeneralRe: post mouse move, wheel, RClick messages, (captured by CView) to the started thread Pin
m_code9-Apr-10 18:43
m_code9-Apr-10 18:43 
GeneralRe: post mouse move, wheel, RClick messages, (captured by CView) to the started thread Pin
Adam Roderick J9-Apr-10 19:12
Adam Roderick J9-Apr-10 19:12 
QuestionC++ class hierarchy design problem Pin
kylur9-Apr-10 9:00
kylur9-Apr-10 9:00 
AnswerRe: C++ class hierarchy design problem Pin
Jonathan Davies9-Apr-10 10:28
Jonathan Davies9-Apr-10 10:28 
GeneralRe: C++ class hierarchy design problem Pin
kylur12-Apr-10 9:47
kylur12-Apr-10 9:47 
AnswerRe: C++ class hierarchy design problem Pin
Bernódus Kristinsson9-Apr-10 11:04
Bernódus Kristinsson9-Apr-10 11:04 
template<typename T> T 
get_the_value(gen_scalar const& gs) const;// primary template no need for definition

template<double> inline double 
get_the_value(gen_scalar const& gs) const { return gs._double; }

template<short> short inline 
get_the_value(gen_scalar const& gs) const { return gs._i16; }


//... and so on for all types in the union (never remember the placement of inline)


template<typename T>
class IPipe : public Pipe
{
public:
	IPipe(PIPE* pipe) : Pipe(pipe) { pipe_open(pipe_, P_READ); };

	T Get() const
	{
		GENERIC_SCALAR v;
		pipe_value_get(pipe_, &v);
		return get_the_value<T>(v);// important:  <T>
	};
};


// several small functions instead of same number of classes

GeneralRe: C++ class hierarchy design problem Pin
kylur12-Apr-10 10:25
kylur12-Apr-10 10:25 
AnswerRe: C++ class hierarchy design problem Pin
cmk9-Apr-10 14:52
cmk9-Apr-10 14:52 
GeneralRe: C++ class hierarchy design problem Pin
kylur12-Apr-10 10:09
kylur12-Apr-10 10:09 
GeneralRe: C++ class hierarchy design problem Pin
cmk12-Apr-10 12:45
cmk12-Apr-10 12:45 
AnswerRe: C++ class hierarchy design problem Pin
code_slashxx9-Apr-10 17:38
code_slashxx9-Apr-10 17:38 
GeneralRe: C++ class hierarchy design problem Pin
kylur12-Apr-10 10:10
kylur12-Apr-10 10:10 
QuestionCan PostThreadMessage Post to a Thread in a Different Process Pin
ForNow9-Apr-10 7:50
ForNow9-Apr-10 7:50 
AnswerRe: Can PostThreadMessage Post to a Thread in a Different Process Pin
Code-o-mat9-Apr-10 10:48
Code-o-mat9-Apr-10 10:48 
GeneralRe: Can PostThreadMessage Post to a Thread in a Different Process Pin
ForNow9-Apr-10 11:03
ForNow9-Apr-10 11:03 
GeneralRe: Can PostThreadMessage Post to a Thread in a Different Process Pin
Code-o-mat9-Apr-10 11:11
Code-o-mat9-Apr-10 11:11 
GeneralRe: Can PostThreadMessage Post to a Thread in a Different Process Pin
Adam Roderick J9-Apr-10 19:25
Adam Roderick J9-Apr-10 19:25 
AnswerRe: Can PostThreadMessage Post to a Thread in a Different Process Pin
cmk9-Apr-10 15:15
cmk9-Apr-10 15:15 
AnswerRe: Can PostThreadMessage Post to a Thread in a Different Process [modified] Pin
Adam Roderick J9-Apr-10 18:58
Adam Roderick J9-Apr-10 18:58 
QuestionDestructElements() and destructor not getting called Pin
David Crow9-Apr-10 6:34
David Crow9-Apr-10 6:34 
AnswerRe: DestructElements() and destructor not getting called Pin
Chris Losinger9-Apr-10 6:41
professionalChris Losinger9-Apr-10 6:41 
GeneralRe: DestructElements() and destructor not getting called Pin
David Crow9-Apr-10 7:37
David Crow9-Apr-10 7:37 
GeneralRe: DestructElements() and destructor not getting called Pin
Chris Losinger9-Apr-10 7:49
professionalChris Losinger9-Apr-10 7: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.