BUG: InsertObjDlg Method Fails with "Unable to Access Source" Error Message
This article was previously published under Q291103 On This PageSYMPTOMS You can use the InsertObjDlg method of the OLE container control to create an object from a
file. However, if the file name contains any extended ASCII characters (that
is, characters with the values 0 through 31 and 127 through 255), InsertObjDlg fails, and you receive the following error message:
Error 31039 This error occurs even though the file closes in the operation
system. Unable to access source document CAUSE Before OLE container control checks whether the file name
that you provided is valid, it converts all of the characters in the file name
from the American National Standards Institute (ANSI) character set to the OEM
character set. With extended ASCII characters in the file name, the converted
file name is no longer the same as the original file name. Because the
converted file name is not available in the system, OLE container control
reports an error. RESOLUTIONA supported hotfix is now available from Microsoft, but it is only intended to correct the problem that this article describes. Apply it only to systems that are experiencing this specific problem. Note You must have a Visual Studio license agreement to obtain this hotfix. To resolve this problem, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site: http://support.microsoft.com/contactus/?ws=support (http://support.microsoft.com/contactus/?ws=support) Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question. The English version of
this fix should have the following file attributes or later:Date Time Version Size File name ----------------------------------------------------- 17-Apr-2001 12:05PM 6.0.91.15 1.42MB Msvbvm60.dll 17-Apr-2001 12:05PM 6.0.0.8965 1.64MB VBA6.dll 17-Apr-2001 12:05PM 6.0.91.15 1.86MB VB6.exe STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed at the beginning of this article.
MORE INFORMATIONSteps to Reproduce Behavior
APPLIES TO
| Article Translations
|

Back to the top
