Have made a program in c++. My program is running fine, but at the
end of the program there is a error message on the screen:
Bgi Error: Graphics not initialized (use initgraph)
My program shows no error message at compile time or at run time.
What's this bgi error? How can I correct this? I have initialized the
graphics hardware by using the initgraph function on the main segment
of my program. I am using Borland Turbo c++ compiler 3.1.
please can anyone provide me a stepwise procedure to solve this
- If you need clarification, ask it in the comment box above.
- Better answers use proper spelling and grammar.
- Provide details, support with references or personal experience.
Tell us some more! Your answer needs to include more details to help people.You can't post answers that contain an email address.Please enter a valid email address.The email address entered is already associated to an account.Login to postPlease use English characters only.
Tip: The max point reward for answering a question is 15.
Two possible solutions. Roll back system with System Restore. Win 7 - Start > Search type System Restore. XP - Is Start > All Programs > Accessories > System Restore. Now choose a date prior to problem. You may have to try a few dates.
Try disabling startup programs. Go to Start > Run (search in Win 7) and type MSConfig. In Startup tab, uncheck anything that you don't want Windows to load automatically. It will make Windows boot faster and use less resources while running. This just disables them in startup. Programs will still load, but when only you initiate.
Flash is a programming language that many publishers use to create animations, games, and interactive programs for the web. Flash is also used for programs run locally on a users computer. To use these Flash based programs and web applets, the end-user must have Flash Player installed. One component of Flash Player is a file called "flash.ocx." If this file is missing or damaged, you may get an error message.
There seems to be two root causes of this error. A description and solution for each follows:
You receive the error message "Cannot find the file flash.ocx" every time you start your computer or each time you open your web browser (such as Internet Explorer). This is usually the result of a missing "flash.ocx" file caused by an incomplete installation of Flash. Here's how to remedy the problem:
You receive the error message "Cannot find the file flash.ocx" at seemingly random intervals or when starting a specific program (other than your web browser). First, perform steps 1-4 of the previous solution. This will insure you have the latest version of Flash Player installed. If you still receive the error message, continue with the steps below:
Navigate to the folder "C:\WINDOWS\system32\Macromed\Flash\". In this folder you will see a file named "Flash9f.ocx".
Make copy of the "Flash9f.ocx" file in the same folder as the original (copy the original, then paste the copied file into the same folder).
Rename the newly made copy to "Flash.ocx".
If the previous steps don't eradicate the error messages, change your screen saver to one of the defaults that are included with Windows (such as "3D Text").
The harddrive might be corrupted. Start backing-up your important data to some flash drives as soon as possible before it crashes. The do a factory recovery of the computer. Consult your user manual to find out how.
Is every program running fine? It is a registry file - in other word a file that is the basis for all programs. If every program is running fine, you can delete by start>run>and type regedit or if in Vista start>and type regedit. Use the path in the error (C:\PROGRA~1\MYWEBS~1\bar\2.bin\M3PLUGIN.DLL) to find the file and delete it.