Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

trying to wrap an application with Tclpro, but under tcl8.3.3

35 views
Skip to first unread message

Markhasd

unread,
Aug 30, 2001, 12:35:23 AM8/30/01
to
Hello people,
Tclpro1.4.1 has tcl8.3.2 and it does not support some of the features I need,
like "wm iconbitmap", however I downloaded ActiveTcl (with tcl8.3.3) and it
works fine. The problem is that I'm trying to wrap my programs and I only know
how to do that with Tclpro using the "prowrap" command, which only seems to
wrap with tcl8.3.2. How can I get Tclpro to wrap with tcl8.3.3? I read the
documentation but have been unsuccessful. Any tips on how to go about this?

Eddie

Bob Techentin

unread,
Aug 30, 2001, 8:37:09 PM8/30/01
to

Prowrap requires special Tcl interpreter initialization. See the
documentation sections "Wrapping Applications with a Custom Interpreter
or Custom Initialization Libraries" and "Creating Base Applications for
TclPro Wrapper" on about page 100 of the documentation. Basically, the
interpreter must be initialized by calling Pro_WrapTclMain instead of
TclMain.

Bob
--
Bob Techentin techenti...@mayo.edu
Mayo Foundation (507) 538-5495
200 First St. SW FAX (507) 284-9171
Rochester MN, 55901 USA http://www.mayo.edu/sppdg/

K

unread,
Sep 1, 2001, 4:43:59 AM9/1/01
to
Bob Techentin <techenti...@mayo.edu> wrote in message news:<3B8EDC35...@mayo.edu>...

> Markhasd wrote:
> >
> > Hello people,
> > Tclpro1.4.1 has tcl8.3.2 and it does not support some of the
> > features I need, like "wm iconbitmap", however I downloaded
> > ActiveTcl (with tcl8.3.3) and it works fine. The problem is
> > that I'm trying to wrap my programs and I only know
> > how to do that with Tclpro using the "prowrap" command, which
> > only seems to wrap with tcl8.3.2. How can I get Tclpro to wrap
> > with tcl8.3.3? I read the documentation but have been
> > unsuccessful. Any tips on how to go about this?
>
> Prowrap requires special Tcl interpreter initialization. See the
> documentation sections "Wrapping Applications with a Custom Interpreter
> or Custom Initialization Libraries" and "Creating Base Applications for
> TclPro Wrapper" on about page 100 of the documentation. Basically, the
> interpreter must be initialized by calling Pro_WrapTclMain instead of
> TclMain.
>
> Bob

I'm quite a Newbie...would it be possible to elaborate? I have read
the manual several times in an effort to accomplish this but failed.

Bob Techentin

unread,
Sep 4, 2001, 10:13:15 AM9/4/01
to

You're going to have to download the source to Tcl 8.3.3, and build your
own tclsh that has been modified to work with Prowrap. If you've never
built Tcl before, but just downloaded TclPro, then this might be hard
for you. But the instructions in the README files are pretty straight
forward. Follow them.

If you're on unix, then modify tcl8.3/unix/tclAppInit.c, replacing
"Tcl_Main" with "Pro_WrapTclMain." Then you should be able to run
'make' and get a new tclsh that includes the Prowrap initialization.

When wrapping your application, use the -executable switch to tell
prowrap where to find your new tclsh interpreter.

Good luck,

0 new messages