IEnumerator* en = ds.Tables[0].Rows->GetEnumerator();
while(en->MoveNext())
{
DataRow* dr = dynamic_cast<DataRow*>(en->Current);
//...
}
--
Regards,
Nish [VC++ MVP]
http://www.voidnish.com /* MVP tips tricks and essays web site */
http://blog.voidnish.com /* My blog on C++/CLI, MFC, Whidbey, CLR... */
"GeRmIc" <Ge****@discussions.microsoft.com> wrote in message
news:3A**********************************@microsof t.com...
Hi,
I am working on interop using C and managed c++ (on Visual Studio 2003
IDE). How do i simulate the foreach loop present in C# or VB.NET in MC++
foreach (DataRow dr in ds.Tables[0].Rows) equivalent in MC++?
Thanks