Re: COM. Questions and Bugs
On Friday, Feb 28, 2003, at 17:32 America/New_York, Guy Footring wrote:
> In message <3BDB39E6-4B68-11D7-9090-000393A70920@cs.nyu.edu>, Marco
> Antoniotti <marcoxa@cs.nyu.edu> writes
>>
>> On Friday, Feb 28, 2003, at 15:53 America/New_York, Guy Footring
>> wrote:
>>
>>> I've been struggling with the COM functionality to get to the point
>>> where I can use it to drive Excel (I'm not sure if I'll ultimately
>>> use this route, but I'm at least trying to get it working), and have
>>> hit similar problems. I think that the key part of the error
>>> message is:
>>>>> (COM:COM-INTERFACE I-ACTIVE-SCRIPT-SITE))): Illegal foreign
>>>>> type I-TYPE-INFO.
>>>>> ; *** 1 error detected, no fasl file produced.
>>>
>>> This keeps killing me too - some illegal foreign type which I have
>>> to spend inordinate amounts of time trying to track which type
>>> library it is defined in. In this case there appears to be a type
>>> library that includes ITypeInfo available from:
>>> http://www.domaindlx.com/e_morcillo/scripts/type/default.asp
>>
>> Sorry, but I do not understand the reference. That is just a list of
>> known interfaces.
>
> At the bottom was the option to download the OLELIB.TLB file that
> could (presumably) be loaded with COM:USE-TYPE-LIBRARY.
Ah. Let me try it.
>
>> The 'ITypeInfo' interface is defined in the standard file 'OAIDL.IDL'
>> (which seems to be correctly processed by COM:MIDL.
>>
>>>
>>> You can either define it to be part of a system using the
>>> :midl-type-library-file type (documented I believe) or use the
>>> undocumented COM:USE-TYPE-LIBRARY to load it.
>>
>> I don't think this is going to work. Eventually - AFAIU - you need
>> to call COM:MIDL on a file containing the interface.
>
> I'm only using COM:USE-TYPE-LIBRARY for what I'm doing, so using MIDL
> isn't necessarily required. If I understand correctly (which could
> quite easily not be the case) the type library file is some kind of
> compiled IDL file.
>
>> I can try to call COM:MIDL separately on 'OAIDL.IDL' to see whether I
>> can load the 'ITypeInfo' library beforehand. Anyway, the
>> 'FontEvents' error is still there.
>>
>
> Looking in the ocidl.idl file the IFontsEventDisp interface doesn't
> follow the same pattern as the others in that the first statement
> isn't a typedef for IFontsEventDisp. I've no idea whether this is a
> bug in ocidl.idl or simply something unusual that COM:MIDL is failing
> to deal with. However, the FontsEvents error seems to have been
> recovered from, whereas the I-TYPE-INFO error was terminal.
Ok. You got further than I did on this one.
For the Lispworks people: it would be useful to know what exactly the
MIDL file is doing. I mean, at a high level, to understand its output.
Thanks
--
Marco Antoniotti
NYU Courant Bioinformatics Group tel. +1 - 212 - 998 3488
715 Broadway 10th FL fax. +1 - 212 - 998 3484
New York, NY, 10003, U.S.A.
Re: COM. Questions and Bugs
On Friday, Feb 28, 2003, at 17:37 America/New_York, Marco Antoniotti
wrote:
>
> On Friday, Feb 28, 2003, at 17:32 America/New_York, Guy Footring wrote:
>
>> In message <3BDB39E6-4B68-11D7-9090-000393A70920@cs.nyu.edu>, Marco
>> Antoniotti <marcoxa@cs.nyu.edu> writes
>>>
>>> On Friday, Feb 28, 2003, at 15:53 America/New_York, Guy Footring
>>> wrote:
>>>
>>>> I've been struggling with the COM functionality to get to the point
>>>> where I can use it to drive Excel (I'm not sure if I'll ultimately
>>>> use this route, but I'm at least trying to get it working), and
>>>> have hit similar problems. I think that the key part of the error
>>>> message is:
>>>>>> (COM:COM-INTERFACE I-ACTIVE-SCRIPT-SITE))): Illegal foreign
>>>>>> type I-TYPE-INFO.
>>>>>> ; *** 1 error detected, no fasl file produced.
>>>>
>>>> This keeps killing me too - some illegal foreign type which I have
>>>> to spend inordinate amounts of time trying to track which type
>>>> library it is defined in. In this case there appears to be a type
>>>> library that includes ITypeInfo available from:
>>>> http://www.domaindlx.com/e_morcillo/scripts/type/default.asp
>>>
>>> Sorry, but I do not understand the reference. That is just a list
>>> of known interfaces.
>>
>> At the bottom was the option to download the OLELIB.TLB file that
>> could (presumably) be loaded with COM:USE-TYPE-LIBRARY.
>
COM:USE-TYPE-LIBRARY is unbound and undefined in 4.2.7.
Now what?
--
Marco Antoniotti
NYU Courant Bioinformatics Group tel. +1 - 212 - 998 3488
715 Broadway 10th FL fax. +1 - 212 - 998 3484
New York, NY, 10003, U.S.A.
Re: COM. Questions and Bugs
Unable to parse email body. Email id is 907
Re: COM. Questions and Bugs
In message <EC832116-4B6E-11D7-9090-000393A70920@cs.nyu.edu>, Marco
Antoniotti <marcoxa@cs.nyu.edu> writes
>
>On Friday, Feb 28, 2003, at 17:37 America/New_York, Marco Antoniotti
>wrote:
>
>>
>> On Friday, Feb 28, 2003, at 17:32 America/New_York, Guy Footring wrote:
>>
>>> In message <3BDB39E6-4B68-11D7-9090-000393A70920@cs.nyu.edu>, Marco
>>>Antoniotti <marcoxa@cs.nyu.edu> writes
>>>>
>>>> On Friday, Feb 28, 2003, at 15:53 America/New_York, Guy Footring
>>>>wrote:
>>>>
>>>>> I've been struggling with the COM functionality to get to the
>>>>>point where I can use it to drive Excel (I'm not sure if I'll
>>>>>ultimately use this route, but I'm at least trying to get it
>>>>>working), and have hit similar problems. I think that the key
>>>>>part of the error message is:
>>>>>>> (COM:COM-INTERFACE I-ACTIVE-SCRIPT-SITE))): Illegal foreign
>>>>>>>type I-TYPE-INFO.
>>>>>>> ; *** 1 error detected, no fasl file produced.
>>>>>
>>>>> This keeps killing me too - some illegal foreign type which I have
>>>>>to spend inordinate amounts of time trying to track which type
>>>>>library it is defined in. In this case there appears to be a type
>>>>>library that includes ITypeInfo available from:
>>>>> http://www.domaindlx.com/e_morcillo/scripts/type/default.asp
>>>>
>>>> Sorry, but I do not understand the reference. That is just a list
>>>>known interfaces.
>>>
>>> At the bottom was the option to download the OLELIB.TLB file that
>>>could (presumably) be loaded with COM:USE-TYPE-LIBRARY.
>>
>
>COM:USE-TYPE-LIBRARY is unbound and undefined in 4.2.7.
>
It works for me in 4.2.7
I'm REQUIREing "com" and "automation". Are you only REQUIREing "com"?
Perhaps it is defined there.
Guy.
>Now what?
>
>--
>Marco Antoniotti
>NYU Courant Bioinformatics Group tel. +1 - 212 - 998 3488
>715 Broadway 10th FL fax. +1 - 212 - 998 3484
>New York, NY, 10003, U.S.A.
>
--
Re: COM. Questions and Bugs
On Saturday, Mar 1, 2003, at 02:31 America/New_York, Guy Footring wrote:
>
> It works for me in 4.2.7
> I'm REQUIREing "com" and "automation". Are you only REQUIREing "com"?
> Perhaps it is defined there.
>
Thanks for the hint. I was very stupid.
REQUIRing "automation" makes the
(com:midl "ACTIVSCP.IDL")
call work. (Except for the FontEvents) problem.
I will keep you posted about my progress.
Cheers
--
Marco Antoniotti
NYU Courant Bioinformatics Group tel. +1 - 212 - 998 3488
715 Broadway 10th FL fax. +1 - 212 - 998 3484
New York, NY, 10003, U.S.A.