I am just trying to get some very basic features going. I modified the Display sample project to use an absolute file path for the geodatabase:
if ((hr = OpenGeodatabase(L"D:\\Work\\Include\\FileGDB_API_VS2008_1_3\\samples\\data\\Querying.gdb";, geodatabase)) != S_OK)
return hr;
Which works fine. But if I include this very same line in another project that I wrote(MSVS2008) I get hr = -2147024894 every time, indicating that the file cannot be found. Obviously the file could be found, because I can open it in the sample project that way but apparently it is looking differently. As far I can tell the two projects are using the same setting for character sets and so forth. So what is going on here?