Click here to Skip to main content
15,894,907 members
Home / Discussions / C#
   

C#

 
GeneralRe: Handle MS IIS Pin
Dave Kreskowiak23-Nov-04 0:49
mveDave Kreskowiak23-Nov-04 0:49 
GeneralRe: Handle MS IIS Pin
pmasknguyen23-Nov-04 16:16
pmasknguyen23-Nov-04 16:16 
GeneralRe: Handle MS IIS Pin
Dave Kreskowiak24-Nov-04 1:22
mveDave Kreskowiak24-Nov-04 1:22 
GeneralRe: Handle MS IIS Pin
pmasknguyen24-Nov-04 3:16
pmasknguyen24-Nov-04 3:16 
GeneralRe: Handle MS IIS Pin
Dave Kreskowiak24-Nov-04 10:16
mveDave Kreskowiak24-Nov-04 10:16 
GeneralMPEG2 stream on IPAQ PDA Pin
kenes22-Nov-04 13:20
kenes22-Nov-04 13:20 
GeneralImplementing Permissions Over Remoting Pin
Paebbels22-Nov-04 11:26
Paebbels22-Nov-04 11:26 
GeneralDirectX with MDI Pin
Rob Tomson22-Nov-04 10:15
Rob Tomson22-Nov-04 10:15 
i'm trying to get a directx form to display as a child form in an mdi. i can't get it to run however. my reasoning behind this is so that i can have a configuration form and a directx windows up at the same time. then when i adjust the vales in the config window it updates the cooresponding values for the directx scene. i just can't get the directx form to keep rendering itself. here's some snippets, i hope you can help me.

when the MDI form loads...
	RJSS.frmMain frm1 = new RJSS.frmMain();<br />
	frm1.MdiParent = this;<br />
	frm1.Show();<br />
<br />
	RJSS.frmDD frm2 = new RJSS.frmDD();<br />
	frm2.MdiParent = this;<br />
	frm2.Show();<br />


declarations in the directx form...
private DD.Device ddDevice;<br />
private O2.SpriteManager sm;<br />
private Open.HighResolutionTimer hrt;<br />


when the directx form loads...
	DD.PresentParameters pres = new DD.PresentParameters();<br />
	pres.Windowed = true; <br />
	pres.SwapEffect = DD.SwapEffect.Discard;<br />
<br />
	this.ddDevice = new DD.Device(0, DD.DeviceType.Hardware, this, DD.CreateFlags.SoftwareVertexProcessing, pres);<br />
<br />
	this.hrt = new Open.HighResolutionTimer();<br />
	this.sm = new O2.SpriteManager();<br />


this is what won't process. if i try to call this function the program just crashes out stating An unhandled exception of type 'System.NullReferenceException' occurred in system.windows.forms.dll
	protected void Render()<br />
	{<br />
		this.sm.Update(this.hrt.ElapsedTime);<br />
<br />
		this.ddDevice.Clear(DD.ClearFlags.Target, Color.Black, 1.0f, 0);<br />
		this.ddDevice.BeginScene();<br />
<br />
		this.sm.Draw(this.ddDevice);<br />
<br />
		this.ddDevice.EndScene();<br />
		this.ddDevice.Present();<br />
	}<br />


any help is greatly appreciated.
thanks,
Rob Tomson

--
There are 10 kinds of people. Those who understand binary and those who don't.

GeneralData grid question Pin
MikeDeming22-Nov-04 8:43
MikeDeming22-Nov-04 8:43 
GeneralRe: Data grid question Pin
Nick Parker22-Nov-04 9:48
protectorNick Parker22-Nov-04 9:48 
GeneralRe: Data grid question Pin
MikeDeming24-Nov-04 19:45
MikeDeming24-Nov-04 19:45 
Questionhow to fire button_click event Pin
IvyLee22-Nov-04 7:43
IvyLee22-Nov-04 7:43 
AnswerRe: how to fire button_click event Pin
BlackDice22-Nov-04 8:14
BlackDice22-Nov-04 8:14 
AnswerRe: how to fire button_click event Pin
Charlie Williams22-Nov-04 8:19
Charlie Williams22-Nov-04 8:19 
AnswerRe: how to fire button_click event Pin
BlackDice22-Nov-04 8:22
BlackDice22-Nov-04 8:22 
AnswerRe: how to fire button_click event Pin
mav.northwind22-Nov-04 22:17
mav.northwind22-Nov-04 22:17 
Generalmedia player Pin
mallina22-Nov-04 7:00
mallina22-Nov-04 7:00 
GeneralRe: media player Pin
mhmoud rawas23-Nov-04 2:22
mhmoud rawas23-Nov-04 2:22 
GeneralRe: media player Pin
mallina23-Nov-04 4:27
mallina23-Nov-04 4:27 
QuestionCheck if Japenese Characters are Single/Double Byte values and convert? Pin
satvinder123456722-Nov-04 6:21
satvinder123456722-Nov-04 6:21 
AnswerRe: Check if Japenese Characters are Single/Double Byte values and convert? Pin
Daniel Turini22-Nov-04 6:32
Daniel Turini22-Nov-04 6:32 
AnswerRe: Check if Japenese Characters are Single/Double Byte values and convert? Pin
Jay Shankar22-Nov-04 14:27
Jay Shankar22-Nov-04 14:27 
GeneralRe: Check if Japenese Characters are Single/Double Byte values and convert? Pin
satvinder123456722-Nov-04 22:06
satvinder123456722-Nov-04 22:06 
GeneralCrystal Reports Runtime Pin
Lash2022-Nov-04 5:09
Lash2022-Nov-04 5:09 
GeneralRe: Crystal Reports Runtime Pin
BlackDice22-Nov-04 5:21
BlackDice22-Nov-04 5:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.