gallicox Posted March 24, 2004 Posted March 24, 2004 :mad: Hi! I developed a C# User Control that uses OpenGL graphic libraries. It simply shows some objects moving in a 3d space ... I tried to use Windows XP Remote Assistance and while I clearly see everything (Desktop,Taskbars, ...) I only see a black rectangle where I should see my application running. Does anybody know what I did wrong ?? Should I distribute some DLL files with my applications ?? Thanks in advance Max Quote
DR00ME Posted March 24, 2004 Posted March 24, 2004 well I think it got something to do with how Remote Assistance works...e.g. you cant see some 3D accelerated objects with such programs as RA.... If RA takes screenshots (compress them and send to destination where it uncompress the picture), then the problem occurs.... e.g. if you take screenshot of media player you see blank or something else than what the player is showing....also when I take screenshot of my TV-card screen I see black picture....I would be also interested why this happens... P.S. this happens with some games too... Quote "Everything should be made as simple as possible, but not simpler." "It's not that I'm so smart , it's just that I stay with problems longer ." - Albert Einstein
mooman_fl Posted March 24, 2004 Posted March 24, 2004 The reason as far as I understand it is because Media Player (which uses Direct X) and Open GL both write to video memory not the normal pipeline. When you take a screenshot you are take a shot of the normal pipeline (sorry if my technical terms are wrong) with a placeholder that the video card will then insert the extra information to on its way to the monitor. Quote "Programmers are tools for converting caffeine into code." Madcow Inventions -- Software for the Sanity Challenged.
gallicox Posted April 6, 2004 Author Posted April 6, 2004 I think to have found the solution (... now it works). In my UserControl I just added public class WSEX { ..... public const int _COMPOSITED = 0x02000000; }; protected override CreateParams CreateParams { get { CreateParams createParams = base.CreateParams; createParams.ExStyle |= WSEX._COMPOSITED; return createParams; } } :) Thanks to those who helped me. Quote
gallicox Posted April 14, 2004 Author Posted April 14, 2004 Oops... It's not completely true! On some machines it make the application crash! I installed the last video card drivers, but ... it crashes! Does anybody know why ? :o Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.