Click here to Skip to main content
15,902,112 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionC++/CLI -- Where to declare pre-selected list box and radio button attributes? Pin
J_E_D_I22-Feb-09 7:53
J_E_D_I22-Feb-09 7:53 
AnswerRe: C++/CLI -- Where to declare pre-selected list box and radio button attributes? Pin
Mark Salsbery22-Feb-09 18:22
Mark Salsbery22-Feb-09 18:22 
GeneralRe: C++/CLI -- Where to declare pre-selected list box and radio button attributes? Pin
J_E_D_I23-Feb-09 9:49
J_E_D_I23-Feb-09 9:49 
QuestionAVI to BMP Frames Pin
santoshsb06121-Feb-09 8:45
santoshsb06121-Feb-09 8:45 
AnswerRe: AVI to BMP Frames Pin
Mark Salsbery22-Feb-09 18:26
Mark Salsbery22-Feb-09 18:26 
QuestionFunctions Pin
Visiolizer21-Feb-09 6:54
Visiolizer21-Feb-09 6:54 
AnswerRe: Functions Pin
Eytukan22-Feb-09 19:55
Eytukan22-Feb-09 19:55 
AnswerRe: Functions Pin
Gary R. Wheeler23-Feb-09 11:53
Gary R. Wheeler23-Feb-09 11:53 
You sound like someone new to programming. A program is a set of statements, executed one after the other. Functions are a way to give a group of statements in a program a name of their own. You can then 'call' that function using the name, and the statements in the function are executed in place of the call.

Here's an example: Suppose you want to add one to a number, multiply the result by seven, and then divide that by two:
int number = 5;
number = number + 1;
number = number * 7;
number = number / 2;
Now suppose you need to do this with several numbers. Typing the same lines of code over and over seems kind of dumb, so let's turn this into a C++ function:
int ProcessNumber(int number)
{
  number = number + 1;
  number = number * 7;
  number = number / 2;
}
and you can use this function like this:
num1 = ProcessNumber(5);
num2 = ProcessNumber(34);
num3 = ProcessNumber(-9);
Basically functions are just a kind of shorthand for referring to a group of statements. Functions become really useful when you realize that they can call each other.

Software Zen: delete this;
Fold With Us![^]

GeneralRe: Functions Pin
Luc Pattyn23-Feb-09 12:30
sitebuilderLuc Pattyn23-Feb-09 12:30 
QuestionTwo problems - (a) HOW TO: pointer to an EXISTING user-defined type (b)HOW: lost form design window Pin
regnwald16-Feb-09 18:19
regnwald16-Feb-09 18:19 
AnswerRe: Two problems - (a) HOW TO: pointer to an EXISTING user-defined type (b)HOW: lost form design window Pin
N a v a n e e t h16-Feb-09 19:43
N a v a n e e t h16-Feb-09 19:43 
GeneralRe: Two problems - (a) HOW TO: pointer to an EXISTING user-defined type (b)HOW: lost form design window Pin
regnwald17-Feb-09 13:10
regnwald17-Feb-09 13:10 
GeneralRe: Two problems - (a) HOW TO: pointer to an EXISTING user-defined type (b)HOW: lost form design window Pin
N a v a n e e t h17-Feb-09 14:45
N a v a n e e t h17-Feb-09 14:45 
GeneralRe: Two problems - (a) HOW TO: pointer to an EXISTING user-defined type (b)HOW: lost form design window Pin
regnwald17-Feb-09 19:00
regnwald17-Feb-09 19:00 
QuestionMysql Remote login Pin
Thilek16-Feb-09 1:57
Thilek16-Feb-09 1:57 
AnswerRe: Mysql Remote login Pin
ky_rerun24-Feb-09 15:06
ky_rerun24-Feb-09 15:06 
QuestionToUpper and ToLower part of a string in .net C++? Pin
TabascoSauce14-Feb-09 15:28
TabascoSauce14-Feb-09 15:28 
AnswerRe: ToUpper and ToLower part of a string in .net C++? Pin
N a v a n e e t h14-Feb-09 18:18
N a v a n e e t h14-Feb-09 18:18 
GeneralRe: ToUpper and ToLower part of a string in .net C++? [modified] Pin
TabascoSauce15-Feb-09 11:41
TabascoSauce15-Feb-09 11:41 
GeneralRe: ToUpper and ToLower part of a string in .net C++? Pin
N a v a n e e t h15-Feb-09 16:32
N a v a n e e t h15-Feb-09 16:32 
GeneralRe: ToUpper and ToLower part of a string in .net C++? Pin
TabascoSauce16-Feb-09 12:25
TabascoSauce16-Feb-09 12:25 
QuestionFinding and mapping audio devices in windows Pin
gurindersm12-Feb-09 18:15
gurindersm12-Feb-09 18:15 
QuestionExposing a property of a nested class to .Net VB, C# etc. Pin
stempsoft12-Feb-09 12:23
stempsoft12-Feb-09 12:23 
AnswerRe: Exposing a property of a nested class to .Net VB, C# etc. Pin
N a v a n e e t h12-Feb-09 14:03
N a v a n e e t h12-Feb-09 14:03 
GeneralRe: Exposing a property of a nested class to .Net VB, C# etc. Pin
stempsoft12-Feb-09 15:20
stempsoft12-Feb-09 15:20 

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.