473,387 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

DirectX rendered inside a control?

PJ6
I'm asking this question here because the support in the DirectX forums is
virtually non-existant. If anyone can suggest where else I can post this
with better results, please let me know...

DirectX uses a completely different paradigm than what I'm used to painting
forms normally with GDI+. From what I can tell, you cannot have a "DirectX
control", but rather you have to pass a handle to an entire form, and then
the rendering is done on the form itself. My first tries have lead me to
beileve that I just can't incoprorate hardware-accelerated rendering into an
application with other windows controls, especially not if I want the render
area to be contained in a panel or other control. If this is true DirectX
would seem to be a completely unworkable tool to use in standard WinForms
applications.

Anyone want to share their own points of view, experiences using DirectX in
non-gaming applications?

TIA,
Paul

P.S. I'm using the version 10 SDK
Aug 24 '06 #1
5 1473

"PJ6" <no***@nowhere.netkirjoitti
viestissä:uo****************@TK2MSFTNGP05.phx.gbl. ..

<snip>
DirectX uses a completely different paradigm than what I'm used to
painting forms normally with GDI+. From what I can tell, you cannot have a
"DirectX control", but rather you have to pass a handle to an entire form,
and then the rendering is done on the form itself. My first tries have
lead me to beileve that I just can't incoprorate hardware-accelerated
rendering into an application with other windows controls, especially not
if I want the render area to be contained in a panel or other control.
You can render to panel etc. just fine with DirectX. When you create Device
just pass it a control you wanna render into.

<snip>
Aug 24 '06 #2
PJ6
"cSharpLess" <no@mails.invalidwrote in message
news:Oa**************@TK2MSFTNGP06.phx.gbl...
You can render to panel etc. just fine with DirectX. When you create
Device just pass it a control you wanna render into.

<snip>
I get a very unhelpful error message when I try that (as opposed to just
passing the form handle).

If you're feeling generous, please post a simple class inheriting from
Control that renders something using DirectX 10.

Thanks,
Paul
Aug 25 '06 #3
AFAIK DX10 is not usable from Managed Code yet ? Or do I miss something ?

IMO it's generally better to mention the exact error message you have (the
debug runtime can also be helpfull) and that you provide the simplest
possible code that repro the error if needed.

A sample won't do exactly what you want and could not include som other
point that causes the problem...

You can try microsoft.public.win32.programmer.directx.managed if you don"t
have tried it already....

--
Patrice

"PJ6" <no***@nowhere.coma écrit dans le message de news:
uB**************@TK2MSFTNGP06.phx.gbl...
"cSharpLess" <no@mails.invalidwrote in message
news:Oa**************@TK2MSFTNGP06.phx.gbl...
>You can render to panel etc. just fine with DirectX. When you create
Device just pass it a control you wanna render into.

<snip>

I get a very unhelpful error message when I try that (as opposed to just
passing the form handle).

If you're feeling generous, please post a simple class inheriting from
Control that renders something using DirectX 10.

Thanks,
Paul

Aug 25 '06 #4

"PJ6" <no***@nowhere.comkirjoitti
viestissä:uB**************@TK2MSFTNGP06.phx.gbl...

<snip>
If you're feeling generous, please post a simple class inheriting from
Control that renders something using DirectX 10.
Ahhh, I missed that DX10 part :)
Aug 25 '06 #5
PJ6
Ahh now we're getting somewhere. I thought something was wrong when I
blue-screened myself. Well, after I had a good laugh.

I'll back up, uninstall 10 and go with 9.

Good NG suggestion, too.

Thank you!
Paul

"Patrice" <sc****@chez.comwrote in message
news:el**************@TK2MSFTNGP05.phx.gbl...
AFAIK DX10 is not usable from Managed Code yet ? Or do I miss something ?

IMO it's generally better to mention the exact error message you have (the
debug runtime can also be helpfull) and that you provide the simplest
possible code that repro the error if needed.

A sample won't do exactly what you want and could not include som other
point that causes the problem...

You can try microsoft.public.win32.programmer.directx.managed if you don"t
have tried it already....

--
Patrice

Aug 25 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: JT | last post by:
Hi, Is there an example available online of a C# direct3d application being loaded inside a web page? I just read up a bit about web forms, and that doesn't seem like the way to do it... ...
1
by: Robert Ludewig | last post by:
Hello, I recently started to develop my own little high level, easy to use 3D API on top of managed directx for .net. The idea behind it is having a generic API that lets me create (simpler)...
2
by: Leeor Chernov | last post by:
Hi I am using a <asp:Table> in a user control I created and in the loop of inserting another user control( a custom Calendar) to the TableCell by the code:...
1
by: SlimFlem | last post by:
I hope this makes sense. Here is what I am attempting. I have an inital generic aspx page that has one custom tag: <web:site id=webSite runat=server/> When this control evaluates, it will...
3
by: John Hann | last post by:
Hi, A friend of mine is in the process of building a 3d game engine using native DirectX in C++. I would like to contribute to the development of an editor for this engine, but I would prefer to...
14
by: Jessica Weiner | last post by:
I am writing an application in C# which need to plot graphs and simple shapes (polygons, circles, squares etc). Which library is better for this purpose and why? Thanks.
4
by: Daniel | last post by:
Hey guys Anyone know if it is possible to add a button at design time and place it over the top of a directx window? For example checkboxes, standard buttons, menus etc? If so how?
0
by: =?Utf-8?B?bWlrZQ==?= | last post by:
Hi, I am using ASP.NET 2.0. I have a gridview with only one column and it is a Template comuln. Column template contains several different controls some Web Controls some plain HTML controls....
2
by: Z.K. | last post by:
I was wondering if someone could tell me why I get this message and how to prevent it. If I hit continue, it runs fine, but want to know what I am doing wrong so I won't get this error in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.