Click here to Skip to main content
15,911,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: RtlInitUnicodeString Pin
David Crow17-Aug-08 16:13
David Crow17-Aug-08 16:13 
AnswerRe: RtlInitUnicodeString Pin
Hamid_RT18-Aug-08 5:12
Hamid_RT18-Aug-08 5:12 
Questionhow to extract "versioninfo" from sourcecode? Pin
rolfhorror17-Aug-08 2:28
rolfhorror17-Aug-08 2:28 
AnswerRe: how to extract "versioninfo" from sourcecode? Pin
Ștefan-Mihai MOGA17-Aug-08 2:44
professionalȘtefan-Mihai MOGA17-Aug-08 2:44 
GeneralRe: how to extract "versioninfo" from sourcecode? Pin
rolfhorror17-Aug-08 6:40
rolfhorror17-Aug-08 6:40 
QuestionVC++,how to expnding certain node in tree control Pin
akira3216-Aug-08 22:43
akira3216-Aug-08 22:43 
AnswerRe: VC++,how to expnding certain node in tree control [modified] Pin
Cliff Hatch17-Aug-08 0:43
Cliff Hatch17-Aug-08 0:43 
Questionmacro function compiles error,can anybody explain why?3x! Pin
joypain16-Aug-08 19:23
joypain16-Aug-08 19:23 
Hi,guys,I did a test on a macro function code, and compiled it in VC6.0,
but the compiler reported an error:
"D:\vc project\testmacro.c(7) : error C2105: '--' needs l-value"
Would someone explain why line 7 reports an error ,but line 6 doesnt't?
3x! Smile | :)
Source code is as follows:
#include "stdio.h"

#define ABSOLUTE(a) (((a) > 0) ? (a) : (-a)) /* Get absolute value */

void main()
{
    int a = -1;
    int c = ABSOLUTE(1); //line 6 
    int b = ABSOLUTE(-1); //line 7
}

AnswerRe: macro function compiles error,can anybody explain why?3x! Pin
Humayun Kabir Hemoo16-Aug-08 19:45
Humayun Kabir Hemoo16-Aug-08 19:45 
GeneralRe: macro function compiles error,can anybody explain why?3x! Pin
super_ttd17-Aug-08 5:34
super_ttd17-Aug-08 5:34 
AnswerRe: macro function compiles error,can anybody explain why?3x! Pin
Karthik Kalyanasundaram16-Aug-08 22:25
Karthik Kalyanasundaram16-Aug-08 22:25 
AnswerRe: macro function compiles error,can anybody explain why?3x! Pin
Cedric Moonen16-Aug-08 23:11
Cedric Moonen16-Aug-08 23:11 
GeneralRe: macro function compiles error,can anybody explain why?3x! Pin
joypain17-Aug-08 7:17
joypain17-Aug-08 7:17 
QuestionOpening External Programs Pin
C# Beginner Nick16-Aug-08 15:41
C# Beginner Nick16-Aug-08 15:41 
AnswerRe: Opening External Programs Pin
David Crow16-Aug-08 15:52
David Crow16-Aug-08 15:52 
GeneralRe: Opening External Programs Pin
C# Beginner Nick16-Aug-08 16:58
C# Beginner Nick16-Aug-08 16:58 
GeneralRe: Opening External Programs Pin
Cedric Moonen16-Aug-08 21:25
Cedric Moonen16-Aug-08 21:25 
QuestionRe: Opening External Programs Pin
David Crow17-Aug-08 15:12
David Crow17-Aug-08 15:12 
AnswerRe: Opening External Programs Pin
Mark Salsbery18-Aug-08 8:32
Mark Salsbery18-Aug-08 8:32 
QuestionFind the SW_XXX State from within an App. Pin
Bram van Kampen16-Aug-08 12:54
Bram van Kampen16-Aug-08 12:54 
AnswerRe: Find the SW_XXX State from within an App. Pin
Mark Salsbery16-Aug-08 14:21
Mark Salsbery16-Aug-08 14:21 
QuestionRe: Find the SW_XXX State from within an App. Pin
David Crow16-Aug-08 15:54
David Crow16-Aug-08 15:54 
AnswerRe: Find the SW_XXX State from within an App. Pin
Bram van Kampen17-Aug-08 9:15
Bram van Kampen17-Aug-08 9:15 
Questionplaysound asynchronously article Pin
simon alec smith16-Aug-08 12:26
simon alec smith16-Aug-08 12:26 
AnswerRe: playsound asynchronously article Pin
Dr. Emmett Brown16-Aug-08 14:49
Dr. Emmett Brown16-Aug-08 14:49 

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.