Click here to Skip to main content
15,892,927 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAuditing file permissions Pin
Sam Hobbs9-Mar-07 14:07
Sam Hobbs9-Mar-07 14:07 
QuestionInvoke parent of closed modeles child [modified] Pin
tiflo9-Mar-07 12:06
tiflo9-Mar-07 12:06 
AnswerRe: Invoke parent of closed modeles child Pin
Hamid_RT9-Mar-07 18:44
Hamid_RT9-Mar-07 18:44 
GeneralRe: Invoke parent of closed modeles child Pin
tiflo10-Mar-07 1:09
tiflo10-Mar-07 1:09 
GeneralRe: Strange private boolean member behaviour inside a public function (long question) Pin
Mark Salsbery9-Mar-07 11:40
Mark Salsbery9-Mar-07 11:40 
GeneralRe: Strange private boolean member behaviour inside a public function (long question) Pin
Joan M10-Mar-07 3:52
professionalJoan M10-Mar-07 3:52 
QuestionQuestion about accessor functions Pin
CoffeeAddict199-Mar-07 11:05
CoffeeAddict199-Mar-07 11:05 
QuestionProblem with VC++ macro expansion for byte swapping Pin
joswr1ght9-Mar-07 9:24
joswr1ght9-Mar-07 9:24 
I'm porting some code from gcc to VC++, and a macro I've used for years on gcc is giving me grief on VC++ (Visual Studio 2003).

#define swap16(x) \
({ \
    unsigned __int16 __x = (x); \
    ((unsigned __int16)( \
        (unsigned __int16)(((unsigned __int16)(__x) & (unsigned __int16)0x00ff) << 8) | \
        (unsigned __int16)(((unsigned __int16)(__x) & (unsigned __int16)0xff00) >> 8) )); \
})

int _tmain(int argc, _TCHAR* argv[])
{
	printf("%d\n", swap16(1);
	return 0;
}


This code snippet generates several syntax errors. Any suggestions on resolving this issue are most welcome.

-Josh
AnswerRe: Problem with VC++ macro expansion for byte swapping Pin
led mike9-Mar-07 9:34
led mike9-Mar-07 9:34 
QuestionRe: Problem with VC++ macro expansion for byte swapping Pin
David Crow9-Mar-07 9:55
David Crow9-Mar-07 9:55 
AnswerRe: Problem with VC++ macro expansion for byte swapping Pin
led mike9-Mar-07 10:07
led mike9-Mar-07 10:07 
AnswerRe: Problem with VC++ macro expansion for byte swapping Pin
Mark Salsbery9-Mar-07 12:29
Mark Salsbery9-Mar-07 12:29 
QuestionCPropertySheet notifications Pin
Byteman9-Mar-07 9:03
Byteman9-Mar-07 9:03 
AnswerRe: CPropertySheet notifications Pin
basementman9-Mar-07 10:00
basementman9-Mar-07 10:00 
Questioncrystal reports- setlogoninfo Pin
namratab9-Mar-07 7:28
namratab9-Mar-07 7:28 
AnswerRe: crystal reports- setlogoninfo Pin
Vinod Sankaranarayanan9-Mar-07 19:44
Vinod Sankaranarayanan9-Mar-07 19:44 
QuestionProgram configuration at start Pin
SimplCodr9-Mar-07 6:58
SimplCodr9-Mar-07 6:58 
AnswerRe: Program configuration at start Pin
Joan M9-Mar-07 7:04
professionalJoan M9-Mar-07 7:04 
GeneralRe: Program configuration at start Pin
SimplCodr9-Mar-07 7:28
SimplCodr9-Mar-07 7:28 
GeneralRe: Program configuration at start Pin
David Crow9-Mar-07 8:01
David Crow9-Mar-07 8:01 
GeneralRe: Program configuration at start Pin
SimplCodr9-Mar-07 8:09
SimplCodr9-Mar-07 8:09 
GeneralRe: Program configuration at start Pin
David Crow9-Mar-07 8:32
David Crow9-Mar-07 8:32 
GeneralRe: Program configuration at start Pin
SimplCodr9-Mar-07 8:38
SimplCodr9-Mar-07 8:38 
GeneralRe: Program configuration at start Pin
Wes Aday9-Mar-07 10:26
professionalWes Aday9-Mar-07 10:26 
GeneralRe: Program configuration at start Pin
SimplCodr9-Mar-07 12:42
SimplCodr9-Mar-07 12: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.