News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

An implemention of ITextHost wo works only with windbg

Started by TouEnMasm, August 24, 2012, 09:52:32 PM

Previous topic - Next topic

qWord

Quote from: ToutEnMasm on August 25, 2012, 05:06:57 PMIt must be perfect now.
run your program, open the task manager and look for the CPU usage - its far away from perfect.
MREAL macros - when you need floating point arithmetic while assembling!

TouEnMasm


seem he consume some times of the processor.
Perhaps have you an idea ?.
Fa is a musical note to play with CL

TouEnMasm


The more simple is responsible of this
Quote
invoke DrawText,hdc,addr asciihello, LENGTHOF asciihello -1,addr rect,DT_CENTER

I will search a little,perhaps msdn will answer.
Fa is a musical note to play with CL

qWord

The InvalidRect() must not be called from WM_PAINT. The invalidation forces the system to resend WM_PAINT endless. Call the function when the state of the graphic object has change (e.g. after creation).
MREAL macros - when you need floating point arithmetic while assembling!

TouEnMasm


ALL is good now
I have just replace the DrawText function by the DrawTextEx and added a NULL parameter that all.
Now that all is good ,I have deleted the InvalidateRect function.
I change the textdraw_final.zip in the post,so you can see the difference.
I have not searched why DrawText don't want to work,all parameter are good.
Fa is a musical note to play with CL