Solved

Has anyone gotten sample Wizard97 to work?

Posted on 1999-01-06
8
281 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
Comment Utility
Adjusted points to 100
0
 
LVL 11

Accepted Solution

by:
mikeblas earned 100 total points
Comment Utility
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
Comment Utility
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
 
LVL 11

Expert Comment

by:mikeblas
Comment Utility
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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 7

Author Comment

by:psdavis
Comment Utility
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
Comment Utility
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
Comment Utility
"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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
format the code in java 6 72
java ^ examples 8 57
noX challenge 17 75
Unix Command -- Challenging  question 7 78
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now