Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ImageList OLE control
Message
From
12/04/2002 12:06:05
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
12/04/2002 10:47:26
Brent Croft
Revenue Technology Services
Irving, Texas, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00644300
Message ID:
00644370
Views:
14
>I am getting a COM error "0X800a01e1: Unknown COM status code" when trying to add and image to the image list in the init of the control. The control works in a runtime environment, but in the EXE errors. I have tried moving the add to the form init and still receive the error. This is the line of code I am using in the init:
>This.ListImages.Add(1,,LoadPicture(lcPath))
>
>This image list later gets added to the ImageList property of a TreeView control. But I cannot even get the BMP added to it before that.
>
>The other thing I have tried as a test is loading the BMP in the ImageList control at design time, but got SERIOUS errors with that - PAGE FAULT in GDI.EXE.
>
>I am using FoxPro v6 sp5. What can I do?

Form init ? or form.OleImageList.Init ?
If form init then it'd be :
this.OleImagelist.ListImages.Add(1,,LoadPicture(lcPath))

If you're getting GDI errors in design time then I suggest removing the control and adding fresh (and be sure it's version 6 SP4)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform