Using Variant [] with Jawin
Abhishek Ratani <[email protected]>
| Newsgroups | gmane.comp.windows.devel.jawin |
|---|---|
| Message-ID | <LISTSERV%[email protected]> |
Hey guys, I have just started using Jawin and this is the stub that has
been generated,
public int BuildTree(Variant[] query_words,Variant[] paragraphs,int lang)
throws COMException
{
return ((Integer)invokeN("BuildTree", new Object[]
{query_words, paragraphs, new Integer(lang)})).intValue();
}
I try to call BuildTree using the following code,
Variant searchterms [] = new Variant [1];
searchterms [0] = new Variant ();
searchterms [0].bstrVal = "AJ";
Variant searchdesc [] = new Variant [1];
searchdesc [0] = new Variant ();
searchdesc [0].bstrVal = "AJ is cool";
clusterobj.BuildTree(searchterms, searchdesc, 50);
I am new to this, so please bear with me if I sound ignorant. I've tried
to search my best, but I get the following error from the COM component,
SafeArray not implemented. How do I declare or pass a variant (that has to
be a arrray of strings) as a safearray i.e. in the COM component
searchterms needs to be an array of strings and passed as safearrays?
Thanks
AJ