b***@yahoo.com
2006-09-14 09:48:28 UTC
Hello,
I am using code like this:
...
//load filter and read the text from documents.
CComPtr<IUnknown> unk;
HRESULT hr = LoadIFilter(A2W(tempfile.c_str()), NULL, (void**)&unk);
if (hr != S_OK) {
cout << "creation of IFilter failed" << endl;
return 0;
}
...
Then I extract the text from the documents. This is working well for
DOC, XLS and PPT files. But for RTF files it gives me hr as a large
negative value (about -2GB). I am unable to find out why error is
coming only for RTF docs.
Any guidance into solving the problem or going ahead with its analysis
would be very useful.
Thanks in advance.
Best regards,
B.
I am using code like this:
...
//load filter and read the text from documents.
CComPtr<IUnknown> unk;
HRESULT hr = LoadIFilter(A2W(tempfile.c_str()), NULL, (void**)&unk);
if (hr != S_OK) {
cout << "creation of IFilter failed" << endl;
return 0;
}
...
Then I extract the text from the documents. This is working well for
DOC, XLS and PPT files. But for RTF files it gives me hr as a large
negative value (about -2GB). I am unable to find out why error is
coming only for RTF docs.
Any guidance into solving the problem or going ahead with its analysis
would be very useful.
Thanks in advance.
Best regards,
B.