Jeff Gibeau 2.Feb.09 12:39 PM a Web browser Toolkits6.5All Platforms
I'm trying to use the FIELDGETTEXT (const _variant_t & FIELDNAME = vtMissing) method of the NOTESUIDOCUMENTPtr in C++. I am having trouble setting up the Variant to pass to the method with the field name. Can anyone provide an example of the C++ code required to setup the const _variant_t & FIELDNAME variable to pass into the method?
Current Code I am using:
const _variant_t fieldNameConst("Form");
_bstr_t formName = notesUIDoc->FIELDGETTEXT(&fieldNameConst);
With my current code I am receiving the exception:
Microsoft C++ exception: _com_error at memory location 0x0013ed38.