Jump to content

upgrading directx from 7 to 8

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
lapta

lapta

    Newbie

  • Members
  • Pip
  • 3 posts
Hi.

I am not a coder by any means, but i am trying lol.

I have been using delphi 7 to work on an exsiting project, and so far everthinghas gone ok.

At the moment i am trying to convert from 800 by 600 to 1024 by 768.

I have managed to change the res ok, need to realine everthing but thats not a problem, but when i built the project i got a lot of warning all related to directx.pas About unsafe pointers. I have no idea what this means, and at the moment dont really care as everything seems to be working ok.

The point is, how hard would it be to upgrade my project from directx 7 to directx 8.

Not sure wat verison of directx 7 i am using, or if there are differant verisons, but these are the details i have for directX

* Present unit:
* DirectX.pas DirectX 7 (DirectX 7 SDK)
* DShow.pas DirectShow (DirectX Media SDK 5.1)
* DAnim.pas DirectAnimation (DirectX Media SDK 5.1)
DirectX header version 98.11.20

Any help would be great.

Thanks

Lapta

#2
Ewe Loon

Ewe Loon

    Learning Programmer

  • Members
  • PipPipPip
  • 49 posts
unsafe pointer are untyped pointers
a:pointer;   // is unsafe , the data type is unknown making it unsafe
a:PInteger;  // is safe    ,  the data type is an integer
a:PByteArray;// is safe     , the data type is an array of bytes

you can turn Unsafe pointer messages by going to "Project" Menu, "Options" , "Compiler Messages" tab,
at the bottom you will find "Unsafe Type" , uncheck it to stop warnings about unsafe pointers