Re: Newbie question, using the COM Interface

"goobamarino" <[email protected]> Thu, 28 Aug 2003 17:03:30 -0000
Newsgroups gmane.lisp.corman
Message-ID <[email protected]>
In order for VB to use a COM server it must have a Typelibrary. COM 
servers are not required to expose typelibraries although it makes 
the COM server available to a wider audience (VB, VBScript, ASP).

Also, if a typelibrary is used only Automation data types are 
permitted. The Windows API is challenging for the VB programmer 
because it is mostly a C API not a COM API. 

Have you tried using the Cormanlisp worksheet to experiment with? It 
is very useful and can be used to call COM servers. I have used it 
to call compiled VB routines. I am currently working at calling lisp 
routines from a COM program. It's certainly feasible, I just haven't 
finished it yet.

Summary:
Using Cormanlisp to call external libraries is accomplished with the 
FFI (foreign function interface). You have to understand C.

Using VB to call Cormanlisp would be done either via the DirectCall 
interface described in the Corman manual, or by exporting various 
entry points in your lisp program as C functions. You can compile a 
DLL of lisp functions and then call them from VB. 

Hope this helps a bit,
Wayne Rogers

--- In [email protected], "rdmerrio" 
<corman.20.rdmerrio@s...> wrote:
> I am new to Lisp. I am also not too familiar with C/C++ 
programming. 
> I would like to play with the CormanLispServer.dll as a COM object 
> under VB; however, VB does not recognize the dll as a COM object. 
> 
> Are there examples using the dll with languages other than C/C++, 
> either as a COM object or using calls into the dll.
> 
> Thanks Richard


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/SyjtlB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[email protected]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/