Click here to Skip to main content
16,006,845 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Defining Global Constants Pin
CPallini13-Jan-08 8:36
mveCPallini13-Jan-08 8:36 
GeneralRe: Defining Global Constants Pin
Leslie Sanford13-Jan-08 9:21
Leslie Sanford13-Jan-08 9:21 
QuestionRe: Defining Global Constants Pin
David Crow12-Jan-08 16:52
David Crow12-Jan-08 16:52 
GeneralRe: Defining Global Constants Pin
Member 75496012-Jan-08 17:27
Member 75496012-Jan-08 17:27 
GeneralRe: Defining Global Constants Pin
Leslie Sanford12-Jan-08 18:14
Leslie Sanford12-Jan-08 18:14 
GeneralRe: Defining Global Constants Pin
Member 75496013-Jan-08 5:53
Member 75496013-Jan-08 5:53 
GeneralRe: Defining Global Constants Pin
Maxwell Chen12-Jan-08 18:03
Maxwell Chen12-Jan-08 18:03 
GeneralRe: Defining Global Constants Pin
Leslie Sanford12-Jan-08 18:13
Leslie Sanford12-Jan-08 18:13 
Maxwell Chen wrote:
I prefer enum for any class scope integer constants.


Thanks!

I hadn't thought about using enums. I can use that for global scope integer constants, too:

[code]
enum SynthToolkitConstants
{
BufferSize = 16384
};
[/code]

I don't know if this is considered bad style, but it certainly solves my compiling problems.
GeneralRe: Defining Global Constants [modified] Pin
Maxwell Chen13-Jan-08 7:08
Maxwell Chen13-Jan-08 7:08 
GeneralRe: Defining Global Constants Pin
Member 75496013-Jan-08 10:40
Member 75496013-Jan-08 10:40 
GeneralRe: Defining Global Constants Pin
CPallini13-Jan-08 10:51
mveCPallini13-Jan-08 10:51 
GeneralRe: Defining Global Constants Pin
Member 75496013-Jan-08 17:18
Member 75496013-Jan-08 17:18 
GeneralRe: Defining Global Constants Pin
Maxwell Chen13-Jan-08 18:13
Maxwell Chen13-Jan-08 18:13 
GeneralRe: Defining Global Constants Pin
Maxwell Chen13-Jan-08 16:18
Maxwell Chen13-Jan-08 16:18 
GeneralRe: Defining Global Constants Pin
Member 75496013-Jan-08 17:19
Member 75496013-Jan-08 17:19 
GeneralRe: Defining Global Constants Pin
Maxwell Chen13-Jan-08 18:02
Maxwell Chen13-Jan-08 18:02 
GeneralRe: Defining Global Constants Pin
Luc Pattyn13-Jan-08 11:13
sitebuilderLuc Pattyn13-Jan-08 11:13 
GeneralOpinion about Notify Icon Pin
Richard Andrew x6412-Jan-08 11:45
professionalRichard Andrew x6412-Jan-08 11:45 
GeneralRe: Opinion about Notify Icon Pin
David Crow12-Jan-08 16:53
David Crow12-Jan-08 16:53 
GeneralRe: Opinion about Notify Icon Pin
Richard Andrew x6413-Jan-08 8:39
professionalRichard Andrew x6413-Jan-08 8:39 
GeneralRe: Opinion about Notify Icon Pin
Mark Salsbery13-Jan-08 8:16
Mark Salsbery13-Jan-08 8:16 
GeneralRe: Opinion about Notify Icon Pin
Richard Andrew x6413-Jan-08 8:40
professionalRichard Andrew x6413-Jan-08 8:40 
QuestionRe: Opinion about Notify Icon Pin
David Crow14-Jan-08 2:34
David Crow14-Jan-08 2:34 
GeneralRe: Opinion about Notify Icon Pin
Mark Salsbery14-Jan-08 6:08
Mark Salsbery14-Jan-08 6:08 
GeneralNewbie Question on C Pointers Pin
_NielsB12-Jan-08 10:55
_NielsB12-Jan-08 10:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.