|
-
May 24th, 2006, 03:58 PM
#1
Thread Starter
Member
[RESOLVED] Class Structure Issue
I am using Visual Studio 2005. I have programmed a class for a motor controller. A method of the motor controller class is SendMessage, which sends a string to the motor controller. The motor class has a collection of another class - digital inputs to the motor controller. To access the status of a particular input looks something like this: clsMotor.Inputs(1).Status. I want to be able to poll the inputs like such: clsMotor.Inputs.Poll. However, the Poll method in the Inputs collection needs to use the SendMessage method of clsMotor. But there is not an instance of clsMotor in my Inputs collection - thus a problem.
What's the best way to fix this problem?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|