PRB: Cannot Simultaneously Write to Disk File and Have It Opened in ActiveX DLL (214674)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q214674 SYMPTOMS
When you attempt to write to the file number of a file that was opened in an ActiveX DLL or vice versa, the following run-time error is generated:
Error '52' Bad File name or number
CAUSE
The file number created when a file is opened cannot be shared between separate projects or executable modules.
RESOLUTION
If a file must be accessed by both an EXE and an associated DLL, wrap all of the file access activities in a class module in the ActiveX DLL.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 5/12/2003 |
---|
Keywords: | kbDLL kbprb KB214674 |
---|
|