examples: show error dialog if d2d not availabe if you use it