Article ID: 165550
Article Last Modified on 5/12/2007
methods:
// NOTE - ClassWizard will maintain method information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_METHOD(PtrTest)
[id(1)] void TestBstr([in,out]BSTR* arg1);
[id(2)] void TestLong([in,out]long* arg1);
//}}AFX_ODL_METHOD
This allows JavaTlb to generate a valid class file, and the server works as
expected when called from Java or Visual Basic.
import server.*; //this is generated by running JAVATLB on the
server's .TLB.
class test
{
public static void main(String args[])
{
System.out.println("\nStarting test...\n");
IPtrTest ptrTest = (IPtrTest) new PTRTEST();
String[] strParam = new String[1];
//int[] intParam = new int[1];
ptrTest.TestBstr(strParam); //Calling the automation method
}
}
Additional query words: bstr* COM
Keywords: kbbug KB165550