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++ / June 2005

Tip: Looking for answers? Try searching our database.

Get the size of managed array

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tlemcenvisit - 07 Jun 2005 00:18 GMT
Hello
I've a function witch have a managed array as input and output parameters.
output array has the same size as input array
I'de like to declare an array witch has the same size like the input array :

array<int,2>^ fct(array<int,2>^ T)
{
array<int,2>^ t=gcnew array<int,2>( ?,?);
...
return t;
}

someone has an idea?
Thanks
Tomas Restrepo \(MVP\) - 07 Jun 2005 02:09 GMT
> I've a function witch have a managed array as input and output parameters.
> output array has the same size as input array
[quoted text clipped - 8 lines]
>
> someone has an idea?

try:
array<int,2>^ t=gcnew array<int,2>(T->GetLength(0), T->GetLength(1));

Signature

Tomas Restrepo
tomasr@mvps.org
http://www.winterdom.com/


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.