Quote Originally Posted by ahmd View Post
So, I was wondering, is there any way to make compiler insert a unique ID for me?
Have you considered calling the API functions that generate GUID's? That is what is usually done if a unique ID for any purpose needs to be generated.

A GUID is virtually guaranteed to be unique (virtually meaning that the chance of generating duplicate GUID's is astronomically small).

Regards,

Paul McKenzie