General information
Category:
ActiveX controls in VFP
>>I'm running into an error while loading pictures to an imagelist for a treeview. OLE error code 0x800a01e1: Unknown COM status code
>>
>>I was running this treeview in an exe all morning. The other day, this happened with bmp graphics. I changed the bmp to an ico and things were fine. Now I'm getting this message on ico graphics too.
>>There is a method in the treeview's parent container called .AddPictures which takes an array of graphics to load into the imagelist. It's in a FOR loop to load all pictures in the array.
>>
>>.Add(lnPicture, ;
>> laPictures[lnPicture, 1], ;
>> LoadPicture(laPictures[lnPicture, 2]))
>>
>>laPictures is two columns.
>>
>>1 = A text key "Close"
>>2 = path to graphic "\BaseFolder\Graphics\Clsdfld.ico"
>>
>>Any known issues with loading an imagelist this way?
>>
>>Steve
>
>Steve,
>First, was it OK in development mode? If yes, there's an easy thing to do: remove the ICO or BMP from the project and place your images in your root app directory. Change your code to find the pictures, then recompile. This has saved me (VFP5). (This is just a workaround for something that should work.)
>
>Jose
It typically is OK in dev mode. So what you are implying here is that LoadPicture() cannot properly translate the path to a graphic. I'll check that out and you're right.......it should work.
Thanks,
Steve
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only