Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 VA X 1215: My CEvent is not MFC's
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2322 Posts

Posted - Feb 06 2004 :  5:30:27 PM  Show Profile
I am still seeing the problem with mixing my CEvent class with the one from MFC.
MFC is not used in the current workspace, yet VA insists that CEvent is derived from CSyncObject and has some ghost members:


Here is the definition for CEvent:

class	CEvent
{
public:
	CEvent(LPSECURITY_ATTRIBUTES, bool, bool);
	CEvent(LPSECURITY_ATTRIBUTES, bool, bool, const tstring&);
	CEvent(LPSECURITY_ATTRIBUTES, bool, bool, LPCSTR);
	CEvent(LPSECURITY_ATTRIBUTES, bool, bool, LPCWSTR);

	virtual ~CEvent(void);

	HANDLE	GetEvent(void) const;
	void	Wait(void) const;
	bool	Wait(DWORD) const;
	void	Reset(void);
	void	Set(void);
	void	Pulse(void);
	bool	Check(void);

private:
	HANDLE	m_hEvent;

	// No copies

	CEvent(const CEvent& rhs);
	CEvent &operator =(const CEvent& rhs);
};


(again you can also see the duplicate entries in the VA view)

Uniwares
Tomato Guru

Portugal
2322 Posts

Posted - Feb 06 2004 :  8:32:40 PM  Show Profile
The very same problem exists with CCriticalSection (and probably with other classes which also exist in MFC) - VA mixes the definitions into one big, happy family class.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000