C++ builder - Windows messaging system or callback function?

Status
Not open for further replies.

bobcat1

Advanced Member level 4
Joined
Jul 10, 2002
Messages
1,284
Helped
99
Reputation
198
Reaction score
34
Trophy points
1,328
Activity points
8,546
C++ builder

Hi All

I got a question for C++ builder pro programmers:

I have an application who use a dual Thread for processing what is the better and faster way to update a Tmemo object on the main form :

1) Using windows massaging system.

2) Using callback function

Thanks

Bobi
 

Re: C++ builder

It’s very difficult to answer this question without any practical observation. But with my previous experiences in Delphi/C++Builder I know that processing window messaging is more simple than using callback functions, but in a performance wise it is not a good solution. Because it always gives worse performance due to delays in processing window messages.

I recommended the using of callback functions for your task.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…