Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

: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

Posted

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...

"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

Posted
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.

"Programmers are tools for converting caffeine into code."

 

Madcow Inventions -- Software for the Sanity Challenged.

  • 2 weeks later...
Posted

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.

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...