MATLAB C/C++ Graphics Library    

Problem Starting Graphics Application Executable

If you are using Microsoft Visual C++ 5.0, or have the Microsoft Foundation Class (MFC) DLL from MSVC 5.0 installed in your system directory, you may encounter a problem starting a graphics library application.

Symptom

Your application compiles and an executable is created. However, when you invoke it, no figure window appears. If you run the application from a DOS command window, you or one of your customers may see an error message such as:

or

Workaround

To fix this problem, locate the files named MFC42.dll and MSVCRT.dll in your Windows system directory and replace them with the versions of these files in the <MATLAB>\bin\win32 directory, where <MATLAB> represents the name of your MATLAB installation directory.

Your customers who encounter the same problem should also replace the versions of these files in the Windows system directory. They can use the versions they find in <MGLRUNTIMELIBRARY>\bin\win32 directory, where <MGLRUNTIMELIBRARY> is the name of the directory in which they installed the MATLAB Math and Graphics Run-Time Libraries. See ``Distributing Stand-Alone Graphics Applications'' for more information.

You may also encounter this problem with the files dforrt.dll or dformd.dll. You can replace these files in the Windows system directory with their counterparts in the <MGLRUNTIMELIBRARY>\bin\win32 directory.


Depending on Graphics Settings in Start-Up Files