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 / .NET Framework / General / March 2006

Tip: Looking for answers? Try searching our database.

Passing List<double> to a C++ Class Library from C#

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jamie - 31 Mar 2006 17:42 GMT
hi,

I'm trying to pass a List<double> array from C# to a C++ class library
but I get the following error:
"No overload for method 'zzz' takes '1' arguments"

My C++ method in the library has 1 argument:
zzz(List<double> x)

and i'm calling it from C# with:
List<double> test = new List<double>();
test.Add(0.123);
objTest.zzz(test);

Any pointers/links to information on this topic would be appreciated

Jamie
Willy Denoyette [MVP] - 31 Mar 2006 20:37 GMT
You need a 'reference' type argument in C++/CLI, so change your code like
this.

zzz(List<double>^ x)

All you need to know is written in the Ecma-372 "C++/CLI Language
Specification" which can be found here: http://www.ecma-international.org/.

Willy.

| hi,
|
[quoted text clipped - 13 lines]
|
| Jamie
jamie - 31 Mar 2006 22:59 GMT
> All you need to know is written in the Ecma-372 "C++/CLI Language
> Specification" which can be found here: http://www.ecma-international.org/.
>
> Willy.

thanks for the tip.
Jamie

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.