Click here to Skip to main content
15,886,362 members
Articles / Desktop Programming / MFC

SyncInvoker: Keep Your GUI Responsive During Lengthy Synchronous Calls

Rate me:
Please Sign up or sign in to vote.
4.93/5 (20 votes)
16 Apr 2007CPOL4 min read 68.4K   462   54  
Keep your GUI responsive when making blocking synchronous calls. Dave offers a technique using SyncInvoker,

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PricingServer", "PricingServer\PricingServer.vcproj", "{547C61B9-B705-4E27-BC3C-5845F24FA3F4}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Win32 = Debug|Win32
		Release|Win32 = Release|Win32
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{547C61B9-B705-4E27-BC3C-5845F24FA3F4}.Debug|Win32.ActiveCfg = Debug|Win32
		{547C61B9-B705-4E27-BC3C-5845F24FA3F4}.Debug|Win32.Build.0 = Debug|Win32
		{547C61B9-B705-4E27-BC3C-5845F24FA3F4}.Release|Win32.ActiveCfg = Release|Win32
		{547C61B9-B705-4E27-BC3C-5845F24FA3F4}.Release|Win32.Build.0 = Release|Win32
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead
United Kingdom United Kingdom
When Dave isn't trying to play drums, fly helicopters or race cars, he can be found coding hard and herding cats at JoinIn Networks He must try harder!

You can read Dave's ramblings in his blog Aliens Ate My GUI

Or, if you can be bothered, he twitters on BoomerDave

Comments and Discussions