1. Can it be done - Part II.

Looking over my AppGen stuff, I have C headers for the
DBMS definitions. I also have a "appgen.a", which is an
"archive" of appgen's "o" (object) files.

Now a few questions:

A:
Can Euphoria read, translate, display, "binary" numbers?
These are the "integer", "long", "float" ..etc..etc. that
C uses.

B:
Can Euphoria USE the ".a" library files or the "objects"
themselves?

Thanks ...



-- 
Ben Duncan   Phone (601)-355-2574     Fax (601)-355-2573   Cell (601)-946-1220
                         Business Network Solutions
                      336 Elton Road  Jackson MS, 39212
    "Software is like Sex, it is better when it's free" - Linus Torvalds

new topic     » topic index » view message » categorize

2. Re: Can it be done - Part II.

Ben Duncan wrote:
> Looking over my AppGen stuff, I have C headers for the
> DBMS definitions. I also have a "appgen.a", which is an
> "archive" of appgen's "o" (object) files.
> 
> Now a few questions:
> 
> A:
> Can Euphoria read, translate, display, "binary" numbers?
> These are the "integer", "long", "float" ..etc..etc. that
> C uses.

A Euphoria program can effectively pass C ints, pointers,
floats, and doubles to/from C routines. That's how something
like Win32Lib works. It communicates with the underlying
WIN32 API, which is all C-based .dll's.

> B:
> Can Euphoria USE the ".a" library files or the "objects"
> themselves?

Euphoria, whether interpreted or translated/compiled,
has support for Linux/FreeBSD *shared* libraries (.so)
as well as Windows *shared* (dynamic) libraries (.dll).
With the Translator you could set up calls to a *static*
library (.a), but it would involve a bit of kludgery
on your part. You could also develop your own
Euphoria-friendly C shared library containing
routines that call the static library.

Regards,
    Rob Craig
    Rapid Deployment Software
    http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

3. Re: Can it be done - Part II.

thanks Rob, will have to dig an to "how to" on the
C ints, pointers, floats things.

Since Appgen did/does come with a pretty good C API,
prolly will dig into setting up some sort of SHARED
lib stuff that is Euphoria friendly.

Since I am NOT a C programming expert (mediocre would
best describe me at C - hey what CAN I say, I'm the
APP's/database guy), pointers to info on doing this
(on Linux of Course ;> ) would be greatly appreciated.

I CAN and have written some C routines (can even do them in
the Appgen report writer) that generate a simplified output
of AppGen's PDEF's.

My came PLAN is to use these PDEF's as models to create an
XML "Definition" of screens and reports, then come up with
someway of having a screen/report painter that can maintain
these. The next step would to be create/translate the POST
procedures, to either a XML format, or script, but I
have not decided on that. Most of the battle will be with
dealing with screens/reports. I plan to extend those so that
the screen/reports will be "presentation" agnostic, and let
the "engine" worry about that.

The final piece will be a Database engine that supports the
Multi-Value (PICK) concept. Having over 28 years experience
with "Data Processing", I can say of all the database's, file
managers, etc..etc.., I have worked on/with,  the PICK model
seems to come close to dynamics of the ever changing needs
of companies information requirements.

Thanks ....

Robert Craig wrote:
> 
> 
> A Euphoria program can effectively pass C ints, pointers,
> floats, and doubles to/from C routines. That's how something
> like Win32Lib works. It communicates with the underlying
> WIN32 API, which is all C-based .dll's.
> Euphoria, whether interpreted or translated/compiled,
> has support for Linux/FreeBSD *shared* libraries (.so)
> as well as Windows *shared* (dynamic) libraries (.dll).
> With the Translator you could set up calls to a *static*
> library (.a), but it would involve a bit of kludgery
> on your part. You could also develop your own
> Euphoria-friendly C shared library containing
> routines that call the static library.
> 
-- 
Ben Duncan   Phone (601)-355-2574     Fax (601)-355-2573   Cell (601)-946-1220
                         Business Network Solutions
                      336 Elton Road  Jackson MS, 39212
    "Software is like Sex, it is better when it's free" - Linus Torvalds

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu