Printable Version of Topic
Click here to view this topic in its original format
Unofficial VirtualDub Support Forums > Testing / Bug Reports > Strange View Of Menu Under Nt 4.0


Posted by: qkowlew May 26 2003, 03:59 AM
Running VirtualDubMod
(VirtualDubMod_1_5_1_1a_all_inclusive.zip 1699179 )

I see this strange picture:

user posted image

I work under Windows NT 4.0 SP6a.
All right in Win 2000.

Sergej Qkowlew, FIDO 2:5020/122

Posted by: Belgabor May 28 2003, 07:53 PM
Hard to check without NT. Could you do us a favour and check the older versions of vdubmod and see if they work? thanks.

Posted by: phaeron May 29 2003, 06:37 AM
Hmm... this looks vaguely familiar to a bug I fixed in the 1.4 series. If you define WINVER to 0x0500 or higher (Windows 98+), the MENUITEMINFO structure grows in size. Neither Windows 95 nor NT4.0 like the increased cbSize value and will fail menu API calls when they see it.

Posted by: Belgabor May 30 2003, 02:16 AM
I knew I had seen this somewhere. What did you do to fix it? Redefine WINVER? Are there any other consequences to that?

Posted by: phaeron May 30 2003, 02:43 AM
CODE

#define WIN95_MENUITEMINFO_SIZE (offsetof(MENUITEMINFO, cch) + sizeof(UINT))


Should be the same as sizeof(MENUITEMINFO) with WINVER < 0x0500. If there are consequences to this, I'm screwed, because I'm still shipping releases with this....

Posted by: Belgabor Jun 1 2003, 11:26 PM
Thanks Avery, I'll try if it fixes the problem (at least it doesnt seem to break obvious things wink.gif)

Posted by: Belgabor Jun 4 2003, 05:47 PM
Please check the latest CVS release to see if the bug's gone.

Posted by: AndreasB Jun 13 2003, 03:15 PM
Hi,

I had the same problem like qkowlew with NT4, since VirtualDubMod 1.413.

Now, with the CVS-Version (1.5.1.1a build 1631/release) it's gone! Nice work! Thank you _VERY_ much for this great piece of software!
:-)

Andreas


Powered by Invision Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)