BUG: Tstcon32.exe Can't Invoke Method with BSTR* Parameter TypeID: Q199942
|
The ActiveX Control Test Container (version 6.0.8063) that ships with Visual C++ 6.0 fails to invoke a method of an MFC ActiveX control that has BSTR* parameter type.
This is a bug in Visual C++ 6.0's ActiveX Control Test Container.
One workaround is to use containers such as Visual Basic. Another workaround is to use LPCTSTR as the parameter type.
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.
void CMyControl::Test(BSTR FAR* Par1)
{
// TODO: Add your dispatch handler code here
AfxMessageBox("In Test");
return 0;
}
First-chance exception in TSTCON32.EXE (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception. Warning: automation argument coercion failed. First-chance exception in TSTCON32.EXE (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
(c) Microsoft Corporation 1999, All Rights Reserved. Contributions by Yeong-Kah Tam, Microsoft Corporation.
Additional query words:
Keywords : kbole kbActiveX kbContainer kbCtrl kbMFC kbVC kbVC600bug kbDSupport
Version : winnt:6.0
Platform : winnt
Issue type : kbbug
Last Reviewed: March 7, 1999