Hello to all,

I've been working with my CEPC WCE4.2 platform till now with no
problems, now I need to improve graphics speed and I've decided to use
DirectDraw in my application (eVC++ 4.0 SP2).

First of all, I checked that my graphics card (S3 TwisterT) has
directdraw capabilities and the driver (provided by VIA Technologies)
is directdraw enabled.

Then, in PB I added the "DirectDraw" component from the catalog to my
platform and I re-build the platform. After that, I obtain ddraw.dll
in RelDir.

In eVC++ I added ddraw.h header in my app and ddraw.lib in
PROJECT-SETTINGS-LINK: "Object/Library Modules". After this changes,
the app is compiled with no errors.

Then I download the app to the platform (Through TCP/IP connection)
and when is downloaded and I try to run it, the following error
appears:

Cannot Launch the remote executable.
Error: Unknown Error.
Win32 error code: 126

Serching in this newgroup, I've found that error 126 means that the
app don't find a library, but I try to put ddraw.dll manually (using
remote file viewer) in \windows\ (in the target) and the error still
appears.

Probably I've missed one o some steps in the addition of DirectDraw
support...

Could anybody helpme with this problem?

Thanks in advance to all.

Regards,

Juan.

RE: Including DirectDraw in WCE4.2 by RobertMagyar

RobertMagyar
Tue Dec 14 12:11:03 CST 2004

1. Make sure that the VIA driver with ddraw support, is the driver that your
platform is being resolved to. (In PB, select Platform, and select resolve
features.)

2. Bib in ddex1.exe, and see if you can run it on your target. If you can,
then ddraw is confiured correctly. If you can't, try doing a clean, and build
your platform again.

Note, when ddraw is included in the platform, the ddex test apps should get
built. You can find the source for the ddraw test apps in
C:\WINCE420\PUBLIC\DIRECTX\SDK\SAMPLES\DDRAW\SRC

Robert


"Juan de la Cerda" wrote:

> Hello to all,
>
> I've been working with my CEPC WCE4.2 platform till now with no
> problems, now I need to improve graphics speed and I've decided to use
> DirectDraw in my application (eVC++ 4.0 SP2).
>
> First of all, I checked that my graphics card (S3 TwisterT) has
> directdraw capabilities and the driver (provided by VIA Technologies)
> is directdraw enabled.
>
> Then, in PB I added the "DirectDraw" component from the catalog to my
> platform and I re-build the platform. After that, I obtain ddraw.dll
> in RelDir.
>
> In eVC++ I added ddraw.h header in my app and ddraw.lib in
> PROJECT-SETTINGS-LINK: "Object/Library Modules". After this changes,
> the app is compiled with no errors.
>
> Then I download the app to the platform (Through TCP/IP connection)
> and when is downloaded and I try to run it, the following error
> appears:
>
> Cannot Launch the remote executable.
> Error: Unknown Error.
> Win32 error code: 126
>
> Serching in this newgroup, I've found that error 126 means that the
> app don't find a library, but I try to put ddraw.dll manually (using
> remote file viewer) in \windows\ (in the target) and the error still
> appears.
>
> Probably I've missed one o some steps in the addition of DirectDraw
> support...
>
> Could anybody helpme with this problem?
>
> Thanks in advance to all.
>
> Regards,
>
> Juan.
>