I got a problems I was hoping I could get help on. I've created a program over the past few weeks on NT, which works ok. I've come to test the software on a win95 machine and I've developed 2 problems.
The first and not so important problem is that under Nt all my
text/edit boxes are centred, and appear so when run, under Win95 they all reveert to left justification...only a small problem but it is bugging me.
My major problem is that thread is not working. The program is an MFC exe, which uses a main working thread. Under NT everything ok, the thread goes away every so often and then updates my main screen. Under 95 nothing happens. To narrow the problem I commented out all the code within the thread and just left in a MessageBox call in a loop. Under NT the message is correctly displayed every 2 seconds...under 95 nothing.
I use the following line to kick off the thread :-
_beginthread( NULL, 0, ldmiThread, &ldmi, 0, dummy ) ldmiThread - The function
ldmi - a pointer to a shared structure between thread and main class
I was going to use a TIMER function but the thread can take a bit of processing and if I use a TIMER the front end is slowed down and becomes un-responsive.
Any help greatly appreciated.