HighTechTalks DotNet Forums  

Problem with generated type lib

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss Problem with generated type lib in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Sericinus hunter
 
Posts: n/a

Default Problem with generated type lib - 06-12-2009 , 09:55 AM






Hi all,

I am developing a COM visible .Net component and ran into a strange problem.

Here is the barebone of the issue. Interface looks as follows:

public IInterface1
{
string Abc { get; set; }
}

Everything goes OK, but once I add some method which takes a parameter
with similar name as the property above, the property name screws up in the
generated tlb file. The method is on a different interface and even
inside a different namespace:

public IInterface2
{
void SomeMethod(string abc);
}

Now, generated idl shows property name 'abc' on IInterface1 (note the case),
and client code no longer understands get_Abc obviously.

To make things even more confusing I should add that this only
happens on two out of seven machines I tried it on. All of them
have .Net 2.0 with SP installed (the build target platform)
and use VS2008.

I would appreciate any light shed on this one.

Andrei

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.