Adobe Acrobat DC stopped working when my plugin loads
Hi All,
We have a plugin for stamping, in PDF documents. The Stamp contain custom data which is taken from our system.For that purpose we make our logic as tlb and trying to refer . Then the plugin fails and acrobat stopped working. The below code show we are dealing with tlb.
char* GetStampString()
{
char *chRet;
try
{
HRESULT hr = CoInitialize(NULL);
MyInterOp::ITest* pTest = NULL;
hr = CoCreateInstance(__uuidof(MyInterOp::Test), NULL, CLSCTX_INPROC_SERVER, __uuidof(MyInterOp::ITest), (void**)&pTest);
MyInterOp::MyStruct HUGEP *pBSTR;
//The below line fails when plugin initialized.
hr = SafeArrayAccessData(pTest->GetData, (void HUGEP* FAR*)&pBSTR);
chRet = _com_util::ConvertBSTRToString(pBSTR[0].name);
}
catch (char* str)
{
MessageBox(NULL, str, "Wrench", NULL);
}
return chRet;
}
please give a solution for this.
Thanks
Bimal George
