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 / Managed C++ / November 2007

Tip: Looking for answers? Try searching our database.

Out string array in abstract c# method implemented in C++

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GTraceski@softwarearchitects.biz - 28 Nov 2007 16:22 GMT
Hi,

I have the following parent class public definition:
abstract public bool IsValidForInspection(out string[]
strFailureReasons);

In my managed CPP class I am trying to understand what needs to be
here, I have tried:

bool MILGeometricModelFinder::IsValidForInspection([Out]String  __gc*
(__gc*) pprStrFailureReasons __gc[])

But the compiler isn't happy and says my pure virtual function isn't
declared with:
: cannot instantiate abstract class
       due to following members:
       'bool IsValidForInspection(System::String __gc *(__gc *)
__gc[])' : pure virtual function was not defined

I am new to c# ( if not obvious)...

Thanks in advance for any help in understanding!
Ben Voigt [C++ MVP] - 28 Nov 2007 19:07 GMT
> Hi,
>
> I have the following parent class public definition:
> abstract public bool IsValidForInspection(out string[]
> strFailureReasons);

Using C++/CLI, that would be:

bool MILGeometricModelFinder::IsValidForInspection([Out]
array<System::String^>^% strFailureReasons)

Managed Extensions for C++ are dead, don't use them.

> In my managed CPP class I am trying to understand what needs to be
> here, I have tried:
[quoted text clipped - 12 lines]
>
> Thanks in advance for any help in understanding!

Rate this thread:







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.