Click here to Skip to main content
15,901,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralContext menu on ActiveX control Pin
Ed K12-Aug-03 3:40
Ed K12-Aug-03 3:40 
GeneralI need help in timers or conversions Pin
Snyp12-Aug-03 3:37
Snyp12-Aug-03 3:37 
GeneralRe: I need help in timers or conversions Pin
David Crow12-Aug-03 3:48
David Crow12-Aug-03 3:48 
GeneralRe: I need help in timers or conversions Pin
Anonymous12-Aug-03 4:24
Anonymous12-Aug-03 4:24 
GeneralRe: I need help in timers or conversions Pin
Snyp12-Aug-03 6:28
Snyp12-Aug-03 6:28 
GeneralRe: I need help in timers or conversions Pin
PremL12-Aug-03 5:26
PremL12-Aug-03 5:26 
GeneralRe: functions Pin
Maximilien12-Aug-03 3:38
Maximilien12-Aug-03 3:38 
GeneralRe: functions Pin
David Crow12-Aug-03 3:46
David Crow12-Aug-03 3:46 
lano1 wrote:
d = 20.4;

'd' is undeclared, unless it's a global.

lano1 wrote:
if(*a = 0)
*a += 1;


This is nonsense. What are you trying to do?

lano1 wrote:
but the pointers are confusing

'b' is the only pointer that is being used. To reference the value being pointed to by 'b', use *b.

If an 'if' statement is supposed to execute more than one statement upon TRUE evaluation of the condition, curly braces MUST be used. Otherwise, the second statement and beyond are executed unconditionally. For example:

if (condition)
do one thing     // only happens if condition evaluates to TRUE
do another thing // always happens
do some more     // ditto


What was actually meant was:

if (condition)
{
do one thing     // only happens if condition evaluates to TRUE
do another thing // ditto
do some more     // ditto
}


lano1 wrote:
And also should void be removed becuase the function is supposed to return a value.

Void functions cannot return values.
GeneralMDI Frame Title Pin
Simon Steele12-Aug-03 3:07
Simon Steele12-Aug-03 3:07 
GeneralRe: MDI Frame Title Pin
G. Steudtel12-Aug-03 5:59
G. Steudtel12-Aug-03 5:59 
GeneralCPropertySheet woes Pin
DodgyG12-Aug-03 2:59
DodgyG12-Aug-03 2:59 
GeneralRe: CPropertySheet woes Pin
David Crow12-Aug-03 3:11
David Crow12-Aug-03 3:11 
GeneralRe: CPropertySheet woes Pin
DodgyG12-Aug-03 3:13
DodgyG12-Aug-03 3:13 
GeneralRe: CPropertySheet woes Pin
David Crow12-Aug-03 3:37
David Crow12-Aug-03 3:37 
QuestionHow can I make Installer for my Offfice2K COM Addin ? Pin
Atif Bashir12-Aug-03 2:41
Atif Bashir12-Aug-03 2:41 
GeneralURGENT! Problem with executing batch file Pin
Da_Hero12-Aug-03 2:35
professionalDa_Hero12-Aug-03 2:35 
GeneralRe: URGENT! Problem with executing batch file Pin
David Crow12-Aug-03 3:05
David Crow12-Aug-03 3:05 
GeneralRe: URGENT! Problem with executing batch file Pin
Da_Hero14-Aug-03 5:03
professionalDa_Hero14-Aug-03 5:03 
GeneralPath conversion Pin
Ph@ntom12-Aug-03 2:17
Ph@ntom12-Aug-03 2:17 
GeneralRe: Path conversion Pin
HPSI12-Aug-03 2:25
HPSI12-Aug-03 2:25 
GeneralPost Script Efficency Pin
Abubakar Siddque12-Aug-03 1:57
Abubakar Siddque12-Aug-03 1:57 
GeneralRe: Post Script Efficency Pin
Maximilien12-Aug-03 2:15
Maximilien12-Aug-03 2:15 
GeneralRe: Post Script Efficency Pin
Abubakar Siddque12-Aug-03 3:50
Abubakar Siddque12-Aug-03 3:50 
GeneralRe: Post Script Efficency Pin
Larry J. Siddens12-Aug-03 3:09
Larry J. Siddens12-Aug-03 3:09 
GeneralAcceleration Key Pin
s o v a n n12-Aug-03 1:43
s o v a n n12-Aug-03 1:43 

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.