Solved

Has anyone gotten sample Wizard97 to work?

Posted on 1999-01-06
8
285 Views
Last Modified: 2013-11-20
I'm looking at the Visual C 6 example of the new Wizard97 sample code under MFC/General and can't seem to get the watermarks/images to work.  

Can anyone else get Microsoft's example (hah) of CPropertySheetEx to work?
0
Comment
Question by:psdavis
  • 5
  • 3
8 Comments
 
LVL 7

Author Comment

by:psdavis
ID: 1327304
Adjusted points to 100
0
 
LVL 11

Accepted Solution

by:
mikeblas earned 100 total points
ID: 1327305
The sample works fine on my machine.

Which version of Windows are you running? As you'll notice, the abstract for the sample says you must be running Windows 98 or Windows NT 5.0 (now known as Windows 2000) for the sample to work correctly.

If you've upgraded COMCTL32.DLL (by installing NT 4 SP 4, for example), you might be able to run the sample.  Which version of COMCTL32.DLL are you using?

What is the exact mode of failure? "Can't get it to work" isn't descriptive at all.

B ekiM
0
 
LVL 7

Author Comment

by:psdavis
ID: 1327306
Ahhh!!! No. I didn't read it.  We've got a mishmash of OS running.  Everything works fine except that watermarks only fill half of the page.

Thanks for the confirmation.

Phillip

0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 11

Expert Comment

by:mikeblas
ID: 1327307
Great; I'm glad that settles it.

You know, your little "hah" jab was not really amusing. One of my coworkers and I wrote that sample. While my work has certainly received harsher and more public criticism, it's nothing short of offensive to find that you're holding the sample in disdain when your question is really borne of pilot error.

When asking questions in the future, please consider that. Remember that the hand you're biting might be the hand that's feeding you.

In the meantime, if you have _constructive_ criticism about the sample, I'd be happy to entertain it.

B ekiM


0
 
LVL 7

Author Comment

by:psdavis
ID: 1327308
My fullest apologies.

I've always been frustrated with property pages and wizards trying to get the correct fonts to work with bitmaps and was very excited to try out an upgrade.  It was just a tremendous, frustrating disappointment when it failed without warning.

I had also spent the last two weeks rewriting the samples of SimpleMapi to MFC and was just absolutely tearing my hair out! (I hope you weren't involved in that one) and some of the grief probably spilt over.  
 
> Which version of COMCTL32.DLL are you using?

Should have been the latest.  I've got IE 5.0 running.  The bitmaps were only show up about 1/3 of the way across.

> In the meantime, if you have _constructive_ criticism about the sample

OK, how about checking the OS version and poping up a AfxMessageBox if not supported?  Then jerks like me won't be bitchin?

Phillip

p.s.  The bitmaps were gorgious.


0
 
LVL 7

Author Comment

by:psdavis
ID: 1327309
I tried (as well as my associates) to get the Wizard97 sample to work, yet the same result has occurred.  The first watermark is only drawing about 1/3 of the bitmap starting from the left.  The title graphic is only drawing about 1/8 starting from the right.  Both graphics seem more 'gray-scale' than the original, yet there is some color involved.  

Windows 95 vs. Windows 98 does not seem to be affecting it since we both have the latest release of IE 5.0 installed.  None of us has IE 4.0.

We are compiling with Visual C 6.0 SP1 on Windows 95 and 98.  The current project is the non-unicode version debug non-static.

Should I report this to Microsoft or are you still talking to me?

Phillip


0
 
LVL 11

Expert Comment

by:mikeblas
ID: 1327310
"I'm using a beta version of Internet Explorer" would have been a very important thing to include in your question.

As fate has it, the IE guys decided to update COMCTL32.DLL and change the behaviour of some of the property page APIs. Maybe it will be fixed before they ship, maybe it won't. I don't know what their plan will be.

A message box is not an appropriate solution because there are lots of people who would want to handle the error themselves--in ways that the library can't forsee. As such, since you know the functionality is only available in certain builds of Windows, it's up to you to check for that functionality in an appropirate way.

B ekiM


0
 
LVL 7

Author Comment

by:psdavis
ID: 1327311
Thanks Mike.  

We tried the release version on multiple machines with some results.  Windows 95 with any version of the common control resulted in the 1/3 problem.  Windows 98 with IE5.0 same error.  

Windows 98 without IE5.0 (e.g. Netscape) resulted in some success.  The effect was good, but buggy (not the sample's fault).  Bitmaps seemed to bleed over about 4 pixels from the right border onto the left.  It also had some major refreshing problems.  It might be why they disabled it in IE5?

Phillip


0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question