why i can not run the program which need directx 9.0c,while xpe al

Posted: 02-25-2008, 03:27 AM
why i can not run the program while need directx 9.0c,while xpe alread has it?



Hi,there,

I created a XPE image run on the windows based terminals
On Via board.. since my application program need directx 9.0c, I included
The component in the image.

How ever after the image FBA, when I run the program, it prompt errors

The program core code list here:


HRESULT rhr = m_pD3D->CreateDevice( D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL,
m_hWnd,
D3DCREATE_SOFTWARE_VERTEXPROCESSING,
&d3dpp, &m_pd3dDevice );

if( FAILED( rhr ) )
{
AfxMessageBox(_T("Can not create 3D device."), MB_OK, 0);

if(rhr==D3DERR_DEVICELOST)
AfxMessageBox(_T("D3DERR_DEVICELOST."), MB_OK, 0);
else if(rhr == D3DERR_INVALIDCALL)
AfxMessageBox(_T("D3DERR_INVALIDCALL."), MB_OK, 0);
else if(rhr == D3DERR_NOTAVAILABLE)
AfxMessageBox(_T("D3DERR_NOTAVAILABLE."), MB_OK, 0);
else if(rhr == D3DERR_OUTOFVIDEOMEMORY)
AfxMessageBox(_T("D3DERR_OUTOFVIDEOMEMORY."), MB_OK, 0);

return E_FAIL;
}


The program prompt out “D3DERR_NOTAVAILABLE”. and exit.

This is a MFC based program..

But I tried to compiled another MFC based program, don't used directx 9.0c
It runs fine. (althought I have to staticly linked the library. Can I
dynamically do so?
How can I deal the XPE to get that?)

So the problems must be in directx 9.0c, which I am sure I included before
compile the xpe image
..i also tried to install the DirectX runtime after FBA, the application
still get error like above..

I use xp embedded sp2 plus xp embedded feature 2007, which including a
directx 9.0c component.

I have to say, in a windows xp platform (not embedded), the program runs
just fine., so I don’t think my application program has any problem for that…
why on the xpe, it can not run?

How to solve this problem? Thank you for your advice..

Really thanks…

Winston.


Reply With Quote

Responses to "why i can not run the program which need directx 9.0c,while xpe al"

winston
Guest
Posts: n/a
 
RE: why i can not run the program which need directx 9.0c,while xpe al
Posted: 02-25-2008, 04:00 AM

I should add i use VIA EPIA-PD matherboard..and install the hardware
component driver from their website.

"winston" wrote:
> why i can not run the program while need directx 9.0c,while xpe alread has it?
>
>
>
> Hi,there,
>
> I created a XPE image run on the windows based terminals
> On Via board.. since my application program need directx 9.0c, I included
> The component in the image.
>
> How ever after the image FBA, when I run the program, it prompt errors
>
> The program core code list here:
>
>
> HRESULT rhr = m_pD3D->CreateDevice( D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL,
> m_hWnd,
> D3DCREATE_SOFTWARE_VERTEXPROCESSING,
> &d3dpp, &m_pd3dDevice );
>
> if( FAILED( rhr ) )
> {
> AfxMessageBox(_T("Can not create 3D device."), MB_OK, 0);
>
> if(rhr==D3DERR_DEVICELOST)
> AfxMessageBox(_T("D3DERR_DEVICELOST."), MB_OK, 0);
> else if(rhr == D3DERR_INVALIDCALL)
> AfxMessageBox(_T("D3DERR_INVALIDCALL."), MB_OK, 0);
> else if(rhr == D3DERR_NOTAVAILABLE)
> AfxMessageBox(_T("D3DERR_NOTAVAILABLE."), MB_OK, 0);
> else if(rhr == D3DERR_OUTOFVIDEOMEMORY)
> AfxMessageBox(_T("D3DERR_OUTOFVIDEOMEMORY."), MB_OK, 0);
>
> return E_FAIL;
> }
>
>
> The program prompt out “D3DERR_NOTAVAILABLE”. and exit.
>
> This is a MFC based program..
>
> But I tried to compiled another MFC based program, don't used directx 9.0c
> It runs fine. (althought I have to staticly linked the library. Can I
> dynamically do so?
> How can I deal the XPE to get that?)
>
> So the problems must be in directx 9.0c, which I am sure I included before
> compile the xpe image
> .i also tried to install the DirectX runtime after FBA, the application
> still get error like above..
>
> I use xp embedded sp2 plus xp embedded feature 2007, which including a
> directx 9.0c component.
>
> I have to say, in a windows xp platform (not embedded), the program runs
> just fine., so I don’t think my application program has any problem for that…
> why on the xpe, it can not run?
>
> How to solve this problem? Thank you for your advice..
>
> Really thanks…
>
> Winston.
>
>
Reply With Quote
Sean Liming \(MVP\)
Guest
Posts: n/a
 
Re: why i can not run the program which need directx 9.0c,while xpe al
Posted: 02-25-2008, 05:52 AM

The application might need more than just DirectX 9.0c. Did you run
DependencyWalker (www.dependencywalker.com) to investigate what other DLLs
are required to run the application?

--
Regards,

Sean Liming
www.sjjmicro.com / www.seanliming.com
Book Author - XP Embedded Advanced, XP Embedded Supplemental Toolkit


"winston" <winston@discussions.microsoft.com> wrote in message
news:F6817D66-905F-4DA8-BCAA-799C64E7580C@microsoft.com...
>
> I should add i use VIA EPIA-PD matherboard..and install the hardware
> component driver from their website.
>
> "winston" wrote:
>
>> why i can not run the program while need directx 9.0c,while xpe alread
>> has it?
>>
>>
>>
>> Hi,there,
>>
>> I created a XPE image run on the windows based terminals
>> On Via board.. since my application program need directx 9.0c, I included
>> The component in the image.
>>
>> How ever after the image FBA, when I run the program, it prompt errors
>>
>> The program core code list here:
>>
>>
>> HRESULT rhr = m_pD3D->CreateDevice( D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL,
>> m_hWnd,
>> D3DCREATE_SOFTWARE_VERTEXPROCESSING,
>> &d3dpp, &m_pd3dDevice );
>>
>> if( FAILED( rhr ) )
>> {
>> AfxMessageBox(_T("Can not create 3D device."), MB_OK, 0);
>>
>> if(rhr==D3DERR_DEVICELOST)
>> AfxMessageBox(_T("D3DERR_DEVICELOST."), MB_OK, 0);
>> else if(rhr == D3DERR_INVALIDCALL)
>> AfxMessageBox(_T("D3DERR_INVALIDCALL."), MB_OK, 0);
>> else if(rhr == D3DERR_NOTAVAILABLE)
>> AfxMessageBox(_T("D3DERR_NOTAVAILABLE."), MB_OK, 0);
>> else if(rhr == D3DERR_OUTOFVIDEOMEMORY)
>> AfxMessageBox(_T("D3DERR_OUTOFVIDEOMEMORY."), MB_OK, 0);
>>
>> return E_FAIL;
>> }
>>
>>
>> The program prompt out “D3DERR_NOTAVAILABLE”. and exit.
>>
>> This is a MFC based program..
>>
>> But I tried to compiled another MFC based program, don't used directx
>> 9.0c
>> It runs fine. (althought I have to staticly linked the library. Can I
>> dynamically do so?
>> How can I deal the XPE to get that?)
>>
>> So the problems must be in directx 9.0c, which I am sure I included
>> before
>> compile the xpe image
>> .i also tried to install the DirectX runtime after FBA, the application
>> still get error like above..
>>
>> I use xp embedded sp2 plus xp embedded feature 2007, which including a
>> directx 9.0c component.
>>
>> I have to say, in a windows xp platform (not embedded), the program runs
>> just fine., so I don’t think my application program has any problem for
>> that…
>> why on the xpe, it can not run?
>>
>> How to solve this problem? Thank you for your advice..
>>
>> Really thanks…
>>
>> Winston.
>>
>>
Reply With Quote
winston
Guest
Posts: n/a
 
Re: why i can not run the program which need directx 9.0c,while xp
Posted: 02-25-2008, 07:30 AM
Thank you for your response.

i did checked with dependcywalker, but i don't know how to get useful
information, because it show so many DLL it rely on. should i check every dll
to see if my xpe image contains it? must be some other way..

also, my program runs fine on windows xp,
on xp ebedded, my other program (all based on MFC) also fine..

i check the program, the information it prints out, it the D3d createdevice.
since it's the d3d createdevice failed. i assume it's directx component not
correct.
am i right to think it this way?

thank you.

"Sean Liming (MVP)" wrote:
>
> The application might need more than just DirectX 9.0c. Did you run
> DependencyWalker (www.dependencywalker.com) to investigate what other DLLs
> are required to run the application?
>
> --
> Regards,
>
> Sean Liming
> www.sjjmicro.com / www.seanliming.com
> Book Author - XP Embedded Advanced, XP Embedded Supplemental Toolkit
>
>
> "winston" <winston@discussions.microsoft.com> wrote in message
> news:F6817D66-905F-4DA8-BCAA-799C64E7580C@microsoft.com...
> >
> > I should add i use VIA EPIA-PD matherboard..and install the hardware
> > component driver from their website.
> >
> > "winston" wrote:
> >
> >> why i can not run the program while need directx 9.0c,while xpe alread
> >> has it?
> >>
> >>
> >>
> >> Hi,there,
> >>
> >> I created a XPE image run on the windows based terminals
> >> On Via board.. since my application program need directx 9.0c, I included
> >> The component in the image.
> >>
> >> How ever after the image FBA, when I run the program, it prompt errors
> >>
> >> The program core code list here:
> >>
> >>
> >> HRESULT rhr = m_pD3D->CreateDevice( D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL,
> >> m_hWnd,
> >> D3DCREATE_SOFTWARE_VERTEXPROCESSING,
> >> &d3dpp, &m_pd3dDevice );
> >>
> >> if( FAILED( rhr ) )
> >> {
> >> AfxMessageBox(_T("Can not create 3D device."), MB_OK, 0);
> >>
> >> if(rhr==D3DERR_DEVICELOST)
> >> AfxMessageBox(_T("D3DERR_DEVICELOST."), MB_OK, 0);
> >> else if(rhr == D3DERR_INVALIDCALL)
> >> AfxMessageBox(_T("D3DERR_INVALIDCALL."), MB_OK, 0);
> >> else if(rhr == D3DERR_NOTAVAILABLE)
> >> AfxMessageBox(_T("D3DERR_NOTAVAILABLE."), MB_OK, 0);
> >> else if(rhr == D3DERR_OUTOFVIDEOMEMORY)
> >> AfxMessageBox(_T("D3DERR_OUTOFVIDEOMEMORY."), MB_OK, 0);
> >>
> >> return E_FAIL;
> >> }
> >>
> >>
> >> The program prompt out “D3DERR_NOTAVAILABLE”. and exit.
> >>
> >> This is a MFC based program..
> >>
> >> But I tried to compiled another MFC based program, don't used directx
> >> 9.0c
> >> It runs fine. (althought I have to staticly linked the library. Can I
> >> dynamically do so?
> >> How can I deal the XPE to get that?)
> >>
> >> So the problems must be in directx 9.0c, which I am sure I included
> >> before
> >> compile the xpe image
> >> .i also tried to install the DirectX runtime after FBA, the application
> >> still get error like above..
> >>
> >> I use xp embedded sp2 plus xp embedded feature 2007, which including a
> >> directx 9.0c component.
> >>
> >> I have to say, in a windows xp platform (not embedded), the program runs
> >> just fine., so I don’t think my application program has any problem for
> >> that…
> >> why on the xpe, it can not run?
> >>
> >> How to solve this problem? Thank you for your advice..
> >>
> >> Really thanks…
> >>
> >> Winston.
> >>
> >>
>
>
Reply With Quote
Sean Liming \(MVP\)
Guest
Posts: n/a
 
Re: why i can not run the program which need directx 9.0c,while xp
Posted: 02-25-2008, 05:17 PM

If it is running in XP Pro than it should run in XPe. There might be a
missing component.

The top left pane lists the DLLs needed. You only need to be concered about
the DLLs in the root branch.
--
Regards,

Sean Liming
www.sjjmicro.com / www.seanliming.com
Book Author - XP Embedded Advanced, XP Embedded Supplemental Toolkit
"winston" <winston@discussions.microsoft.com> wrote in message
news:C413DFEB-4960-4692-B854-E97E1CF2C087@microsoft.com...
> Thank you for your response.
>
> i did checked with dependcywalker, but i don't know how to get useful
> information, because it show so many DLL it rely on. should i check every
> dll
> to see if my xpe image contains it? must be some other way..
>
> also, my program runs fine on windows xp,
> on xp ebedded, my other program (all based on MFC) also fine..
>
> i check the program, the information it prints out, it the D3d
> createdevice.
> since it's the d3d createdevice failed. i assume it's directx component
> not
> correct.
> am i right to think it this way?
>
> thank you.
>
> "Sean Liming (MVP)" wrote:
>
>>
>> The application might need more than just DirectX 9.0c. Did you run
>> DependencyWalker (www.dependencywalker.com) to investigate what other
>> DLLs
>> are required to run the application?
>>
>> --
>> Regards,
>>
>> Sean Liming
>> www.sjjmicro.com / www.seanliming.com
>> Book Author - XP Embedded Advanced, XP Embedded Supplemental Toolkit
>>
>>
>> "winston" <winston@discussions.microsoft.com> wrote in message
>> news:F6817D66-905F-4DA8-BCAA-799C64E7580C@microsoft.com...
>> >
>> > I should add i use VIA EPIA-PD matherboard..and install the hardware
>> > component driver from their website.
>> >
>> > "winston" wrote:
>> >
>> >> why i can not run the program while need directx 9.0c,while xpe alread
>> >> has it?
>> >>
>> >>
>> >>
>> >> Hi,there,
>> >>
>> >> I created a XPE image run on the windows based terminals
>> >> On Via board.. since my application program need directx 9.0c, I
>> >> included
>> >> The component in the image.
>> >>
>> >> How ever after the image FBA, when I run the program, it prompt errors
>> >>
>> >> The program core code list here:
>> >>
>> >>
>> >> HRESULT rhr = m_pD3D->CreateDevice( D3DADAPTER_DEFAULT,
>> >> D3DDEVTYPE_HAL,
>> >> m_hWnd,
>> >> D3DCREATE_SOFTWARE_VERTEXPROCESSING,
>> >> &d3dpp, &m_pd3dDevice );
>> >>
>> >> if( FAILED( rhr ) )
>> >> {
>> >> AfxMessageBox(_T("Can not create 3D device."), MB_OK, 0);
>> >>
>> >> if(rhr==D3DERR_DEVICELOST)
>> >> AfxMessageBox(_T("D3DERR_DEVICELOST."), MB_OK, 0);
>> >> else if(rhr == D3DERR_INVALIDCALL)
>> >> AfxMessageBox(_T("D3DERR_INVALIDCALL."), MB_OK, 0);
>> >> else if(rhr == D3DERR_NOTAVAILABLE)
>> >> AfxMessageBox(_T("D3DERR_NOTAVAILABLE."), MB_OK, 0);
>> >> else if(rhr == D3DERR_OUTOFVIDEOMEMORY)
>> >> AfxMessageBox(_T("D3DERR_OUTOFVIDEOMEMORY."), MB_OK, 0);
>> >>
>> >> return E_FAIL;
>> >> }
>> >>
>> >>
>> >> The program prompt out “D3DERR_NOTAVAILABLE”. and exit.
>> >>
>> >> This is a MFC based program..
>> >>
>> >> But I tried to compiled another MFC based program, don't used directx
>> >> 9.0c
>> >> It runs fine. (althought I have to staticly linked the library. Can I
>> >> dynamically do so?
>> >> How can I deal the XPE to get that?)
>> >>
>> >> So the problems must be in directx 9.0c, which I am sure I included
>> >> before
>> >> compile the xpe image
>> >> .i also tried to install the DirectX runtime after FBA, the
>> >> application
>> >> still get error like above..
>> >>
>> >> I use xp embedded sp2 plus xp embedded feature 2007, which including a
>> >> directx 9.0c component.
>> >>
>> >> I have to say, in a windows xp platform (not embedded), the program
>> >> runs
>> >> just fine., so I don’t think my application program has any problem
>> >> for
>> >> that…
>> >> why on the xpe, it can not run?
>> >>
>> >> How to solve this problem? Thank you for your advice..
>> >>
>> >> Really thanks…
>> >>
>> >> Winston.
>> >>
>> >>
>>
>>
Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may 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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question - Is DirectX 8.1 H/W + DirectX 9.0 S/W enough? Pete Windows Vista Hardware & Devices 2 06-24-2006 06:58 PM
Sims2 & XP/SP2 DirectX 9.0c problems ""Failed to find any DirectX 9.0c compatible graphics adapters in the system!....." Ron Windows XP Games 2 09-22-2004 03:31 AM
Uninstalling program leaves program listed under linked events Matt L. Windows XP Help & Support 2 11-05-2003 12:30 AM
Program Icon Remains on Toolbar After Closing Program Trev Windows XP Basics 0 09-22-2003 08:42 AM
VMR component in Microsoft DirectX 8.1 or DirectX 9.0 zwh Windows XP Embedded 0 07-21-2003 04:28 AM


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90