PC Review


Reply
Thread Tools Rate Thread

DirectX Question

 
 
Pete Kane
Guest
Posts: n/a
 
      6th May 2009
Hi All, I'm just dipping my toes in DirectX waters and have managed to
create a Winform that will play audio/video files - BUT !!!! when I try
to run the app on a different PC , I receive a pretty useless error
message "Error in application" when trying to play a video - digging a
bit deeper I find the error is related to not having the DirectX runtime
installed , I've tried copying the DirectX dlls to the apps folder but
to no avail - any ideas ? Before I get flamed for misposting I looked on
some DirectX newsgroups and they looked very spartan in terms of posts
 
Reply With Quote
 
 
 
 
Pete Kane
Guest
Posts: n/a
 
      7th May 2009
Peter Duniho wrote:
> On Wed, 06 May 2009 02:47:44 -0700, Pete Kane <(E-Mail Removed)> wrote:
>
>> Hi All, I'm just dipping my toes in DirectX waters and have managed to
>> create a Winform that will play audio/video files - BUT !!!! when I
>> try to run the app on a different PC , I receive a pretty useless
>> error message "Error in application" when trying to play a video -
>> digging a bit deeper I find the error is related to not having the
>> DirectX runtime installed , I've tried copying the DirectX dlls to the
>> apps folder but to no avail - any ideas ? Before I get flamed for
>> misposting I looked on some DirectX newsgroups and they looked very
>> spartan in terms of posts

>
> I'm practically certain that for DirectX, you're going to need to
> actually _install_ it. There are lots of things that need to be set up
> besides simply having the DLLs in the loader's search path.
>
> That said, I'm a bit surprised you're running .NET on a computer that
> doesn't also have DirectX. DirectX is standard on any recent version of
> Windows (DX 9 was included in Windows XP SP2...I don't remember the
> exact relationship before that, but that goes back quite a ways as it is
> ).
>
> Pete

Thanks for your time Pete, the computer I'm running the app on has XP
Pro SP2
 
Reply With Quote
 
not_a_commie
Guest
Posts: n/a
 
      7th May 2009
If you install DirectX without installing the .Net framework first,
the DX installer doesn't copy the necessary managed DLLs to the GAC.
You have to install DX after you install the .Net Framework.

Having said that, don't use Managed DirectX (MDX) anyway. Use SlimDX
instead. You'll just pass their assemblies with your application in
that case. It works better. It's modern and maintained.
 
Reply With Quote
 
Peter Kane
Guest
Posts: n/a
 
      10th May 2009
RobinDotNet wrote:
> "Peter Duniho" <(E-Mail Removed)> wrote in message
> news(E-Mail Removed)...
>> On Wed, 06 May 2009 02:47:44 -0700, Pete Kane <(E-Mail Removed)> wrote:
>>
>>> Hi All, I'm just dipping my toes in DirectX waters and have managed
>>> to create a Winform that will play audio/video files - BUT !!!! when
>>> I try to run the app on a different PC , I receive a pretty useless
>>> error message "Error in application" when trying to play a video -
>>> digging a bit deeper I find the error is related to not having the
>>> DirectX runtime installed , I've tried copying the DirectX dlls to
>>> the apps folder but to no avail - any ideas ? Before I get flamed for
>>> misposting I looked on some DirectX newsgroups and they looked very
>>> spartan in terms of posts

>>
>> I'm practically certain that for DirectX, you're going to need to
>> actually _install_ it. There are lots of things that need to be set
>> up besides simply having the DLLs in the loader's search path.
>>
>> That said, I'm a bit surprised you're running .NET on a computer that
>> doesn't also have DirectX. DirectX is standard on any recent version
>> of Windows (DX 9 was included in Windows XP SP2...I don't remember the
>> exact relationship before that, but that goes back quite a ways as it
>> is ).
>>
>> Pete

>
> Actually, I don't think you HAVE to install all of DirectX in order to
> use it. I deploy DirectX dll's locally with my company's application and
> it works fine; we using the sound capabilities though.
>
> Do you have "copy local = true" on the references so that they are
> included in the output when you do a build? If you do that, then go to
> the folder where the exe file is and double-click on it, does it run?
> Are the dll's there?
>
> RobinDotNet

I'll check when I'm back at the office - thanks
 
Reply With Quote
 
Peter Kane
Guest
Posts: n/a
 
      10th May 2009
RobinDotNet wrote:
> "Peter Duniho" <(E-Mail Removed)> wrote in message
> news(E-Mail Removed)...
>> On Wed, 06 May 2009 02:47:44 -0700, Pete Kane <(E-Mail Removed)> wrote:
>>
>>> Hi All, I'm just dipping my toes in DirectX waters and have managed
>>> to create a Winform that will play audio/video files - BUT !!!! when
>>> I try to run the app on a different PC , I receive a pretty useless
>>> error message "Error in application" when trying to play a video -
>>> digging a bit deeper I find the error is related to not having the
>>> DirectX runtime installed , I've tried copying the DirectX dlls to
>>> the apps folder but to no avail - any ideas ? Before I get flamed for
>>> misposting I looked on some DirectX newsgroups and they looked very
>>> spartan in terms of posts

>>
>> I'm practically certain that for DirectX, you're going to need to
>> actually _install_ it. There are lots of things that need to be set
>> up besides simply having the DLLs in the loader's search path.
>>
>> That said, I'm a bit surprised you're running .NET on a computer that
>> doesn't also have DirectX. DirectX is standard on any recent version
>> of Windows (DX 9 was included in Windows XP SP2...I don't remember the
>> exact relationship before that, but that goes back quite a ways as it
>> is ).
>>
>> Pete

>
> Actually, I don't think you HAVE to install all of DirectX in order to
> use it. I deploy DirectX dll's locally with my company's application and
> it works fine; we using the sound capabilities though.
>
> Do you have "copy local = true" on the references so that they are
> included in the output when you do a build? If you do that, then go to
> the folder where the exe file is and double-click on it, does it run?
> Are the dll's there?
>
> RobinDotNet

I'll check when I'm back at the office - thanks
 
Reply With Quote
 
Peter Kane
Guest
Posts: n/a
 
      10th May 2009
not_a_commie wrote:
> If you install DirectX without installing the .Net framework first,
> the DX installer doesn't copy the necessary managed DLLs to the GAC.
> You have to install DX after you install the .Net Framework.
>
> Having said that, don't use Managed DirectX (MDX) anyway. Use SlimDX
> instead. You'll just pass their assemblies with your application in
> that case. It works better. It's modern and maintained.

Tnaks I'll check it out
 
Reply With Quote
 
Peter Kane
Guest
Posts: n/a
 
      10th May 2009
not_a_commie wrote:
> If you install DirectX without installing the .Net framework first,
> the DX installer doesn't copy the necessary managed DLLs to the GAC.
> You have to install DX after you install the .Net Framework.
>
> Having said that, don't use Managed DirectX (MDX) anyway. Use SlimDX
> instead. You'll just pass their assemblies with your application in
> that case. It works better. It's modern and maintained.

Tnaks I'll check it out
 
Reply With Quote
 
Peter Kane
Guest
Posts: n/a
 
      10th May 2009
Peter Duniho wrote:
> On Fri, 08 May 2009 17:59:48 -0700, RobinDotNet <(E-Mail Removed)>
> wrote:
>
>> Actually, I don't think you HAVE to install all of DirectX in order to
>> use it. I deploy DirectX dll's locally with my company's application
>> and it works fine; we using the sound capabilities though.

>
> I suppose it depends on what features you're using.
>
> If you don't need anything that involves a driver and/or is all
> user-mode stuff, I suppose an in-directory copy might be fine.
>
> Doesn't sound like a config I'd want to support though. Too much
> potential for weird things on a system where the DirectX stuff starts
> getting mixed-and-matched. Talk about "DLL Hell".
>
> Besides, are you sure that simply copying to your own install directory
> is compatible with Microsoft's redistribution license?
>
> Pete

I'll check - thanks Peter
 
Reply With Quote
 
Peter Kane
Guest
Posts: n/a
 
      10th May 2009
Peter Duniho wrote:
> On Fri, 08 May 2009 17:59:48 -0700, RobinDotNet <(E-Mail Removed)>
> wrote:
>
>> Actually, I don't think you HAVE to install all of DirectX in order to
>> use it. I deploy DirectX dll's locally with my company's application
>> and it works fine; we using the sound capabilities though.

>
> I suppose it depends on what features you're using.
>
> If you don't need anything that involves a driver and/or is all
> user-mode stuff, I suppose an in-directory copy might be fine.
>
> Doesn't sound like a config I'd want to support though. Too much
> potential for weird things on a system where the DirectX stuff starts
> getting mixed-and-matched. Talk about "DLL Hell".
>
> Besides, are you sure that simply copying to your own install directory
> is compatible with Microsoft's redistribution license?
>
> Pete

I'll check - thanks Peter
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question on DirectX Don Smith Windows XP New Users 5 8th Apr 2007 04:48 PM
Question - Is DirectX 8.1 H/W + DirectX 9.0 S/W enough? =?Utf-8?B?UGV0ZQ==?= Windows Vista Hardware 2 24th Jun 2006 06:58 PM
DirectX 1, I have a question. Jomike Windows XP General 4 26th Aug 2004 10:11 AM
Question about DirectX and WMP Dustin Windows XP Games 7 28th Feb 2004 03:28 AM
DirectX question: how resolve: using Microsoft.DirectX; dave Microsoft C# .NET 1 10th Oct 2003 06:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:26 PM.