views:

355

answers:

2
+1  A: 

Do you get a compilation error?

Change the include_lib line to

-include_lib("wx/include/wx.hrl").

With that change it compiles and I get a blank window when it is run (I'm using erl 5.7.2 on Mac OS X). Is that what you expect?

If you're new to Erlang it's probably easier to start with something more straightforward. It's not too difficult to understand the wx_object man page but only once you've got a handle on OTP and have written a couple of test servers first in my humble opinion. Once you're at that point overlaying how wx works on top of that is a more simple step. Doing both at the same time will be more of a challenge, but your mileage may vary of course...!

Alan Moore
I went through the spawnlink tutorials and have a much better understanding of erlang now, although I obviously have much further to go, but thanks for the advice.http://spawnlink.com/articles/tag/erlybank/
Damian
I hadn't seen those tutorials, thanks for the link...
Alan Moore
A: 

I realize this is an old question, but I notice that

-behaviour(wx_object).

is spelled wrong. (You have behavoiur(wx_object).

Doug Edmunds