Author Topic: Question about ChildWin.o2bas  (Read 365 times)

0 Members and 1 Guest are viewing this topic.


  • Hero Member
  • *****
  • Posts: 677
Question about ChildWin.o2bas
« on: April 25, 2018, 01:27:51 AM »
Hi Charles,

the demo \examples\WinGui\ChildWin.o2bas runs fine with the Latest Final Alpha, but using the Beta version there is an error message: Registration failed. If I add #autodim off then I get the error: not defined lpfnwndproc, line 46. Therefore I tried:

'  with wc.                 ' or CS_VREDRAW
    wc.hIcon=LoadIcon 0, IDI_APPLICATION
    wc.hCursor=LoadCursor 0,IDC_ARROW
    wc.hbrBackground=GetStockObject WHITE_BRUSH '
'  end with

and now the app runs with the Beta version too. But I am not sure if my observation is correct?


I noticed that you changed the syntax of "with". This will work:

  with wc                 '
    .hIcon=LoadIcon 0, IDI_APPLICATION
    .hCursor=LoadCursor 0,IDC_ARROW
    .hbrBackground=GetStockObject WHITE_BRUSH '
  end with

This is not yet documented in the help file and there are some more files which use the old syntax:

« Last Edit: April 25, 2018, 02:14:48 AM by Arnold »

Charles Pegge

  • Admin Support Member
  • *****
  • Posts: 3751
    • Oxygen Basic
Re: Question about ChildWin.o2bas
« Reply #1 on: April 25, 2018, 05:34:42 AM »
Hi Roland,

Thanks for spotting those. I've fixed the dot-coding and posted an update.

I've also included the source files for self-compiling, which is rolling along nicely. These are stored in inc/o2, and I will endeavour to expose manageable pieces of code and make them available for other programs to use. Some of the obvious ones are HashStore, Lexer, MacroEngine, MetaLanguage and Assembler.