Table.setHeaderVisible(true)does not work

Olli Aalto oaalto at gmail.com
Tue Sep 16 13:10:15 PDT 2008


Frank Benoit wrote:
> Does the snippet
> dwt-samples/snippets/table/Snippet38.d
> which has also table headers work for you?
>

Yes.

> Did you have the subsystem specified in your dsss.conf with one of:
>     buildflags+= -L/SUBSYSTEM:windows:5
>     buildflags+= -L/SUBSYSTEM:console:5
> 

No, didn't even know about them until now. Adding either one fixes the 
problem.

> Did you link the dwt.res file?
>     buildflags+= -L/rc:..\dwt

No, see above about knowing. I added the dwt.res file from dwt-samples 
to my projects root folder and added -L/rc:dwt to buildflags. I didn't 
get any warnings/errors during build, but when the subsystem was set to 
console, and running the application I got some strange text to the console:

CreateActCtx failed, hence theme support will not be available
Please check for:
  - missing link option -L/su:windows:5 or -L/su:console:5
  - missing link option -L/rc:dwt
  - resource file 'dwt.res' was not accessible by linker
: An attempt to set the process default activation context failed 
because the process default activation context was already set.

It was nice to learn something new today. DWT seems to be in a pretty 
good shape. :)

O.


More information about the Digitalmars-d-dwt mailing list