How to Use ROOT under Windows NT ?

  1. In order to not show console window at startup, add
    /SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup
    to the link options, as, i.e :
    LDOPT = -opt:ref /SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup
    but only when creating executable (not DLLs or libs).

  2. To add win32 icon(s) to the executable, add this to makefile :
    ...
    YOURAPPRC  := yourapp.rc  
    YOURAPPRES := yourapp.res
    ...
    $(YOURAPPRES): $(YOURAPPRC)
         rc -DBUILDNUMBER=0 -r -fo $(YOURAPPRES) $(YOURAPPRC)
         $(YOURAPP) : $(YOURAPPO) $(YOURAPPRES)
         $(LD) $(LDFLAGS) $^ $(GLIBS) $(OutPutOpt)$@
         @echo "$@ done"
    with yourapp.rc containing :
         #include <winver.h>
         YOURAPP_ICON  ICON "youricon.ico"
         YOURAPP_ICON2 ICON "youricon2.ico"
         YOURAPP_ICON3 ICON "youricon3.ico"
         ...
    This allows to associate icon to executable, visible in windows explorer, and when creating shortcut on desktop.

See also Axel Naumann's site at: http://www.muenster.de/~naumana/root.html
and François-Xavier Gentit's site at:http://gentit.home.cern.ch/gentit/rootandvisual7/