MDI app message dispatching



I have an MDI application which receives streaming data from a measuring device. The MDI application consists of several child forms - each of which contains a label for displaying text.

The data is of binary format - and consists of a header section, and a payload section. The header contains a tag code (which identifies the child form to which the payload data is to be sent), and the payload (to keep things simple), consists of text.

I have worked out the logic, but I am not too sure how to code in VB6 (coming from a different language).

The logic is as follows:

1). Message is received
2). Check tag to determine which child to send data to - if a child form with matching tag is not available, then spawn a new child, set tag and pass message to new form - else if child with matching tag is found, simply pass message to it.

Could anyone provide an outline as to how I may implement this using VB6 ?
.



Relevant Pages

  • Re: Meaning of "TAG, youre it."?
    ... Tagger must reach and touch another child and shout "Tag" or else ...
    (alt.usage.english)
  • Re: treeview help
    ... This is how I'm setting up the child... ... with a tag = "DUMMY". ... >> I would like to populate the treeview with the parent level to start. ... >> The only catch is I would like to still retrieve the expansion data so ...
    (microsoft.public.vb.general.discussion)
  • Re: Confirmed: Barack Obama Practiced Islam
    ... Mensch) wrote: ... child, was perhaps "made", by his step-father, to tag along with him ...
    (soc.retirement)
  • Re: Meaning of "TAG, youre it."?
    ... The Tagger must reach and touch another child and shout "Tag" or else "You're It." ... Please note the changed e-mail and web addresses. ...
    (alt.usage.english)
  • Re: Weird Problem: Closing MDI Parent re-directed to MDI Child
    ... I see now why it goes to the child forms first. ... At the MDI form level I handle the Form.Closed event. ... Opening the child form loads some user controls and adds event handlers to ... > I would expect when you close the MDI parent that it will be re-directed ...
    (microsoft.public.dotnet.languages.vb)

Loading