If the integral use of C/C++ via Borland or MS can be figured out by Protel
or person X (I too have little time to play, but do have C++ Builder and
have a need to provide scripting automation for myself and my small
company), then great and simple joy could be had by ALL Protel users...

If it's C (or C++(Builder), a la Borland or MS) I can then justify spending
the time that I wish to integrate PERL into Protel.... PERL is great for
quick throw away scripts and full blown application scripts.... it's pattern
matching and regular expressions (albeit that look like modem line noise,
but simple once the cryptic-ness is understood) are invaluable and extremely
FAST to implement.   They are so invaluable, that  Borland's C++ Builder
implements them as PCRE (PERL compatible regular expressions)... although, I
have not been successful, or had the time to debug them... if it were PERL,
they would just work, and I would be done and not have to worry about the
intricacies of C memory usage and syntax....  end of story....

Anyway, to embed PERL into one's application (a proposed Protel server
add-on in this case), it typically takes a few lines of C code provided by
PERL... of course, I would have to play with PERL's XS to provide some hooks
into the Protel API, but hey, that's another story for another day and
another group... it would be like having another interpreter/compiler like
Client Basic, built into Protel... if you know (or even have a passing
knowledge of) C or the UNIX C shell (nothing too magical about the shell),
then you can write PERL....  except that PERL is way easier than C in that
you don't have to worry about memory, garbage collection, and the PERL
syntax handles lists natively without having to worry about going off the
end of your array!

Cheers,
-chris

-----Original Message-----
From: Scott Ellis [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 17, 2001 10:32 PM
To: Protel EDA Forum
Subject: Re: [PEDA] The hoary old VisC++ issue (Ex: Spiral generator)


Just use C++ Builder. It will compile Delphi code and uses the VCL by
default. Best described as a C++ version of Delphi!
It will automatically generate C++ headers for VCL based delphi
classes/units.

Scott Ellis
Novatex Research
[EMAIL PROTECTED]

----- Original Message -----
From: "Ian Wilson" <[EMAIL PROTECTED]>
To: "Protel EDA Forum" <[EMAIL PROTECTED]>
Sent: Friday, June 15, 2001 9:36 PM
Subject: [PEDA] The hoary old VisC++ issue (Ex: Spiral generator)


> On 10:14 AM 15/06/2001 +0200, Aalt Lokhorst said:
> >A few day's ago Ian wrote about the difficulties involved in using C++.
> >
> > >The problem is linking in to the runtime libraries that Protel release.
I
> > >suspect it is technically possible to write the headers (C/C++) to
> > >interface but to date no-one has done so
> >
> >How big are the problems? Do I need all the headers if I only want to
have
> >acces to the mouseclick position  in PCB?
>
> Big. I decided not to try to push it - it would be an interesting project
> though - getting MS VisC++ hooking into the Protel run time library and
> making the server provide the hooks that Protel expects in order to
> integrate into the environment.
>
> Every so often I think about investigating more but never quite do...
Doing
> it may also run foul of the NDA.
>
> I am sure Protel have looked into it as the question has been asked many
> times.  The sort of thing that may be an issue is a possible need to
> implement pascal style strings or at least provide conversions to and fro.
>
> I have Delphi 5, I prefer VisC++, but the time investment required is too
> high to justify for me.
>
> Possibly time to take this to the OT list if we wish to delve deeper.  But
> discussion is most likely affected by the NDA ...
>
> Ian
>


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* To post a message: mailto:[EMAIL PROTECTED]
*
* To leave this list visit:
* http://www.techservinc.com/protelusers/subscrib.html
*                      - or email -
* mailto:[EMAIL PROTECTED]?body=leave%20proteledaforum
*
* Contact the list manager:
* mailto:[EMAIL PROTECTED]
*
* Browse or Search previous postings:
* http://www.mail-archive.com/[email protected]
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Reply via email to