Hello,I've modified the sample source code Querying.cpp to open another database in the sample (TestData.gdb). I get the following error saying, "General function failure (-2147467259)". Can anyone tell me what I'm doing wrong here? Thanks for your help.Here is my source code.
fgdbError hr;
wstring errorText;
Geodatabase geodatabase;
if ((hr = OpenGeodatabase(L"../data/TestData.gdb", geodatabase)) != S_OK)
{
wcout << "An error occurred while opening the geodatabase." << endl;
ErrorInfo::GetErrorDescription(hr, errorText);
wcout << errorText << "(" << hr << ")." << endl;
return -1;
}