comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » IDLcomIDispatch question (newbie alert!)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
IDLcomIDispatch question (newbie alert!) [message #39085] Fri, 23 April 2004 13:10 Go to next message
jnettle1 is currently offline  jnettle1
Messages: 27
Registered: January 2001
Junior Member
Can someone tell me what I'm doing wrong in the following line:

xl = obj_new("IDLcomIDispatch$PROGID$Excel_Application")

I was hoping this would create a reference to excel, but it's giving
me the error:
"OBJ_NEW: Requested object doesn't exist."
Which is weird to me, because I am 90% sure I'm using the correct
PROGID....at least I know that this PROGID works when i try to use COM
objects using other languages like VB or PERL. Any help would be
greatly appreaciated. I've searched the archives for excel references
and what i found doesn't look too promising, so I don't have high
hopes that I'm going to get this to work, but hopefully one of you
fine folks will show me something silly that I've missed :)

Thanks and have a good weekend,
Jeff
Re: IDLcomIDispatch question (newbie alert!) [message #39216 is a reply to message #39085] Mon, 26 April 2004 08:52 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
"Jeff" wrote in message...

> Can someone tell me what I'm doing wrong in the following line:
>
> xl = obj_new("IDLcomIDispatch$PROGID$Excel_Application")
>
> I was hoping this would create a reference to excel, but it's giving
> me the error:
> "OBJ_NEW: Requested object doesn't exist."

I can't tell you what you are doing wrong but I can tell you that if you use
the CLSID it works fine. I generally stick with the CLSID but I too tried
with the PROGID and I got the same error. IDL knows that the PROGID is a
valid class string, but it seems that it can't do anything with it.

-Rick
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDLcomIDispatch question (newbie alert!)
Next Topic: Re: mpeg quality

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 04:22:46 PDT 2025

Total time taken to generate the page: 0.00739 seconds