Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / June 2007

Tip: Looking for answers? Try searching our database.

Problem in Writting parameterised property in Managed C++

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DebGuria - 29 Jun 2007 11:02 GMT
I have written a managed C++ dll. I have to use that dll from C#,
VB .NET and VB. It has got a parameterised propetyfor the very
specific requirement. For example get_Pie(float f).

When I am using that dll from another Managed C++ application, VS
2003/2005 IDE is displaying one property and one method for that. i.e.
displaying "get_Pie" as method and "Pie" as property. But when I am
using that dll from C#, it is displaying only method "get_Pie" and in
VB it is displaying "Pie" as property.
Why different IDE behaving different?
How can I solve this issue?
Jon Skeet [C# MVP] - 29 Jun 2007 11:10 GMT
> I have written a managed C++ dll. I have to use that dll from C#,
> VB .NET and VB. It has got a parameterised propetyfor the very
[quoted text clipped - 7 lines]
> Why different IDE behaving different?
> How can I solve this issue?

C# doesn't have parameterised properties that can be accessed by name
- only indexers. I'm afraid I don't know the C++ syntax to indicate
that a property should be regarded as an indexer for a type.

Jon

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.