How to Use ROOT under Windows NT ?
- In order to not show console window at startup, add to the link options, as, i.e :
/SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup
but only when creating executable (not DLLs or libs).LDOPT = -opt:ref /SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup
- To add win32 icon(s) to the executable, add this to makefile : with yourapp.rc containing :
... YOURAPPRC := yourapp.rc YOURAPPRES := yourapp.res ... $(YOURAPPRES): $(YOURAPPRC) rc -DBUILDNUMBER=0 -r -fo $(YOURAPPRES) $(YOURAPPRC) $(YOURAPP) : $(YOURAPPO) $(YOURAPPRES) $(LD) $(LDFLAGS) $^ $(GLIBS) $(OutPutOpt)$@ @echo "$@ done"
This allows to associate icon to executable, visible in windows explorer, and when creating shortcut on desktop.#include <winver.h> YOURAPP_ICON ICON "youricon.ico" YOURAPP_ICON2 ICON "youricon2.ico" YOURAPP_ICON3 ICON "youricon3.ico" ...
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/