Menu

#5 Accesing COM Interface

open
nobody
None
5
2005-06-23
2005-06-23
krishna
No

Hi,
I am trying to access COM dll from java using jawin.
Able to get the interface handle, and while accessing
the methods I am getting null pointer for the object
which I am passing.
Here the signature of my method.

Generated by jawin for my library.

public short GetCase(String szDBDir,String
szDBDefDir,String szModel,String szCase,Object[]
[] Case) throws COMException
{

return ((Short)invokeN("GetCase",
new Object[] {szDBDir, szDBDefDir, szModel, szCase,
Case})).shortValue();

}

My client code :
IGCAPICase[][] iGCAPICase = null;

short rCase = iGCAPIDb.GetCase("C:\\Program
Files\\GE
Energy\\GateCycle\\User\\models","C:\\Program
Files\\GE
Energy\\GateCycle\\System","GD1B1","GD1B1",oIGCA
PICase );

please help/give some inputs for this problem.

Regards,
Krishna.

Discussion


Log in to post a comment.