Hi Francesco,

(pls don't cut the whole context, it's difficult to know 
by SVN revision number, what was the original msg)

> Thank you very much for your work because I think it can go in the
> right direction. I didn't study your code yet but I want to ask you
> one thing anyway... can may the code be written to be modular and
> easily adaptable to various sources ? It may be nice tobe able to
> harbour-ize any external library using a generator to create the
> interface...  Probably this generator already exists for Harbour but I
> never heard of it.... for example how were created the bindings to
> harupdf ?

Maybe can be done to some extent, but I'm nearly sure 
this can never be a fully generic process. With most libs 
you need to understand the background logic which you can 
rarely deduct from plain headers. If you're through that, 
you need to map types, which even for the simpler cases 
would require a complete C preprocessor and language 
parser to work with all projects. You also need to know 
what to parse and what to ignore, otherwise you will end 
up struggling with rare exceptions, no one would ever 
need anyway.

This horizon is so wide that I prefer to keep it 
QT specific. I even hope someone can take it from this 
stage (Pritpal I hope).

Brgds,
Viktor

_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to