Click here to Skip to main content
15,914,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: THE STRANGEST WM_TIMER ISSUE (only for gurus) Pin
Daniel Visan4-Jul-01 1:31
Daniel Visan4-Jul-01 1:31 
GeneralRe: THE STRANGEST WM_TIMER ISSUE (only for gurus) Pin
Tomasz Sowinski4-Jul-01 1:51
Tomasz Sowinski4-Jul-01 1:51 
GeneralRe: THE STRANGEST WM_TIMER ISSUE (only for gurus) Pin
Daniel Visan4-Jul-01 5:22
Daniel Visan4-Jul-01 5:22 
GeneralRe: THE STRANGEST WM_TIMER ISSUE (only for gurus) Pin
Tomasz Sowinski4-Jul-01 5:48
Tomasz Sowinski4-Jul-01 5:48 
GeneralRe: THE STRANGEST WM_TIMER ISSUE (only for gurus) Pin
Justin Hallet4-Jul-01 10:04
Justin Hallet4-Jul-01 10:04 
GeneralRe: THE STRANGEST WM_TIMER ISSUE (only for gurus) Pin
Tomasz Sowinski4-Jul-01 10:24
Tomasz Sowinski4-Jul-01 10:24 
QuestionIs there a NULL for member pointers? Pin
Malcolm McMahon3-Jul-01 22:26
Malcolm McMahon3-Jul-01 22:26 
AnswerRe: Is there a NULL for member pointers? Pin
Tomasz Sowinski4-Jul-01 0:32
Tomasz Sowinski4-Jul-01 0:32 
This works for me (VC6 SP5). Pointer to member representation set to "Best case always" in Settings/C++/C++ language.

class CXMLNode
{
public:
	char *p1;
	char *p2;
};

class AttributeInt 
{
	char * CXMLNode::*m_units;
public:
	AttributeInt(char * CXMLNode::*units = NULL) : m_units(units) {}

	void test()
	{
		if (m_units == NULL)
		{
			printf("m_units is NULL\n");
		}
		else
		{
			printf("m_units is not NULL\n");
		}
	}
};


void main( void )
{ 
	AttributeInt a;
	a.test();

	AttributeInt b(&CXMLNode::p1);
	b.test();
}



Tomasz Sowinski -- http://www.shooltz.com
Questionhow to set g723.1 when waveinopen Pin
3-Jul-01 22:22
suss3-Jul-01 22:22 
AnswerRe: how to set g723.1 when waveinopen Pin
4-Jul-01 23:48
suss4-Jul-01 23:48 
GeneralRe: how to set g723.1 when waveinopen Pin
hapcoer5-Jul-01 22:29
hapcoer5-Jul-01 22:29 
GeneralPOP question...(probably trivial) Pin
Darko3-Jul-01 21:56
Darko3-Jul-01 21:56 
GeneralRe: POP question...(probably trivial) Pin
markkuk3-Jul-01 23:46
markkuk3-Jul-01 23:46 
GeneralRe: POP question...(probably trivial) Pin
4-Jul-01 5:12
suss4-Jul-01 5:12 
GeneralRe: POP question...(probably trivial) Pin
Ghazi H. Wadi4-Jul-01 5:23
Ghazi H. Wadi4-Jul-01 5:23 
GeneralWhois Lookup in ISAPI Pin
Raja K Vairakkannu3-Jul-01 21:30
Raja K Vairakkannu3-Jul-01 21:30 
GeneralRe: Whois Lookup in ISAPI Pin
Ghazi H. Wadi4-Jul-01 5:26
Ghazi H. Wadi4-Jul-01 5:26 
QuestionThread problem - help? Pin
Pradeepa3-Jul-01 20:15
Pradeepa3-Jul-01 20:15 
AnswerRe: Thread problem - help? Pin
Justin Hallet4-Jul-01 10:07
Justin Hallet4-Jul-01 10:07 
GeneralRe: Thread problem - help? Pin
Tomasz Sowinski4-Jul-01 10:27
Tomasz Sowinski4-Jul-01 10:27 
GeneralCDC::DrawIcon not drawing an icon when printing Pin
Diarrhio3-Jul-01 20:09
Diarrhio3-Jul-01 20:09 
Generalproblems to share a database file... Pin
XioPeng3-Jul-01 19:42
XioPeng3-Jul-01 19:42 
GeneralRe: problems to share a database file... Pin
3-Jul-01 20:47
suss3-Jul-01 20:47 
GeneralRe: problems to share a database file... Pin
XioPeng3-Jul-01 22:20
XioPeng3-Jul-01 22:20 
GeneralRe: problems to share a database file... Pin
markkuk3-Jul-01 23:58
markkuk3-Jul-01 23:58 

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.