From: ··········@gmail.com
Subject: win32 api
Date: 
Message-ID: <1162534710.981314.291240@e3g2000cwe.googlegroups.com>
Hello, I've been working on a win32 api so that i can learn more about
lisp and eventually do some graphics hacking.  So far it is very rough
and far from being a usable library but I thought I share it with
someone and hopefully get some tips and feedback on it.  You can get it
here:

http://www.djbuzzkill.com/code/source.zip

To start up a window, you can do something like this:

CL-USER> (defvar *mywc* (win32api:create-and-register-wndclass
"defaultclass"))
*MYWC*
CL-USER> (defvar *myhwnd* (win32api:create-default-window
"defaultclass"))
*MYHWND*
CL-USER> (win32api:showwindow *myhwnd* win32api:SW_SHOW)
NIL


Let me know what you think.

--
gilbert

From: Luke J Crook
Subject: Re: win32 api
Date: 
Message-ID: <yvGdnQgxAsB8btfYnZ2dnUVZ_qydnZ2d@giganews.com>
··········@gmail.com wrote:
> Hello, I've been working on a win32 api so that i can learn more about
> lisp and eventually do some graphics hacking.  So far it is very rough
> and far from being a usable library but I thought I share it with
> someone and hopefully get some tips and feedback on it.  

Also see lispbuilder-windows, at http://lispbuilder.sourceforge.net/

http://svn.sourceforge.net/viewvc/*checkout*/lispbuilder/trunk/lispbuilder-windows/documentation/index.html

- Luke
From: ··········@gmail.com
Subject: Re: win32 api
Date: 
Message-ID: <1162540358.583594.253690@m73g2000cwd.googlegroups.com>
great work!  keep it up!

sanket.

On Nov 2, 11:47 pm, Luke J Crook <····@balooga.com> wrote:
> ··········@gmail.com wrote:
> > Hello, I've been working on a win32 api so that i can learn more about
> > lisp and eventually do some graphics hacking.  So far it is very rough
> > and far from being a usable library but I thought I share it with
> > someone and hopefully get some tips and feedback on it.  Also see lispbuilder-windows, athttp://lispbuilder.sourceforge.net/
>
> http://svn.sourceforge.net/viewvc/*checkout*/lispbuilder/trunk/lispbu...
> 
> - Luke
From: ··········@gmail.com
Subject: Re: win32 api
Date: 
Message-ID: <1162583348.531736.317060@k70g2000cwa.googlegroups.com>
Thanks, Luke.  I should check out current lisp projects more often.


Luke J Crook wrote:
> ··········@gmail.com wrote:
> > Hello, I've been working on a win32 api so that i can learn more about
> > lisp and eventually do some graphics hacking.  So far it is very rough
> > and far from being a usable library but I thought I share it with
> > someone and hopefully get some tips and feedback on it.
>
> Also see lispbuilder-windows, at http://lispbuilder.sourceforge.net/
>
> http://svn.sourceforge.net/viewvc/*checkout*/lispbuilder/trunk/lispbuilder-windows/documentation/index.html
> 
> - Luke
From: Jack Unrue
Subject: Re: win32 api
Date: 
Message-ID: <mhsmk2dfr3l5s41g2qg24oq0qb3b8g5eed@4ax.com>
On 2 Nov 2006 22:18:31 -0800, ··········@gmail.com wrote:

> Hello, I've been working on a win32 api so that i can learn more about
> lisp and eventually do some graphics hacking.  So far it is very rough
> and far from being a usable library but I thought I share it with
> someone and hopefully get some tips and feedback on it.  You can get it
> here:
> 
> http://www.djbuzzkill.com/code/source.zip
>
> [snip]

Gilbert,

I have a project implementing a UI library on top of Win32 that
you might be interested in:

http://common-lisp.net/project/graphic-forms

See also this recent email concerning some important fixes for
getting the latest release properly loaded:

http://common-lisp.net/pipermail/graphic-forms-devel/2006-November/000022.html

Now, I understand that you're getting a lot out of working through
the API binding and stuff yourself, and that's cool. If you happen
to take a look at Graphic-Forms and have ideas for how it could
better fit the prototyping you are currently doing, feel free to
offer suggestions (probably the graphic-forms-devel mailing list
is best for that).

In any case, keep up the good work.

-- 
Jack Unrue
From: ··········@gmail.com
Subject: Re: win32 api
Date: 
Message-ID: <1162583442.521311.269550@e3g2000cwe.googlegroups.com>
Thanks, Jack.  I guess Im reinventing the wheel again.  I'll be sure to
check it out.

Jack Unrue wrote:
> On 2 Nov 2006 22:18:31 -0800, ··········@gmail.com wrote:
>
> > Hello, I've been working on a win32 api so that i can learn more about
> > lisp and eventually do some graphics hacking.  So far it is very rough
> > and far from being a usable library but I thought I share it with
> > someone and hopefully get some tips and feedback on it.  You can get it
> > here:
> >
> > http://www.djbuzzkill.com/code/source.zip
> >
> > [snip]
>
> Gilbert,
>
> I have a project implementing a UI library on top of Win32 that
> you might be interested in:
>
> http://common-lisp.net/project/graphic-forms
>
> See also this recent email concerning some important fixes for
> getting the latest release properly loaded:
>
> http://common-lisp.net/pipermail/graphic-forms-devel/2006-November/000022.html
>
> Now, I understand that you're getting a lot out of working through
> the API binding and stuff yourself, and that's cool. If you happen
> to take a look at Graphic-Forms and have ideas for how it could
> better fit the prototyping you are currently doing, feel free to
> offer suggestions (probably the graphic-forms-devel mailing list
> is best for that).
> 
> In any case, keep up the good work.
> 
> -- 
> Jack Unrue
From: Ken Tilton
Subject: Re: win32 api
Date: 
Message-ID: <MkO2h.443$AQ6.89@newsfe11.lga>
Jack Unrue wrote:
> On 2 Nov 2006 22:18:31 -0800, ··········@gmail.com wrote:
> 
> 
>>Hello, I've been working on a win32 api so that i can learn more about
>>lisp and eventually do some graphics hacking.  So far it is very rough
>>and far from being a usable library but I thought I share it with
>>someone and hopefully get some tips and feedback on it.  You can get it
>>here:
>>
>>http://www.djbuzzkill.com/code/source.zip
>>
>>[snip]
> 
> 
> Gilbert,
> 
> I have a project implementing a UI library on top of Win32 that
> you might be interested in:
> 
> http://common-lisp.net/project/graphic-forms

PWUIAHAHAHAHA. This is Lisp. We never use anyone else's code. Hell, most 
of us won't even use Lisp and insist on writing our own.

Hence the oft-noted Lisp library plaint "Gee, I found a lotta stuff, but 
none of it seems to be active." Of course not. You can start all the 
common-lisp.net's you want, but that is solving the wrong problem: it is 
not that there are no libraries, it is that there are no users. No 
users, no life to a project. I feel a leading-horse-to-water joke coming on.

Ron had it wrong. We fail not because we are anti-social, but because 
Lisp delights us so well that we forget any viable project we had in 
mind when we discovered the language and start each of us cooking from 
scratch, a collective Sisyphus of software development. The misery of 
programming in anything else does not drive else's users into productive 
teams, it drives them to else's libraries.

Want to see my new implementation of IF? That was supposed to be a joke, 
then I remembered Foderaro.

hth, kenny

-- 
Cells: http://common-lisp.net/project/cells/

"I'll say I'm losing my grip, and it feels terrific."
    -- Smiling husband to scowling wife, New Yorker cartoon
From: Jack Unrue
Subject: Re: win32 api
Date: 
Message-ID: <j11ok2hn8e18vbkejhord7f5kk7dkfrn8l@4ax.com>
On Fri, 03 Nov 2006 16:18:30 -0500, Ken Tilton <·········@gmail.com> wrote:
> 
> Hence the oft-noted Lisp library plaint "Gee, I found a lotta stuff, but 
> none of it seems to be active." Of course not. You can start all the 
> common-lisp.net's you want, but that is solving the wrong problem: it is 
> not that there are no libraries, it is that there are no users. No 
> users, no life to a project. I feel a leading-horse-to-water joke coming on.

Leading a horse to water, you say?

There are a ton of smart people out there who just plain don't care about what
the CL community thinks; they keep on doing what they do using so-called inferior
tools -- they're productive, making money, etc, and don't care at all what this
community thinks.

Maybe some of us Lisp fans should get over ourselves. If I happen to get a paying
job doing Java (and indeed I might since I just got back from an interview), I'm
not going to regret programming in Java again, not one single little bit of regret
will cross my mind.

That's because I don't have to choose between CL and Java (or whatever
else). I can do both. I can enjoy solving problems in whatever language
and learn to appreciate the finer points of each language. For me, programming
in CL is a sufficient but not necessary condition for programming happiness.

> Ron had it wrong. We fail not because we are anti-social, but because 
> Lisp delights us so well that we forget any viable project we had in 
> mind when we discovered the language and start each of us cooking from 
> scratch, a collective Sisyphus of software development.

We have met the enemy and .... it was Lisp after all?

-- 
Jack Unrue
From: Ken Tilton
Subject: Re: win32 api
Date: 
Message-ID: <6dW2h.387$Rj2.239@newsfe10.lga>
Jack Unrue wrote:

> Maybe some of us Lisp fans should get over ourselves. If I happen to get a paying
> job doing Java (and indeed I might since I just got back from an interview), I'm
> not going to regret programming in Java again, not one single little bit of regret
> will cross my mind.
> 
> That's because I don't have to choose between CL and Java (or whatever
> else). I can do both. I can enjoy solving problems in whatever language
> and learn to appreciate the finer points of each language. For me, programming
> in CL is a sufficient but not necessary condition for programming happiness.

Spoken like someone who has been using CL in his spare time for little 
more than a year, working mostly on bindings to a C library so he can 
put up non-portable GUIs on the worst OS available. :)

Sorry, you ain't a Lisper yet.

kenny

-- 
Cells: http://common-lisp.net/project/cells/

"I'll say I'm losing my grip, and it feels terrific."
    -- Smiling husband to scowling wife, New Yorker cartoon
From: Jack Unrue
Subject: Re: win32 api
Date: 
Message-ID: <brdok2l2s69ncs4ueil9p1m01j21sfabh2@4ax.com>
On Sat, 04 Nov 2006 01:13:38 -0500, Ken Tilton <·········@gmail.com> wrote:
> 
> Spoken like someone who has been using CL in his spare time for little 
> more than a year, working mostly on bindings to a C library so he can 
> put up non-portable GUIs on the worst OS available. :)

Yep :-)

> Sorry, you ain't a Lisper yet.

That's probably true. It might not ever be true in some ways, actually.

-- 
Jack Unrue
From: Jack Unrue
Subject: Re: win32 api
Date: 
Message-ID: <tceok2d407ljpbclba5lfu04hri2kgr6jg@4ax.com>
I wrote:

> On Sat, 04 Nov 2006 01:13:38 -0500, Ken Tilton <·········@gmail.com> wrote:
> > 
> > Spoken like someone who has been using CL in his spare time for little 
> > more than a year, working mostly on bindings to a C library so he can 
> > put up non-portable GUIs on the worst OS available. :)
> 
> Yep :-)
> 
> > Sorry, you ain't a Lisper yet.
> 
> That's probably true. It might not ever be true in some ways, actually.

By 'it' I was referring to being a Lisper. Geez, I dunno what my problem is
this evening.

-- 
Jack Unrue
From: Ken Tilton
Subject: Re: win32 api
Date: 
Message-ID: <Px33h.410$Rj2.74@newsfe10.lga>
Jack Unrue wrote:
> On Sat, 04 Nov 2006 01:13:38 -0500, Ken Tilton <·········@gmail.com> wrote:
> 
>>Spoken like someone who has been using CL in his spare time for little 
>>more than a year, working mostly on bindings to a C library so he can 
>>put up non-portable GUIs on the worst OS available. :)
> 
> 
> Yep :-)
> 
> 
>>Sorry, you ain't a Lisper yet.
> 
> 
> That's probably true. It might not ever be true in some ways, actually.
> 

Dude! Yer such a buzz-kill! My very point is that you cannot possibly 
know how full of yourself you will become if you become fluent in Lisp 
until you become fluent in Lisp so shut yer big fat yap! (And stop 
speaking for the Lisp community until the priesthood even accepts you 
for an apprenticeship fer chrissake.)

[The preceding encomium on the ecstasies awaiting those who achieve lisp 
fluency has been presented in the form of a flame to avoid attracting 
flies from the Java and Python camps.]

kt

-- 
Cells: http://common-lisp.net/project/cells/

"I'll say I'm losing my grip, and it feels terrific."
    -- Smiling husband to scowling wife, New Yorker cartoon
From: Jack Unrue
Subject: Re: win32 api
Date: 
Message-ID: <prbok2hvt9rhlrkqc1t4kr3ra483fck3s8@4ax.com>
On Sat, 04 Nov 2006 03:45:20 GMT, Jack Unrue <·······@example.tld> wrote:

> On Fri, 03 Nov 2006 16:18:30 -0500, Ken Tilton <·········@gmail.com> wrote:
> > 
> > Hence the oft-noted Lisp library plaint "Gee, I found a lotta stuff, but 
> > none of it seems to be active." Of course not. You can start all the 
> > common-lisp.net's you want, but that is solving the wrong problem: it is 
> > not that there are no libraries, it is that there are no users. No 
> > users, no life to a project. I feel a leading-horse-to-water joke coming on.
> 
> Leading a horse to water, you say?

Sorry, my Usenet Miss-The-Point-But-Post-Anyway Bot kicked in there and I wasn't
able to stop it from posting.

-- 
Jack Unrue