Click here to Skip to main content
15,888,454 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C syntax problem Pin
Albert Holguin17-Jan-12 6:50
professionalAlbert Holguin17-Jan-12 6:50 
QuestionRe: C syntax problem Pin
CPallini17-Jan-12 6:54
mveCPallini17-Jan-12 6:54 
GeneralRe: C syntax problem Pin
David Crow17-Jan-12 6:55
David Crow17-Jan-12 6:55 
GeneralRe: C syntax problem Pin
__John_26-Jan-12 4:34
__John_26-Jan-12 4:34 
QuestionProblem declaring data type Pin
marca29216-Jan-12 22:16
marca29216-Jan-12 22:16 
AnswerRe: Problem declaring data type Pin
Richard MacCutchan16-Jan-12 23:05
mveRichard MacCutchan16-Jan-12 23:05 
GeneralRe: Problem declaring data type Pin
marca29216-Jan-12 23:18
marca29216-Jan-12 23:18 
AnswerRe: Problem declaring data type Pin
Jochen Arndt16-Jan-12 23:05
professionalJochen Arndt16-Jan-12 23:05 
Enumerations did not need the typedef keyword. Use
C++
enum ProductType
{
 XX,
 YY,
 ZZ
};

You should also think about moving your common settings into those classes they are belonging to (e.g. the class that acts according to the ProductType enumeration). This is better C++ style and makes your code modules better portable to other projects.

To use such class specific enumerations from other classes, prefix them with the class name (e.g. MyClass::ProductType).

Joe
GeneralRe: Problem declaring data type Pin
marca29216-Jan-12 23:27
marca29216-Jan-12 23:27 
AnswerRe: Problem declaring data type Pin
S p k 52116-Jan-12 23:10
S p k 52116-Jan-12 23:10 
GeneralRe: Problem declaring data type Pin
marca29216-Jan-12 23:17
marca29216-Jan-12 23:17 
QuestionCreateProcess with Vista and 740 / Create Multiple Threads Pin
jkirkerx16-Jan-12 9:04
professionaljkirkerx16-Jan-12 9:04 
AnswerRe: CreateProcess with Vista and 740 / Create Multiple Threads Pin
Albert Holguin16-Jan-12 9:25
professionalAlbert Holguin16-Jan-12 9:25 
GeneralRe: CreateProcess with Vista and 740 / Create Multiple Threads Pin
jkirkerx16-Jan-12 10:15
professionaljkirkerx16-Jan-12 10:15 
GeneralRe: CreateProcess with Vista and 740 / Create Multiple Threads Pin
Albert Holguin17-Jan-12 4:00
professionalAlbert Holguin17-Jan-12 4:00 
GeneralRe: CreateProcess with Vista and 740 / Create Multiple Threads Pin
jkirkerx17-Jan-12 6:35
professionaljkirkerx17-Jan-12 6:35 
GeneralRe: CreateProcess with Vista and 740 / Create Multiple Threads Pin
Albert Holguin17-Jan-12 7:29
professionalAlbert Holguin17-Jan-12 7:29 
GeneralRe: CreateProcess with Vista and 740 / Create Multiple Threads Pin
jkirkerx17-Jan-12 10:08
professionaljkirkerx17-Jan-12 10:08 
GeneralRe: CreateProcess with Vista and 740 / Create Multiple Threads Pin
Albert Holguin17-Jan-12 11:13
professionalAlbert Holguin17-Jan-12 11:13 
QuestionConverting big integer value to string Pin
Coder Block15-Jan-12 23:22
Coder Block15-Jan-12 23:22 
AnswerRe: Converting big integer value to string Pin
Richard MacCutchan15-Jan-12 23:42
mveRichard MacCutchan15-Jan-12 23:42 
AnswerRe: Converting big integer value to string Pin
Jochen Arndt15-Jan-12 23:57
professionalJochen Arndt15-Jan-12 23:57 
AnswerRe: Converting big integer value to string Pin
CPallini16-Jan-12 2:59
mveCPallini16-Jan-12 2:59 
GeneralRe: Converting big integer value to string Pin
Albert Holguin16-Jan-12 9:25
professionalAlbert Holguin16-Jan-12 9:25 
GeneralRe: Converting big integer value to string Pin
CPallini16-Jan-12 9:37
mveCPallini16-Jan-12 9:37 

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.