SPUG: API access

Colin Meyer cmeyer at helvella.org
Fri May 10 13:47:02 CDT 2002


Hi Martin,

On Fri, May 10, 2002 at 07:02:10AM -0700, Martin Korb wrote:
> I have a search Engine whose api I can access through a com object
> using C or vb. Is there a way to do this also with Perl? Here is the
> specifics how to access the api through C or vb. The Server object
> provides access to all of the other objects that the Search engine
> creates. To use the Search engine, first create a Server object, then
> use the NewIndexJob, NewSearchJob, and NewOptions methods to access
> the indexing and searching capabilities of the engine. Thanks Martin

The easiest way may be to use the C library from within Perl.

You can use Inline::C to create a Perl wrapper to the C lib. There
are examples of how to do this in the docs that ship with Inline::C.

(I'm assuming that you have a C .so or .dll type library used for
access.)

Have fun,
-C.

> 

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
     Seattle Perl Users Group (SPUG) Home Page: http://seattleperl.org




More information about the spug-list mailing list