I have a global unique value, which I wish to use it across within a exe and different DLLs.
For any project which wish to use it, they may just include defs.h
I was wondering, should I declare it as
// defs.h
const UINT UNIQUE_MESSAGE =
RegisterWindowMessage(_T("UNIQUE_MESSAGE-{E5476FDB-3E7E-4113-8132-1D87709BC46C}"));
OR
// defs.h
const static UINT UNIQUE_MESSAGE =
RegisterWindowMessage(_T("UNIQUE_MESSAGE-{E5476FDB-3E7E-4113-8132-1D87709BC46C}"));
Currently, I do not find any different from code consumer point of view. Is there any catch behind? Should I use static
or not?