Re: Who can help me with Windows programming?

From: <WHeath_at_aol.com>
Date: Thu, 30 Nov 2000 21:20:47 EST

Another good book on Windows programming is
Win32 Programming by Brent Rector, published by
Addison Wesley USA
It is especially good at explaining introductory concepts.
I should know, I'm a beginner at windows too.
It also points out when the windows documentation is wrong
or lacking or misleading to save hours of heads smashing into walls.
Warren Heath

>From mail_at_forthcad.com Fri Oct 1 10:40:07 1999
To: sftalk_at_forth.com
Message-Id: <m0000500_at_gerd.forthinc.com>
Date: Fri, 1 Oct 1999 10:40:07 +0100
From: "Charles Melice" <mail_at_forthcad.com>
Subject: Re: [sftalk] Class based access in Windoze

> ...
> So the controversy has erupted here: do we model after MFC and have
> two definitions of RECTANGLE that behave differently, or do we leave
> the API version of RECTANGLE alone, and assign a different name (such
> as perhaps CRECTANGLE or RECTANGLE() ) to the class version?
> ...
> Rick VanNorman

Rick,

I think that ALL class-methods must have a special character to distinguish
then from Forth word. The ":" word would check this preliminary before
validate the method definition.

        : <Rectangle ...

        :M Rectangle: ... ( Yerk version )

Doing so in big development make sure we can always see the difference
between true Forth word, and class-methods.

About MFC Forth implementation, my opinion is that the API words are
sufficient. The following definitions are not really necessary:

        Class CDC
          ...
            : <Rectangle ( x y x' x' -- ret ) 2>R h -ROT 2R> Rectangle ;
          : <RectanglePtr ( pRect -- ) ... <Rectangle ;
          ...
      Class-End

But the following class definition help anybody:

        cWindow SubClass cListbox
        Public
            : <AddString ( zStr -- )
                LB_ADDSTRING 0 rot <SendMessage drop ;

            : <DeleteString ( index -- )
                LB_DELETESTRING swap 0 <SendMessage drop ;
            ...
        End-Class

MFC is a C++ work, mimic MFC in Forth is dangerous because exacerbate Forth
default (lack?).

But Forth and API can coexist without problem, we can use all the Forth
quality with API. ( NB: ['] postpone ... incompatible with class-method )

Charles

.

>From Marc_Hawley_at_email.msn.com Sat Oct 2 11:14:31 1999
To: sftalk_at_forth.com
Message-Id: <m0000501_at_gerd.forthinc.com>
Date: Sat, 2 Oct 1999 11:14:31 -0500
From: "Marc Hawley" <Marc_Hawley_at_email.msn.com>
Subject: ofn and interpret

Sftalkers:

I am working on an application with a menuitem which opens the OpenFile
dialog. This is patterned very closely after the OFN INTERFACE in the
example LIFE.F.

In LIFE.F, the chosen file is then opened with OPEN-FILE and READ-LINE puts
a line at a time into PAD.

Rather than using READ-LINE, I would like to use INCLUDE-FILE to read *and
interpret* the contents of the chosen file. I cannot seem to to do this
using either the id and INCLUDE-FILE or the file name with INCLUDED. I can
open and read the file into a buffer, but when I try to interpret the file
using INCLUDE-FILE or INCLUDED, the data does not transfer and I get serious
error -9998.

I can run my read-and-interpret word from the console and it works fine, but
not from within the application. What is going on? Is there some reason I
cannot intrepret while running an application?

....Marc Hawley

.

>From jdcar_at_leland.Stanford.EDU Sat Oct 2 12:32:26 1999
To: sftalk_at_forth.com
Message-Id: <m0000502_at_gerd.forthinc.com>
Date: Sat, 2 Oct 1999 12:32:26 -0700
From: "John Carpenter" <jdcar_at_leland.Stanford.EDU>
Subject: DLL's and Java Native Methods

I know that you can make DLL's from Swift Forth. However I want a Java program to call applications written in Forth and the Java documentation tells you how to import methods written in C++ or the like using their Java Native Interface (JNI). So I am wondering whether or not a Forth based DLL is the same thing as a importable native method for Java. If not exactly so, what should I do to make this work?

Thanks,
=============================================
== John D. Carpenter ========================
== Software Developer =======================
== jdcar_at_leland.stanford.edu ================
=============================================

.
Received on Thu Nov 30 2000 - 18:35:42 PST


Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!

This archive was generated 08-Feb-2012. Archive updated nightly.