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
 Feature Requests
 Create implementation bug!
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

znakeeye
Tomato Guru

379 Posts

Posted - Sep 21 2007 :  04:38:10 AM  Show Profile  Reply with Quote
Created a new dialog-based application and typed this in the header file:

virtual BOOL PreTranslateMessage(MSG *pMsg);


Then I selected "Create implementation" and this code was generated:


BEGIN_MESSAGE_MAP(CVAXDemoDlg, CDialog)

	BOOL CVAXDemoDlg::PreTranslateMessage( MSG* pMsg )
{

}
	ON_WM_PAINT()
	ON_WM_QUERYDRAGICON()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


Basically, the Create Implementation feature is worthless when a message map is present.

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Sep 21 2007 :  10:27:59 AM  Show Profile  Reply with Quote
Which IDE and version of VA are you using?

I have just created a new C++ win32 project in VS2005 and a find in files does not find any sign of a message map anywhere. So I assume you have done something else.

There is one known case where this happens:

case=7251

however the effect is very fragile, and difficult to reproduce. Certainly it does not happen all the time, or even most of the time for me.

zen is the art of being at one with the two'ness
Go to Top of Page

znakeeye
Tomato Guru

379 Posts

Posted - Sep 22 2007 :  05:23:03 AM  Show Profile  Reply with Quote
VS 2003 .NET + VAX 1561.

The weird thing is that I tried this later the same day, and it worked as expected.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Sep 24 2007 :  12:10:51 PM  Show Profile  Reply with Quote
Then you are probably seeing case=7251

The original thread is here: http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=6197
In this case it only happens under very specific conditions. If the conditions are not "just right" it only goes wrong very rarely, at random.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000