BUG: Run-time Error '326' with LoadResData (190477)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q190477 SYMPTOMS
When loading an Icon from a resource file with LoadResData, you receive the
following run-time error:
Run-Time error '326': Resource with identifier '101' not found
The LoadResData documentation states that it is possible to return an icon
from a resource file in the form of a byte array. Doing so will result in
the above error.
RESOLUTION
Use the LoadResPicture function to load an icon resource. For example,
Private Sub Form_Load()
Dim vMyIcon As Variant
vMyIcon = LoadResPicture(101,vbResIcon)
End Sub
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. We are researching this bug and will post
new information here in the Microsoft Knowledge Base as it becomes
available.
REFERENCES
Refer to the Visual Basic Online documentation for LoadResPicture on how to
properly use this function to retrieve images from a resource file.
Modification Type: | Major | Last Reviewed: | 5/13/2003 |
---|
Keywords: | kbbug KB190477 |
---|
|