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

C / C++ / MFC

 
AnswerRe: Progress indicator in dialog title Pin
Mark Salsbery4-Aug-08 7:51
Mark Salsbery4-Aug-08 7:51 
QuestionCreatefile in Vista Pin
RaymondM3-Aug-08 2:32
RaymondM3-Aug-08 2:32 
AnswerRe: Createfile in Vista Pin
Perspx3-Aug-08 2:55
Perspx3-Aug-08 2:55 
GeneralRe: Createfile in Vista Pin
RaymondM3-Aug-08 5:03
RaymondM3-Aug-08 5:03 
GeneralRe: Createfile in Vista Pin
Perspx3-Aug-08 5:26
Perspx3-Aug-08 5:26 
GeneralRe: Createfile in Vista Pin
RaymondM3-Aug-08 20:08
RaymondM3-Aug-08 20:08 
GeneralRe: Createfile in Vista Pin
nisha000003-Aug-08 23:45
nisha000003-Aug-08 23:45 
Questionenum problems with C++ Pin
quilkin3-Aug-08 1:47
quilkin3-Aug-08 1:47 
I've been using C# for the last few years but now I have to work with an embedded C++ compiler and am having problems with enum types, since they can't apparently be used in a different class.
<code>
class Message
{

public:
enum Index
{
Length,ID1,ID2,ID3,Type,From,To,SourceX,SourceY,Var,Routing,MaxIndex=255
};
....
....
....
}
...
...
...
bool Sensor::SendMessage(Message msg)
{
char message[Message.MaxIndex];
message[Message.ID1] = 'X';
...
...
}
</code>

This sort of thing works fine in C# but the C++ compiler gives an error when 'Message.MaxIndex' etc is used - it says 'type names cannot be used' (or similar depending on the compiler). Do I really have to make all my enum's global (e.g. 'Message_MaxIndex') or is there a better way?
AnswerRe: enum problems with C++ Pin
Saurabh.Garg3-Aug-08 5:32
Saurabh.Garg3-Aug-08 5:32 
Question(Default) Key duplicated in the registry Pin
hariakuthota3-Aug-08 1:46
hariakuthota3-Aug-08 1:46 
AnswerRe: (Default) Key duplicated in the registry Pin
ThatsAlok3-Aug-08 21:43
ThatsAlok3-Aug-08 21:43 
QuestionRe: (Default) Key duplicated in the registry Pin
David Crow4-Aug-08 3:22
David Crow4-Aug-08 3:22 
QuestionHow to split the monitor into different views(Screens)??? Pin
Super Hornet3-Aug-08 0:19
Super Hornet3-Aug-08 0:19 
AnswerRe: How to split the monitor into different views(Screens)??? Pin
Ștefan-Mihai MOGA3-Aug-08 2:17
professionalȘtefan-Mihai MOGA3-Aug-08 2:17 
QuestionRe: How to split the monitor into different views(Screens)??? Pin
David Crow4-Aug-08 3:33
David Crow4-Aug-08 3:33 
Questionsimple SMTP client ?? Pin
shrims4u2-Aug-08 22:33
shrims4u2-Aug-08 22:33 
AnswerRe: simple SMTP client ?? Pin
Ștefan-Mihai MOGA3-Aug-08 2:12
professionalȘtefan-Mihai MOGA3-Aug-08 2:12 
AnswerRe: simple SMTP client ?? Pin
Varghese Paul M3-Aug-08 2:23
Varghese Paul M3-Aug-08 2:23 
AnswerRe: simple SMTP client ?? Pin
ThatsAlok3-Aug-08 21:33
ThatsAlok3-Aug-08 21:33 
QuestionNetwork IP, internet IP or both? Pin
includeh102-Aug-08 17:47
includeh102-Aug-08 17:47 
AnswerRe: Network IP, internet IP or both? Pin
Eytukan3-Aug-08 1:28
Eytukan3-Aug-08 1:28 
AnswerRe: Network IP, internet IP or both? Pin
hoxsiew3-Aug-08 5:27
hoxsiew3-Aug-08 5:27 
Questionipconfig Pin
includeh102-Aug-08 14:30
includeh102-Aug-08 14:30 
AnswerRe: ipconfig Pin
David Crow2-Aug-08 16:52
David Crow2-Aug-08 16:52 
AnswerRe: ipconfig Pin
Eytukan3-Aug-08 1:32
Eytukan3-Aug-08 1:32 

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.