DISP_E_UNKNOWNNAME from GetIDsOfNames 
Author Message
 DISP_E_UNKNOWNNAME from GetIDsOfNames

Hello, I'm writing a client service for a component that is running in MTS
under win2k.  I am having a problem with GetIdsOfNames.  It keeps returning
DISP_E_UNKNOWNNAME even though I can see in MTS that I have the right name
and everything else.  Are there other reasons why I would get this error?
Does anyone have any suggestions?


Sun, 03 Nov 2002 03:00:00 GMT  
 DISP_E_UNKNOWNNAME from GetIDsOfNames

Quote:
> Hello, I'm writing a client service for a component that is running in MTS
> under win2k.  I am having a problem with GetIdsOfNames.  It keeps returning
> DISP_E_UNKNOWNNAME even though I can see in MTS that I have the right name
> and everything else.  Are there other reasons why I would get this error?
> Does anyone have any suggestions?

Be sure you are passing in a sensible
value for the LCID parameter.  Be sure
your names array is in Unicode.  If
this is not enough to get you past
the problem, please post your calling
sequence.  In my experience, all the
IDispatch::GetIDsOfNames() implementations
I have dealt with behaved as documented.

--
Larry Brasfield
Above opinions may be mine alone.



Sun, 03 Nov 2002 03:00:00 GMT  
 DISP_E_UNKNOWNNAME from GetIDsOfNames
Thanks a lot.  I think I got past the GetIDsOfNames.  Now the problem seems
to lie in the argument that I am passing.  My function is expecting a
MSMQueue Message object.  Does anyone know either of two things:

1) How can I declare the argument that I am passing in as a MSMQueue Message
object?

2) How can I cast my Message object into a variant and pass it as a variant?

Thanks a lot.


Quote:

> > Hello, I'm writing a client service for a component that is running in
MTS
> > under win2k.  I am having a problem with GetIdsOfNames.  It keeps
returning
> > DISP_E_UNKNOWNNAME even though I can see in MTS that I have the right
name
> > and everything else.  Are there other reasons why I would get this
error?
> > Does anyone have any suggestions?

> Be sure you are passing in a sensible
> value for the LCID parameter.  Be sure
> your names array is in Unicode.  If
> this is not enough to get you past
> the problem, please post your calling
> sequence.  In my experience, all the
> IDispatch::GetIDsOfNames() implementations
> I have dealt with behaved as documented.

> --
> Larry Brasfield
> Above opinions may be mine alone.




Mon, 04 Nov 2002 03:00:00 GMT  
 DISP_E_UNKNOWNNAME from GetIDsOfNames
All dual interfaces are passed as IDispatch* contained in a VARIANT.
The client always does QI, BTW...

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD

MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================


Quote:
> Thanks a lot.  I think I got past the GetIDsOfNames.  Now the problem
seems
> to lie in the argument that I am passing.  My function is expecting a
> MSMQueue Message object.  Does anyone know either of two things:

> 1) How can I declare the argument that I am passing in as a MSMQueue
Message
> object?

> 2) How can I cast my Message object into a variant and pass it as a
variant?

> Thanks a lot.




> > > Hello, I'm writing a client service for a component that is running in
> MTS
> > > under win2k.  I am having a problem with GetIdsOfNames.  It keeps
> returning
> > > DISP_E_UNKNOWNNAME even though I can see in MTS that I have the right
> name
> > > and everything else.  Are there other reasons why I would get this
> error?
> > > Does anyone have any suggestions?

> > Be sure you are passing in a sensible
> > value for the LCID parameter.  Be sure
> > your names array is in Unicode.  If
> > this is not enough to get you past
> > the problem, please post your calling
> > sequence.  In my experience, all the
> > IDispatch::GetIDsOfNames() implementations
> > I have dealt with behaved as documented.

> > --
> > Larry Brasfield
> > Above opinions may be mine alone.




Mon, 04 Nov 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. DISP_E_UNKNOWNNAME from GetIDsOfNames

2. DISP_E_UNKNOWNNAME from GetIDsOfNames

3. can't call script function in MSHTML hr=DISP_E_UNKNOWNNAME

4. mysterious DISP_E_UNKNOWNNAME (only default interface?)

5. GetIDsOfNames help

6. GetActiveObject / GetIDsOfNames returns E_NOIMPL

7. problem with parameter 2 of GetIDsOfNames

8. IDispatch::GetIDsOfNames (newbie)

9. IDispatch::GetIDsOfNames (newbie)

10. Question on GetIDsOfNames

11. Use of GetIDsOfNames for methods

12. ActiveX Collections, Containers, GetIdsOfNames, LPDISPATCH

 

 
Powered by phpBB® Forum Software