PRB: "Error loading from file" Error Message When Running .Exe
ID: Q138527
|
The information in this article applies to:
-
Microsoft Visual Basic Standard, Professional, and Enterprise Editions, 32-bit only, for Windows, version 4.0
SYMPTOMS
If you receive the error message "Error loading from file," it may mean
that a control used in the Visual Basic project is not correctly registered
on the system on which the project is being run or that the control is
missing from that system.
Under the same circumstances, the 16-Bit edition of Visual Basic gives the
message "Can't load (or register) custom control:" followed by the name of
the control that is missing.
RESOLUTION
If the message "Error loading from file" is received, ensure that all the
OCX controls required by the project are present on the system and that
they are correctly registered.
MORE INFORMATION
Steps to Reproduce Behavior
- Start a new project in the 32-bit edition of Visual Basic. Form1 is
created by default.
- Add the common dialog custom control to the form.
- On the File menu, click Make EXE.
- Locate the Comdlg32.ocx file in the Windows\System or Windows\Sytem32,
and copy it to a floppy disk. Then delete the file from the system.
(On Windows 95, renaming the file is not sufficient because the registry
appears to keep track of renaming and make appropriate changes in the
registry.)
- Locate and run the executable program. The error message "Error Loading
from File" appears. After this test, remember to copy Comdlg32.ocx back
from the floppy disk to the correct System directory.
Additional query words:
kbVBp400 kbdss kbVBp kbDSupport kbCtrl
Keywords : kbGrpVB
Version : WINDOWS:4.0
Platform : WINDOWS
Issue type :