spacer spacer spacer spacer spacer spacer spacer spacer
Luigi Bianchi Web Site spacer
spacer Home Software Programming Others About spacer spacer
spacer spacer
spacer spacer

www.luigibianchi.com

Dual Monitor

separator images 

Sometimes ago, I had to develop an application (a special BCI protocol implementation) with a Dual Monitor support, in order to give the user some feedback about his "mental states". So I needed a monitor for the operator (to set/check all the acquisition parameters), and another one for the user, but that could be totally independent with respect to the operator one. Moreover, the user monitor should just display graphics, using GDI calls, without windowing, mouse, etc... Just as an additional and independet programmable display without the possibility to bring the mouse cursor into it. As in the DOS days. For this reason I purchased a Matrox G400, Dual Head, and I set the Windows properties to independent views. Then I wrote some code in order to get a valid HDC for the secondary monitor. I'd like to share the written code to you, provided that you consider it freeware for non commercial use. If you want to use it in your commercial projects, please, drop me a line, and we'll find an agreement.

This code (written in C) has been compiled with Borland C++ Builder 4 compiler, but it can be used in Visual C products too (even if not tested), and used without additional DLLs, because all the needed libraries were statically linked. Only the lib file is Borland specific. I'd like to have time to write an example. To download the .lib, .dll and .h file, click here.

 

© Copyright (2000), Luigi Bianchi
Last Update: February 22, 2001