1 | initial version |
You have to escape backslashes in C/C++ and most other languages (no clue which one you use, but looks like C++).
Thus your string should be
const string ImageName("D:\\SomeImage.tif");
2 | additional question |
You have to escape backslashes in C/C++ and most other languages (no clue which one you use, but looks like C++).
Thus your string should be
const string ImageName("D:\\SomeImage.tif");
Because you state it does not work with Debug-Mode, did it work in "normal" mode?