Jump to content
  • Advertisement
Sign in to follow this  
TheMightyDude

Displaying windows/opengl on other Monitor (Multi Monitor)

This topic is 4844 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello All I have 2 identical LCD Monitors, and I was thinking about having my Primary Monitor as the main ouput, and my Secondry Monitor as a Debug window, ie (Win32 or a Console Window). This would save on having to display this information on an OpenGL screen. I was wondering if anyone has gotten the MSDN example code working? Because I cant get the EnumDisplayMonitors() function working :( : error C2065: 'EnumDisplayMonitors' : undeclared identifier I have the following includes... #include <windows.h> #include <winuser.h> #include <wingdi.h> #include <stdio.h> #include <conio.h> #include <direct.h> #include <tchar.h> as well as the default OpenGL includes. Using the following example in my existing code: // To get information about all the display monitors, // you can use code like the following: EnumDisplayMonitors(NULL, NULL, MyInfoEnumProc, 0); I have also setup my MyInfoEnumProc CALLBACK function which seems fine. It maybe down to the type of project that I am using, or maybe down to an include that I am missing. I would be greatful for any help. Thanks in advance Paul

Share this post


Link to post
Share on other sites
Advertisement
I had the same problem, it turned out to be the fact that i used vc++ 6.0 and EnumDisplayMonitors wasn't included in the windows API before then.
GG Microsoft.

Anyway, if your stretching the desktop over the two monitors it's possible just to move the debug window to that place without having to use EnumDisplayMonitors.
You only have to use that when you need to move the fullscreen window to the other screen.


Share this post


Link to post
Share on other sites
Quote:
Original post by lc_overlord
I had the same problem, it turned out to be the fact that i used vc++ 6.0 and EnumDisplayMonitors wasn't included in the windows API before then.
GG Microsoft.

Anyway, if your stretching the desktop over the two monitors it's possible just to move the debug window to that place without having to use EnumDisplayMonitors.
You only have to use that when you need to move the fullscreen window to the other screen.


Thanks for the reply...

Yes, I am using VS6, would Visual Studio .NET Professional 2003 Special Edition help at all?
I have that, but I haven’t gotten around to installing it yet :(

Here is what I am trying to do:
I am using the two monitors as separate displays (i.e. Monitor 1 and Monitor 2)
And Monitor 1 = Primary Display and Monitor 2 = Secondary Display.

And i wanted my game to use the Primary/Monitor 1 and for my Debug window to use the Secondary/Monitor 2.

Note: the Debug Window is only a temp feature, while I develop my game.

That way I can see what my code is doing as its doing it :)
This will also cut back on me code: P

Thanks in advance.
Paul

Share this post


Link to post
Share on other sites
Yes, Visual Studio .NET Professional 2003 Special Edition would help with this problem.

And eventhough the debug window is a temporary thing, it would be cool thing to have dual monitor support in games.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!