Click here to Skip to main content
15,922,427 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help about GetBitmapBits!!! Pin
Christian Graus30-Oct-03 16:18
protectorChristian Graus30-Oct-03 16:18 
GeneralRe: Help about GetBitmapBits!!! Pin
twing30-Oct-03 16:53
twing30-Oct-03 16:53 
GeneralRe: Help about GetBitmapBits!!! Pin
Christian Graus30-Oct-03 17:02
protectorChristian Graus30-Oct-03 17:02 
GeneralRe: Help about GetBitmapBits!!! Pin
twing30-Oct-03 17:25
twing30-Oct-03 17:25 
GeneralRe: Help about GetBitmapBits!!! Pin
Christian Graus30-Oct-03 17:27
protectorChristian Graus30-Oct-03 17:27 
QuestionHow to get network interface name of local machine? Pin
George230-Oct-03 15:15
George230-Oct-03 15:15 
AnswerRe: How to get network interface name of local machine? Pin
Alexander M.,30-Oct-03 22:15
Alexander M.,30-Oct-03 22:15 
QuestionDoes anyone have spare time and want to help me? Pin
Snyp30-Oct-03 14:43
Snyp30-Oct-03 14:43 
AnswerRe: Does anyone have spare time and want to help me? Pin
kotbegemot31-Oct-03 1:24
kotbegemot31-Oct-03 1:24 
AnswerRe: Does anyone have spare time and want to help me? Pin
Anonymous24-Dec-04 19:58
Anonymous24-Dec-04 19:58 
GeneralRandom number generator Pin
Snyp30-Oct-03 14:36
Snyp30-Oct-03 14:36 
GeneralRe: Random number generator Pin
alex.barylski30-Oct-03 15:51
alex.barylski30-Oct-03 15:51 
GeneralRe: Random number generator Pin
ZoogieZork30-Oct-03 15:54
ZoogieZork30-Oct-03 15:54 
GeneralRe: Random number generator Pin
Mike Dimmick31-Oct-03 6:14
Mike Dimmick31-Oct-03 6:14 
QuestionHow to create a slider control Pin
vhunghl30-Oct-03 14:07
vhunghl30-Oct-03 14:07 
AnswerRe: How to create a slider control Pin
vcplusplus30-Oct-03 14:16
vcplusplus30-Oct-03 14:16 
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 

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.