MFC dialog box print preview error Solution

Source: Internet
Author: User

Yesterday, I ran the print preview I wrote last time on someone else's computer.ProgramBut today I cannot run on another computer, which makes me very strange.

The error message is "memory XXXX cannot be read", and "mfc100d. dll" contains unprocessed exceptions.

It is strange that an error still occurs after I add a try catch statement.

I first tried the DLL link and dynamic link and found that it still cannot be solved.

Then I tried to download mfc100.dll from the Internet and copied it to the System32 directory. An error still occurred.

Because of this problem, I can basically identify it as a problem with the operating system environment,

So I searched "the computer cannot print the preview solution ",

It may beThe printer has no driver installed or the printing service has not started.,

So:

1. StartPrint Service: Right-click "my computer", "manage", "services and applications", and find"Print Spooler", Right-click this item, select" properties ", and change the Startup Type to"Auto Start", Restart the computer.

Ii. InstallationPrinter Driver: Start \ Setup \ printer and fax \ Add Printer \ follow the prompts to perform "Next" operation .... \ it is best to select the more popular HP among the vendors, model laser jet 1000 or above. Follow the prompts to complete subsequent operations.

Solve the problem.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.