"The system cannot find the file specified"

I am using LoadImage to load an icon, and it keeps getting this error. I've vetted it for Unicode/Ansi compatibility and typing the pathname into the windows searchbar directly opens the file successfully, so I know the pathname is correct.

LoadImageA(NULL, "f:\img.ico", IMAGE_ICON, 0, 0, LR_LOADFROMFILE); is the current line. I've also tried LoadImageW and L"F:\img.ico" constant and LoadImage with _T macro. Also wondered to myself if it could be NTFS security properties but I looked at the exe and the icon file and nothing stood out to me...javascript:PostPreview()

UPDATE: Figured it out; forgot all about escaping backslashes with a second backslash!
Last edited on
Topic archived. No new replies allowed.