Solved

IEnumerator

Posted on 2007-11-18
4
412 Views
Last Modified: 2010-04-24
Could anyone tell me which is the correct form in VC++?

System::Collections::IEnumerator^ myEnumerator = groupBox2->Controls->GetEnumerator();

while ( myEnumerator->MoveNext()){
    CheckBox test =(CheckBox)myEnumerator->Current;
}
0
Comment
Question by:aureliuh
4 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 250 total points
ID: 20308144
System::Collections::IEnumerator* myEnumerator = groupBox2->Controls-->GetEnumerator();
while (myEnumerator->MoveNext())
{
    CheckBox *test = __try_cast<CheckBox *>(myEnumerator->Current);
}
0
 
LVL 1

Expert Comment

by:Computer101
ID: 20520479
Forced accept.

Computer101
EE Admin
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question