Re: directx samples

From: john andrew (johnandrew_at_discussions.microsoft.com)
Date: 12/28/04


Date: Mon, 27 Dec 2004 20:29:01 -0800


"john andrew" wrote:

>
>
> "Phil Taylor" wrote:
>
> > I said paths for headers, libs, src.
> >
> > headers for compiling, libs for linking, src for the common files.
> >
> > you are having all 3 sets of problems because of bad paths.
> >
> > "john andrew" <johnandrew@discussions.microsoft.com> wrote in message
> > news:45AE030D-D6FA-4923-B82D-BE27FAB2E1C4@microsoft.com...
> > >
> > >
> > > "Phil Taylor" wrote:
> > >
> > >> all your problems are due to bad paths. fix the paths for headers, libs,
> > >> and
> > >> source and you will be able to compile. not compiling has nothing to do
> > >> with
> > >> hw, its all sw at that point. its only when you run the app that hw gets
> > >> involved.
> > >>
> > >> "john andrew" <johnandrew@discussions.microsoft.com> wrote in message
> > >> news:0B910336-F0A2-4717-A41D-18BD2D262D2A@microsoft.com...
> > >> >
> > >> >
> > >> > "john andrew" wrote:
> > >> >
> > >> >>
> > >> >>
> > >> >> "Hanna-Barbera" wrote:
> > >> >>
> > >> >> > > When I load the sample files source, the files fail to compile
> > >> >> > > because it
> > >> >> > > cant find d3dx8.lib, .h files. Which exist and seem to in the
> > >> >> > > link
> > >> >> > section.
> > >> >> > > I think this is behaving like it cant use the hardware for these
> > >> >> > > 3D
> > >> >> > samples.
> > >> >> > > It is just not obvious and the docs wernt that helpful but I will
> > >> >> > > look at
> > >> >> > > them closely again.
> > >> >> >
> > >> >> > You can copy the include directory to your VC include folder or put
> > >> >> > the
> > >> >> > path
> > >> >> > of the include folder in the search list.
> > >> >> > To do the later,
> > >> >> > Project->Settings (or ALT+F7)
> > >> >> >
> > >> >> > Click on C++ tab
> > >> >> > Change Category to Preprocessor
> > >> >> > There is a place where it says "Additional Include Directories"
> > >> >> > and you can also check off Ignore standard include paths
> > >> >> >
> > >> >> >
> > >> >> >
> > >> >> > > > > I get error message eg cannot load media, your hardware doesnt
> > >> >> > > > > support
> > >> >> > 3D
> > >> >> > > > > function....I have on-board SiS-650..... graphics
> > >> >> >
> > >> >> > Like Phil said, you need a better graphics card or run on reference
> > >> >> > drivers,
> > >> >> > if you have the reference drivers installed. You would need to
> > >> >> > install
> > >> >> > the
> > >> >> > DX8 SDK and never install the Release runtime of DX8, else you have
> > >> >> > to
> > >> >> > copy
> > >> >> > the ref drivers to your system32 folder and it can be messy.
> > >> >> >
> > >> >> >
> > >> >>
> > >> >> I can get direct3D to work with VB example/tutorials in SDK with the
> > >> >> correct
> > >> >> display in directX. The same tutorials with MVc++6 wont work because
> > >> >> it
> > >> >> cant
> > >> >> find the include file, I even pasted the include files/libs in the src
> > >> >> directory.
> > >> >>
> > >> >> It doesnt make sense that direct3D will work with VB but not VC++6
> > >> >> The include statements arguments are inn vc++6 'Resources' tab in
> > >> >> proj->settings
> > >> >>
> > >> >> This is annoying as I want to use C++ with directX
> > >> >
> > >> > I can get the tutorials to run in SDK after I linked files in options
> > >> > I cant get the examples to run in SDK , maybe my graohics card is just
> > >> > not
> > >> > up to it
> > >> > I keep on getting an error with d3dapp.cpp
> > >>
> > >>
> > >>
> > > I dont know , I loaded VC6++ on a newer PC and an old PC with the same
> > > configurations. The newer PC will run the c++ tutorials in SDK. The older
> > > 1
> > > will not. The problem is it wont build .exe. The same error I get for
> > > more
> > > involved direct3D programs on newer PC. I will look at the paths but
> > > compiling is not the problem, its linking.
> > >
> > > I will have another look but I am not hopeful.
> > >
> > >
> >
> >
> Hi
>
> I know the paths , as I said before I have done that. In Tools->opt->dir is
> where I set paths for include, src, lib and the set the path for each. I can
> get the tutorials in SDK8 to work now for directX3D.
>
> I cant get the examples to work eg billboard.....all of them in the SDK. The
> exe in bin dont work either because of a 'hardware is insufficient..type
> .error.
>
> To be exact the d3dapp.cpp wont compile on the examples but everything else
> will. I checked the paths and settings to see lib files already added. It
> shouldnt be this complicated unless my graphics hardware on-board is too
> weak.
> If I can get smaller programs to work in directx3D but not larger ones or
> its exe in bin then I cant see how this is software problem.
>
> Also my older PC cant get the tutorials to work but the error it gives is
> the same as the error for the newer PC with larger directx3D programs like
> the examples. Again ...hardware problem would be the logical guess.
>
> If you can give me any other ideas to try I will do it though. I am not
> optimistic with my graphics on-board card. I think its 32mb and can only run
> small directX3D programs

I found some better docs about the sdk samples. Yes I can get them all to
compile and create .exe but no the wont run because of hardware error message
.
So you were right about they all should compile, I just set the required
paths to top of directory list, not the bottom. No they still wont run
becuase of hardware



Relevant Pages

  • Re: Very Slow VSS Development
    ... I concur that it is more than likely JIT but it seems like an awful long ... I'll pull my data tier and compiling it to libs and see if that helps. ... To speed this up, a bit, you can compile the libs and then reference the ... When debugging a ASP.Net web site the compile seem fast but starting the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Very Slow VSS Development
    ... Another factor is how much of the site is in other libs, ... To speed this up, a bit, you can compile the libs and then reference the ... When debugging a ASP.Net web site the compile seem fast but starting the ...
    (microsoft.public.dotnet.framework.aspnet)
  • a few questions about rebuilding a system?
    ... install ... if i have the newest version of xmms etc.. ... I have some apps i have compiled my self from the authors src.. ... compile all my src from now on in single user mode if this is acceptable. ...
    (freebsd-questions)
  • Re: AppleWin and Linux!
    ... I just sent you an email from my REAL email account. ... If I can compile the source I'll give trouble ... This looks like about where it stopped using .dlls ... >news-group posting) for a patch to the 1.12.7.2 src base. ...
    (comp.emulators.apple2)
  • Re: z88dk compile problem
    ... to make the libs just change to the libsrc ... I think all download pkgs come with the z80 libraries ... To compile C programs you need to specify a target ... The +zx means Spectrum and the -lndos links to ...
    (comp.sys.sinclair)