Click here to Skip to main content
16,006,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDisable Item Menu Pin
Cedric Moonen18-Sep-03 23:56
Cedric Moonen18-Sep-03 23:56 
GeneralRe: Disable Item Menu Pin
Rickard Andersson2019-Sep-03 2:25
Rickard Andersson2019-Sep-03 2:25 
GeneralRe: Disable Item Menu Pin
Cedric Moonen19-Sep-03 2:48
Cedric Moonen19-Sep-03 2:48 
GeneralRe: Disable Item Menu Pin
User 665819-Sep-03 3:29
User 665819-Sep-03 3:29 
GeneralRe: Disable Item Menu Pin
Cedric Moonen19-Sep-03 4:08
Cedric Moonen19-Sep-03 4:08 
GeneralFunctions Pin
bhangie18-Sep-03 23:36
bhangie18-Sep-03 23:36 
GeneralRe: Functions Pin
User 665819-Sep-03 0:54
User 665819-Sep-03 0:54 
GeneralRe: Functions Pin
Larry J. Siddens19-Sep-03 2:44
Larry J. Siddens19-Sep-03 2:44 
Some comments:

If you don't want a to change a variable, don't pass a reference to it. You can do something like this:

void Calculate( const int a, int c, float* f );

Here I'm not passing any references and you cannot change 'a' within Calculate. I can change the value of 'c' within the function, except the variable will retain its original value upon return. Now you maybe asking why I changed the parameter order. Mainly preferrence. I like to have the same types grouped together.

Yes, you can initialize 'a' just like you did with float. The variable 'a' at the point you placed it is not a constant value.

If you have anymore questions, just ask.



Larry J. Siddens
Cornerstone Communications

TAME THE DOCUMENT MONSTER
www.unifier.biz



GeneralVisual Studio and Custom File Types Pin
Dangleberry18-Sep-03 23:25
sussDangleberry18-Sep-03 23:25 
GeneralRe: Visual Studio and Custom File Types Pin
Dangleberry19-Sep-03 1:12
sussDangleberry19-Sep-03 1:12 
GeneralVisual Studio 6 : bsc file Pin
Jerome Conus18-Sep-03 22:42
Jerome Conus18-Sep-03 22:42 
GeneralRe: Visual Studio 6 : bsc file Pin
David Crow19-Sep-03 2:09
David Crow19-Sep-03 2:09 
Generalhelp with while and for. Pin
kh.pakdaman18-Sep-03 20:35
kh.pakdaman18-Sep-03 20:35 
GeneralRe: help with while and for. Pin
Michael P Butler18-Sep-03 22:25
Michael P Butler18-Sep-03 22:25 
GeneralRe: help with while and for. Pin
RChin18-Sep-03 23:06
RChin18-Sep-03 23:06 
GeneralRe: help with while and for. Pin
Larry J. Siddens19-Sep-03 2:59
Larry J. Siddens19-Sep-03 2:59 
GeneralRe: help with while and for. Pin
bhangie19-Sep-03 4:27
bhangie19-Sep-03 4:27 
GeneralCatch message from the balloon help Pin
Eugene Pustovoyt18-Sep-03 20:12
Eugene Pustovoyt18-Sep-03 20:12 
Generalproblem with Dialog based application Pin
Ph@ntom18-Sep-03 20:08
Ph@ntom18-Sep-03 20:08 
GeneralProfUIS library Pin
Haldir18-Sep-03 16:39
Haldir18-Sep-03 16:39 
GeneralRe: ProfUIS library Pin
Michael P Butler18-Sep-03 22:28
Michael P Butler18-Sep-03 22:28 
GeneralUsing SDI with Formviews Pin
Mike Danberg18-Sep-03 15:44
Mike Danberg18-Sep-03 15:44 
GeneralRe: Using SDI with Formviews Pin
Steve S18-Sep-03 21:47
Steve S18-Sep-03 21:47 
GeneralRe: Using SDI with Formviews Pin
Michael P Butler18-Sep-03 22:35
Michael P Butler18-Sep-03 22:35 
GeneralRe: Using SDI with Formviews Pin
Mike Danberg19-Sep-03 15:59
Mike Danberg19-Sep-03 15:59 

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.