DirectX(like DelphiX) in Lazarus? lazarus / 11-Options ---------------------------------------------------------------------- Ryan · 2005-06-30 21:49 Is possible to use DirectX in Lazarus, like it is with Delphi? ---------------------------------------------------------------------- Marc · 2005-07-01 14:53 If you have translated headers and are on win32 then I see no problem. ---------------------------------------------------------------------- JopieK · 2005-10-23 12:15 Because of the stupid C:\Lazarus\components\DelphiX2000_0717-2\Source\DirectX.pas(15994) Fatal: Unexpected end of file  in DelphiX I can't get the library working... this seems to be an annoying Lazarus problem since it also occured in the Indy installation process and it seems to really hinder me to move from Delphi to Lazarus.... ---------------------------------------------------------------------- Vincent Snijders · 2005-10-23 13:19 Maybe caused by nested (but not correctly balenced) comments in the source code? ---------------------------------------------------------------------- JopieK · 2005-10-23 14:14 that might be the case but it also does not like: IID_IDirectMusicSegment2        : TGUID = '{D38894D1-C052-11D2-872F-00600893B1BD}'; C:\Lazarus\components\DelphiX2000_0717-2\Source\DirectX.pas(14892,46) Warning: Comment level 10 found I've already replaced all accolades bij round brackets/asterisks (* *) It just seems to be that the parser isn't tolerant enough. Also people commenting on Indy saying it just worked fine on non-Windows are missing the point (the problems in Indy were caused in Winsock2.pas so of course other platforms do not have problems with that). I really like the Lazarus initiative, I program since 1997 in Delphi and I prefer OOP above Java etc. so for my master thesis I would like to use platform independant stuff with a good interface in a good language, but I cannot afford spending too much time on fixing too little matters, so I might change my mind and go entirely to Java or so... ---------------------------------------------------------------------- Vincent Snijders · 2005-10-23 14:30 Code: [Select]program Project1; {$mode objfpc}{$H+} uses   Classes, SysUtils   { add your units here };   const   IID_IDirectMusicSegment2 : TGUID = '{D38894D1-C052-11D2-872F-00600893B1BD}'; begin end. compiles without warning, so the error must be somewhere else. ---------------------------------------------------------------------- Stasek · 2006-11-20 21:38 Project JEDI (www.clootie.ru) for FreePascal works fine in Lazarus. You can download it and use like MS DirectX SDK in c++.