[fpc-pascal]Create an OCX with FreePascal

Gabor DEAK JAHN djg at tramontana.co.hu
Thu Oct 11 17:45:50 CEST 2001

At 10/11/01 03:35 PM, you wrote:


 > Arg, that's what I doesn't want to hear. But more I read answer from my
 > post, more I feel that's will be the final answer. I think i will go to
 > create a DLL in FP, then write an wrapper OCX in Delphi if I found someone
 > who have Delphi...

It depends on what you could locate in Delphi (or C++) source code.
Implementing everything from scratch, using the MSDN documentation would be
possible but would require a lot of work. But if you could start with a
complete source example, turning that into FPC would be simpler (although it
would still require a basic understanding of how COM works).

I often use COM/OLE from FPC (and sometimes, unfortunately, from C which is
equivalent to FPC in this respect), the first time you do it you have to
write (or collect) some helper routines but later on, it's not that
complicated. You certainly have to provide the glue for the various elements
yourself but if you had already done it once, the code structure is reusable.


   Gabor DEAK JAHN

Gabor DEAK JAHN -- Budapest, Hungary.
WWW: www.tramontana.co.hu
E-mail: djg at tramontana.co.hu

More information about the fpc-pascal mailing list