Hello Markus,

> I know that this is bad design, but that is used only for testing the dll
> Later it will be replaced by another dll which really will be event driven

First of all, writing event driven is in fact more simple that
sequentional programming if you are used to do it. Secondly you are
loosing time writing first a test app with bad design because you have
to do all your work double.

The best you can do (and thats what oop is all for), is to write an
object that does all the handling you want. Execeute and test your
object in a normal test application. When all works fine, just move your
object into a thread. If the designe is good you only have a few minutes
work for the conversion. When this works also good then you move it into
a DLL, export the publics you need and again it is only some minutes
work.

Advantage is that the whole testing of your code you dont have to worry
about thread and DLL so debugging is concentrated on the mechanism
itself. Another advantage is that you easy can reuse it, eventually with
a derrived object from it.

---
Rgds, Wilfried
http://www.mestdagh.biz


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to