Click here to Skip to main content
15,905,776 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to create a slider control Pin
vhunghl30-Oct-03 22:44
vhunghl30-Oct-03 22:44 
Questionwhy does it not happen MM_WOM_DONE? Pin
vhunghl30-Oct-03 13:25
vhunghl30-Oct-03 13:25 
Questionhow to find whether a file already exists in a folder? Pin
Deepak Samuel30-Oct-03 12:53
Deepak Samuel30-Oct-03 12:53 
AnswerRe: how to find whether a file already exists in a folder? Pin
yndfcd30-Oct-03 13:17
yndfcd30-Oct-03 13:17 
AnswerRe: how to find whether a file already exists in a folder? Pin
Jeryth30-Oct-03 13:18
Jeryth30-Oct-03 13:18 
AnswerRe: how to find whether a file already exists in a folder? Pin
vcplusplus30-Oct-03 14:26
vcplusplus30-Oct-03 14:26 
GeneralOperator Overloading Troubles Pin
Jeryth30-Oct-03 12:48
Jeryth30-Oct-03 12:48 
GeneralRe: Operator Overloading Troubles Pin
ZoogieZork30-Oct-03 13:42
ZoogieZork30-Oct-03 13:42 
Your code seems to work fine in VS.NET 2K3:
SUIT f = CLUB;
++f;
Are you trying to use the postfix version of operator++? If so, you need to add another function with a dummy int parameter:
SUIT operator++(SUIT &suit,int){
    SUIT old = suit;
    ++suit;
    switch( old )	{
    case( CLUB ):		
        return DIAMOND;
        break;
    case( DIAMOND ):
        return SPADE;
        break;
    case( SPADE ):
        return HEART;
        break;
    case( HEART ):
        return CLUB;
        break;
    default:
        return DIAMOND;
    }
}


- Mike
GeneralRe: Operator Overloading Troubles Pin
Jeryth30-Oct-03 14:11
Jeryth30-Oct-03 14:11 
GeneralRe: Operator Overloading Troubles Pin
ZoogieZork30-Oct-03 15:12
ZoogieZork30-Oct-03 15:12 
GeneralRe: Operator Overloading Troubles Pin
jason9931-Oct-03 2:00
jason9931-Oct-03 2:00 
GeneralRe: Operator Overloading Troubles Pin
Jeryth31-Oct-03 6:38
Jeryth31-Oct-03 6:38 
GeneralWindow focus problems Pin
paulb30-Oct-03 12:32
paulb30-Oct-03 12:32 
GeneralRe: Window focus problems Pin
Anthony_Yio30-Oct-03 15:33
Anthony_Yio30-Oct-03 15:33 
GeneralCTabCtrl and tooltips Pin
andyvinc30-Oct-03 9:15
andyvinc30-Oct-03 9:15 
GeneralRe: CTabCtrl and tooltips Pin
igor196030-Oct-03 9:40
igor196030-Oct-03 9:40 
Generaleditor Pin
TimWallace30-Oct-03 9:11
TimWallace30-Oct-03 9:11 
QuestionHow do you create .LIB files? Pin
mwhannan30-Oct-03 9:01
mwhannan30-Oct-03 9:01 
AnswerRe: How do you create .LIB files? Pin
Jörgen Sigvardsson30-Oct-03 9:22
Jörgen Sigvardsson30-Oct-03 9:22 
GeneralRe: How do you create .LIB files? Pin
mwhannan30-Oct-03 9:27
mwhannan30-Oct-03 9:27 
GeneralRe: How do you create .LIB files? Pin
Anthony_Yio30-Oct-03 15:35
Anthony_Yio30-Oct-03 15:35 
Generalservice DLL and application communication Pin
Kuniva30-Oct-03 8:47
Kuniva30-Oct-03 8:47 
QuestionChange edit style? Pin
Dominik Reichl30-Oct-03 7:03
Dominik Reichl30-Oct-03 7:03 
AnswerRe: Change edit style? Pin
Michael Dunn30-Oct-03 7:09
sitebuilderMichael Dunn30-Oct-03 7:09 
GeneralRe: Change edit style? Pin
Dominik Reichl30-Oct-03 9:42
Dominik Reichl30-Oct-03 9:42 

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.