Win32 API demo (true event loop)
Posted: Thu Jun 10, 2010 8:01 pm
I've tried to write the "complete" Windows application in newLISP, just as a demo, or proof of concept. I mean, with an event loop and such. The hard part is, that newlisp.exe is already a console application, and you cannot establish an event loop in console window (in fact you can, but the results are hardly predicable). So the trick is to create another window and create an event loop there. So, the application that "does nothing" is 80 LOC. It can found be here. It is basically a clone of a demo found here, translated form C++ to newLISP. I believe it can be a useful learning tool (it was for me definitely!). Probably I should add more comments to the code.