PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Interoperability Object Browser & Intellisense do not match in VS.NET IDE

Reply

Object Browser & Intellisense do not match in VS.NET IDE

 
Thread Tools Rate Thread
Old 05-07-2003, 11:18 AM   #1
OutlookUser
Guest
 
Posts: n/a
Default Object Browser & Intellisense do not match in VS.NET IDE


Hi,

These are the steps I did:

1. I created a COM-wrapper for my Outlook.tlb for
Outlook10 in VS.NET IDE.
2. I used tlbimp to sign the wrapper with a strong name
(this was because I was getting an error which said there
was no strong name in the assembly)
3. I used ildasm to create the intermediate language file.
4. I changed all the "private" sinkhelper qualifier
to "public"
5. I used ilasm to recompile the component.
6. I used GACUTIL to add it to global assembly cache.
7. I created a new project and added a reference to this
component
8. In the object browser, I am seeing
Interop.Outlook.application class (Interop.Outlook being
the name of the component I compiled and I guess
Interop.Outlook namespace was created for me internally)
but when I try to create an instance of the object by
using intellisense, intellisense shows me only the
application interface and not the class! So during
runtime, when I try to assign the application object
coming from the OnConnection Event to this instance I am
trying to connect to, I am getting an error saying
that "No such interface supported Source: mscorlib" from
my Try-Catch error handling.
9. So, I tried to Cast it but I am not really sure what
should I cast it to?

Any help would be greatly appreciated as without this
addin, I am not able to track lot of information.

Thanks.

Suresh
  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off