Skip to main content
gamedev.net
🔒 Locked

DelphiX with D6 Topic

Started by turbo 38 replies 25.8k views
Useless Hacker
Useless Hacker
I just installed DelphiX(and UnDelphiX) on Delphi6, most of it went smoothly thanks to the turbo tutorial.

You need to modify DelphiXcfg.inc to look like this before you compile: (added lines are in bold)

{$B-,J+,Q-,R-,T-,X+}

{$IFDEF VER100}
// Delphi 3
{$DEFINE DelphiX_Delphi3}
{$ENDIF}

{$IFDEF VER120}
// Delphi 4
{$DEFINE DelphiX_Delphi4}
{$ENDIF}

{$IFDEF VER130}
// Delphi 5
{$DEFINE DelphiX_Delphi5}
{$ENDIF}

{$IFDEF VER140}
// Delphi 6
{$DEFINE DelphiX_Delphi6}
{$ENDIF}


{$IFDEF DelphiX_Delphi3}
{$DEFINE DelphiX_Spt3}
{$ENDIF}

{$IFDEF DelphiX_Delphi4}
{$DEFINE DelphiX_Spt3}
{$DEFINE DelphiX_Spt4}
{$ENDIF}

{$IFDEF DelphiX_Delphi5}
{$DEFINE DelphiX_Spt3}
{$DEFINE DelphiX_Spt4}
{$DEFINE DelphiX_Spt5}
{$ENDIF}

{$IFDEF DelphiX_Delphi6}
{$DEFINE DelphiX_Spt3}
{$DEFINE DelphiX_Spt4}
{$DEFINE DelphiX_Spt5}
{$DEFINE DelphiX_Spt6}
{$ENDIF}


By doing this you ensure that certain features (like the Bounds property, which requires Delphi4 or greater) will work.

I didn't have the problem that Anon. had though.

EDIT: I think this is the reason that the ImageCollisionTest procedure in DXSprite.pas wouldn't work, since after I changed this it compiled fine.

[edited by - Useless Hacker on March 27, 2002 4:20:39 PM]
LiquidIce
LiquidIce
installed fine w/o a problem.

If people are having problems I believe delphigamedev site has a pre-set up version that might work for you

--
LiquidIce
giuliano1@adelphia.net
LiquidIce@unholynation.com
www.unholynation.com
--LiquidIcegiuliano1@adelphia.netLiquidIce@unholynation.comwww.unholynation.com
krajaoma
krajaoma
HY!

I have some problem with synchronisation with a background sprite that I am scrolling.
DoWaitVBlank option works, but I''ve already some little jumps.
So I tried it with IDirectDraw.waitforverticablank, I had the same result...
idem with the assembler code where I look for the third bite of the graphic card.

So has someone an idea, from where my problem should come, and how to solve it?

Kathy
myfirstgame
myfirstgame
I am install the newest version of delpix to delphi6, I follow the guide from trubo.gamedev.net
But in the step 6, I don''t know what it mean, and I don''t know how to continous, can anybody describe me more clearly and simple,thx
Useless Hacker
Useless Hacker
quote:
Original post by myfirstgame
But in the step 6, I don''t know what it mean, and I don''t know how to continous, can anybody describe me more clearly and simple,thx
Continuous (not continous)is not a verb (it''s an adjective), neither is it mentioned anywhere in step 6.
Alimonster
Alimonster
AP, about DirectDraw.pas in D7: grabbing a quote from a message I sent to someone else:

quote:
Find the line #139 in DirectDraw.pas - it has a comment saying "// Delphi 5 can''t handle interface in variant records
// so we have to use pointers instead (which can be type-casted into interfaces):"

Notice there are a few {$IFDEF}s there. These conditionally compile different parts of the code. The term used, ver***, means the Delphi version used. I don''t think that the headers have been updated for Delphi 7, though I could be wrong!

Find the line #148. It says:

PDirectDrawSurface = IDirectDrawSurface;

Try changing this to

PDirectDrawSurface = Pointer;


Not sure if that works, since I don''t have Delphi 7, but it''s definitely worth a shot! If it doesn''t work, let me know any errors.

[pimp]
Btw, make sure to head over to DGDev where you can find out plenty more answers to questions such as this!
[/pimp]
elvin
elvin
hello, how are all, some body can send me delphix for delphi 6
i''ve tried to recompile but i got a lot of error, sorry by the letter i don''t speak english at all
Demo2
Demo2
Please Helpp!!!
There are more mistakes
[Fatal Error] DXReg.pas(7): File not found: ''DesignIDE.dcu''
PhantomWind
PhantomWind

I copied all the DCU files to the Delphi6/Lib dir. And it works fine. But then again... I didn´t use IDE yet (don´t even know what it´s used for yet.) IDE... controlling things like HD, CDROM etc trough directX maybe?

I have only 1 problem so far, the DXWavList and DXWav components, I can´t seem to load WAV´s in it.

Is everybody having this problem with DelphiX under D6? I don´t hear much about this problem, that´s why I was asking myselve, maybe I didn´t follow the installation tutorial correctly.

I did read about 3rd party components to solve the problem. Can anyone tell me which 3rd party solution looks the most like the DXWavList component?

Thanks in advance,

Phantom

Useless Hacker
Useless Hacker
The IDE in ''DesignIDE'' stands for ''Integrated Development Environment'' (I think!). The IDE is the program which you use to develop delphi applications with (form designer, code editor, etc.)
Deranged
Deranged
quote:
Original post by Demo2
Please Helpp!!!
There are more mistakes
[Fatal Error] DXReg.pas(7): File not found: ''DesignIDE.dcu''


what compelled you to bring back a year and a half old thread from the dead?

[Mercury Software] [Google!] [ Look I DONT Follow Trends ]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.