Re: Writing device drivers in Delphi.



Martin Harvey wrote:

> If I get really bored, I'm well inclined to embark on the worlds largest
> hack to let you write device drivers in Delphi.

you are bored !

> As I see it, there's only one really difficult problem: Producing an
> executable of the right format, with appropriate entry point and fixup
> information.

simple , innit ?

and in terms of difficulty, where would you see translating the DDK header files
? and all those pesky macros ? of course, you'd also have to replace the Delphi
memory manager with one that was aware of paged versus non-paged pool. and all
that assembly in system.pas - very tricky ! and of course no floating point or
exceptions, and i'm not sure about variants.

i would strongly advise you against trying this. if you are still determined,
download the DDK and work through the sample code there - the comments alone
("this should work but the compiler barfs") will give you second thoughts.



good luck !



Mat
.



Relevant Pages

  • Re: All the hacking...
    ... installing a component into Turbo Delphi Explorer using only the ... GUI does not qualify as a *hack* - it seems ... as it requires the installation of a software that explicitly ... This hacking is the BEST part about the whole Turbo stuff! ...
    (borland.public.delphi.non-technical)
  • Re: Hacking Delphi 2005 (updated)
    ... I've rewritten and updated my procedure to convert Delphi ... I can just imagine the fun at Borland when followers of ... this hack report bugs. ...
    (borland.public.delphi.non-technical)
  • Re: Lets think who will like to say delphi is dying?
    ... write device drivers and such in Delphi? ... My guess is ROI in the case of device drivers. ... a code formatter should be part of the IDE --thereby ... It's not as if it would cost CodeGear anything and it would make Delphi ...
    (borland.public.delphi.non-technical)
  • Re: Breaking Delphi
    ... AFAIK device drivers are written in C, not in C++, and Delphi cannot be ... used due to a special linker, which is required to link Windows drivers. ... you can get all the imports from the kernel ...
    (borland.public.delphi.non-technical)
  • Re: Text file question
    ... the help file is accurate for at least the ... version of Delphi it came with. ... > The facility of being able to read/write strings in just the same manner ... device drivers for strings to the broader topic of device drivers in ...
    (alt.comp.lang.borland-delphi)