file path problem in cf1.1

Hi all experts,

I have a simple question, I want to draw a image from a file, say, in MyDevice/folderA/image.jpg, how do I specified the path? if I use like:

bmp = new Bitmap("MyDevice/folderA/image.jpg");

I will get a error, I have a reference book, but I couldn't find the answer in there too (maybe too simple to mention........)Tongue Tied

Many thanks for your help!

Ray

[444 byte] By [rayBristol] at [2007-12-16]
# 1

If you replace "MyDevice" with "\" which stands for root folder and use "\" instead of "/", that should work.

Assuming "folderA" is located in root, correct path would be: "\\folderA\\image.jpg" or @"\folderA\image.jpg".

Also note Windows CE has no support for relative paths, you have to specify full paths in all cases.

IlyaTumanov at 2007-9-9 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...
# 2
yes, now is working, thanks!
rayBristol at 2007-9-9 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...