Hello
By switching from C ++ Builder 2007 to the 2009 builder, the function provides "Image1-> Picture-> LoadFromFile (const UnicodeString filename);" with surrender of a Unicode string (for example, "C: \\ Program Files \\ Cookbook \\ 4907.JPG"), only the error message:
File "C: \\ Program Files \\ Cookbook \\ 4907.JPG" can not be opened. The Device is not ready. (Note: The file is, of course, available.)
If I however over an OpenDialog the function assigns a filename (for example, "LoadFromFile (Opendialog1-> FileName);"), the loading process will work perfect.
Amazing is that when debugging from the OpenDialog1-> filename the same text ("C: \\ Program Files \\ Cookbook \\ 4907.JPG") is also to be read failed with the UnicodeString.
Under the Builder 2007 the function with the AnsiString worked perfectly, who knows why it does not work anymore.
Gert