The information in this article applies to:
SYMPTOMS
When loading an Icon from a resource file with LoadResData, you receive the
following run-time error:
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,
STATUSMicrosoft 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. MORE INFORMATIONSteps to Reproduce BehaviorNOTE: These steps assume the Resource Editor is installed and available in Visual Basic from the Tools menu.
REFERENCESRefer to the Visual Basic Online documentation for LoadResPicture on how to properly use this function to retrieve images from a resource file. Additional query words: kbdss kbDSupport kbVBp kbResourceEd kbVBp500bug kbVBp600bug
Keywords : kbGrpVB |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |