Redian新闻
>
how to write some C/C++ program to enable dual monitor?
avatar
how to write some C/C++ program to enable dual monitor?# Programming - 葵花宝典
S*r
1
Your suggestion is needed:
My software being developed needs to display images to the second monitor (
DVI). How to use C/C++ to enable the second monitor or directly display
images onto it even though the dual monitor has not been set up? we are not
allowed to manually enable the second monitor.
Thank you.
avatar
t*t
2
it has nothing to do with C/C++. C/C++ does not even require you to have a
monitor.

not

【在 S*********r 的大作中提到】
: Your suggestion is needed:
: My software being developed needs to display images to the second monitor (
: DVI). How to use C/C++ to enable the second monitor or directly display
: images onto it even though the dual monitor has not been set up? we are not
: allowed to manually enable the second monitor.
: Thank you.

avatar
s*y
3
Is it possible for you to do it through calling some Win32 API?

not

【在 S*********r 的大作中提到】
: Your suggestion is needed:
: My software being developed needs to display images to the second monitor (
: DVI). How to use C/C++ to enable the second monitor or directly display
: images onto it even though the dual monitor has not been set up? we are not
: allowed to manually enable the second monitor.
: Thank you.

avatar
S*r
4
I understand that it is supposed to have nothing related to C++/C. My
question is how I can write some code to enable the second monitor if it is
not enabled yet.

【在 t****t 的大作中提到】
: it has nothing to do with C/C++. C/C++ does not even require you to have a
: monitor.
:
: not

avatar
S*r
5
This is exactly what I am looking for.

【在 s*****y 的大作中提到】
: Is it possible for you to do it through calling some Win32 API?
:
: not

avatar
s*y
6
I think you need to get the interupt handerler of the second monitor.

【在 S*********r 的大作中提到】
: This is exactly what I am looking for.
avatar
t*t
7
since you understand that, why don't you provide more detail? it's OS's
business to handle these things. at least you need to tell us what's the OS,
and what's the platform!

is

【在 S*********r 的大作中提到】
: I understand that it is supposed to have nothing related to C++/C. My
: question is how I can write some code to enable the second monitor if it is
: not enabled yet.

avatar
S*r
8
I use CDialog in Visual Studio on XP as follows. It checks the number of
monitors and specify the display window size. I need someone to give me some insights about how to do the following:
1. A quick fix would be to enable the 2nd monitor if it is not enabled.
2. I would like to get rid of the stupid CDialog and replace it with
directly displaying images by sending images to the video port.
Note: if the 2nd monitor is disabled, GetSystemMetrics(SM_CMONITORS) return 1.
BOOL CMyWin::OnInitDialog(

【在 t****t 的大作中提到】
: since you understand that, why don't you provide more detail? it's OS's
: business to handle these things. at least you need to tell us what's the OS,
: and what's the platform!
:
: is

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。