By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,567 Members | 1,730 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,567 IT Pros & Developers. It's quick & easy.

Type from ProgID on remote machine

P: n/a
Hello All
I'm using the Type tp = Type.GetTypeFromProgID(progID, machineName)
call to get a COM object type from a remote machine. The wierd thing is
that, even though the remote machine does not exist, I still get a
System.__COMObject for tp. As per doc, I thought it would be null.

Can someone please enlighten me here..??

thanks
Sunit

Nov 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Sure you get this type, but it's value will be null.

Willy.

<sj****@ingr.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hello All
I'm using the Type tp = Type.GetTypeFromProgID(progID, machineName)
call to get a COM object type from a remote machine. The wierd thing is
that, even though the remote machine does not exist, I still get a
System.__COMObject for tp. As per doc, I thought it would be null.

Can someone please enlighten me here..??

thanks
Sunit

Nov 16 '05 #2

P: n/a
But the condition for null never evaluates to True as below

tp = Type.GetTypeFromProgID(progID, machineName, true);
if(tp==null)
//Never reaches here
And tp gets all the properties filled in. Is there a specific property
of Type object that will tell me that the object I wanted to create did
not ??

thanks
Sunit

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #3

P: n/a
I think there is a bug with GetTypeFromProgID especially when the
ProgID is also registered on the local machine. So eventhough I'm
specifying a machine name that is different then my local machine, it's
returning me a type from that created on my machine.

Sunit

Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.