Link to home
Start Free TrialLog in
Avatar of LeeOgley
LeeOgley

asked on

MFC Apps under Win95

HI,
 
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.
 
Lee Ogley
ASKER CERTIFIED SOLUTION
Avatar of Vinayak Kumbar
Vinayak Kumbar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of LeeOgley
LeeOgley

ASKER

Great, thanks,

Any idea why Win95 left justifies all my centre justified edit/text boxes though.

Lee
Hi,

I have given the comment for, Just make sure of center justification by doing it in code also. So that, that variable will be reduced.

Try it out and let me know the results.
VinExpert