I.T. Discussion Community!
-Collapse +Expand
C++
Search C++ Group:

Advanced
-Collapse +Expand C++ To/From
To/FromCODEGuides
-Collapse +Expand C++ Study Test
PRESTWOODCERTIFIED
-Collapse +Expand C++ Store
PRESTWOODSTORE
   ► KBProgrammingC++C++/CLIC++/CLI Lang...   Print This     

C++ KB: C++/CLI Language Basics Topic



16 Articles Found in the C++/CLI Language Basics Topic 

  KB Article    

Mike Prestwood
1. C++/CLI Assignment (=)

C++/CLI uses = for it's assignment operator.

9 years ago

Code
Nothing New Since Your Last Visit
5775
Hits

C++

Mike Prestwood
2. C++/CLI Case Sensitivity (Yes)

Same as standard C++. Both standard C++ and C++/CLI are case sensitive. In C and C++ commands and variable names are case sensitive.

9 years ago

Code
Nothing New Since Your Last Visit
5290
Hits

C++

Mike Prestwood
3. C++/CLI Code Blocks ({ })

Same as standard C++. For C++, Java, JavaScript, and PHP, I prefer to put the first { at the end of the first line of the code block as in the example above because I see more C++ formatted that way.

9 years ago
(1 Comments , last by John.S10 )

Code
Nothing New Since Your Last Visit
5054
Hits

C++

Mike Prestwood
4. C++/CLI Comments (// or /* ... */)

Commenting Code
Same as standard C++. C++ uses "//" for a single line comment and /* */ for a multiple line comment.

9 years ago
(1 Comments , last by Caesar.A )

Code
Nothing New Since Your Last Visit
5084
Hits

C++

Mike Prestwood
5. C++/CLI Comparison Operators (==, !=)

Same as standard C++.

9 years ago

Code
Nothing New Since Your Last Visit
6500
Hits

C++

Mike Prestwood
6. C++/CLI Constants (const or literal)

C++/CLI supports the const and static const keywords of standard C++ as well as the new literal keyword. A literal is equivalent to static const in standard C++ and Microsoft's documentation recommends to replace static const with the new literal keyword because a leteral is available in metadata; a static const variable is not available in metadata to other compilers.

You can use static const within the class declaration or locally within a method. However, literal is only valid in the class declaration section and const is only valid within a method.

9 years ago, and updated 9 years ago
(1 Comments , last by Uwais.Q )

Code
Nothing New Since Your Last Visit  
16104
Hits

C++

Mike Prestwood
7. C++/CLI Deployment Overview

C++/CLI projects require the .Net framework and any additional dependencies you've added such as Crystal Reports.

In Visual Studio.Net, you can create a Setup and Deployment project by using any of the templates available on the New Project dialog (Other Project Types).

To create a ClickOnce deploy package, search the internet for mage.exe and mageui.exe.

In addition, you can use any of the many free and commercially available installation packages.

9 years ago

Code
Nothing New Since Your Last Visit
5871
Hits

C++

Mike Prestwood
8. C++/CLI Development Tools

The only development tool I know that supports C++/CLI at this time is Visual Studio.Net. C++/CLI was introduced in VS.Net 2005 and continued in VS.Net 2008.

9 years ago

Code
Nothing New Since Your Last Visit
4519
Hits

C++

Mike Prestwood
9. C++/CLI End of Statement (;)

Same as standard C++. C++ uses a semicolon ";" as an end of statement specifier and you can put multiple statements on a single line of code if you wish as well as split a single statement into two or more code lines.

9 years ago, and updated 9 years ago

Code
Nothing New Since Your Last Visit
5018
Hits

C++

Mike Prestwood
10. C++/CLI File Extensions (.CPP and .H)

The C++/CLI standard file extensions are the same as standard C++. Important C++ file extensions:

  • .CPP = C++ Source file. Your startup source file will have a main() routine.
  • .C = C source file (sometimes used for C++ source files too).
  • .H = Header include file.

Some important Visual C++ file extensions:

9 years ago, and updated 9 years ago

Code
Nothing New Since Your Last Visit
5363
Hits

C++

Mike Prestwood
11. C++/CLI If Statement (if..else if..else)

Same as standard C.

9 years ago
(2 Comments , last by joswin.m )

Code
Nothing New Since Your Last Visit
8107
Hits

C++

Mike Prestwood
12. C++/CLI Inlining (Automatic)

In C++/CLI, inlining is automatically done for you by the JIT compiler for all languages and in general leads to faster code for all programmers whether they are aware of inlining or not.

9 years ago

Code
Nothing New Since Your Last Visit
5871
Hits

C++

Mike Prestwood
13. C++/CLI Literals (qoute)

Same as standard C++. Literals are quoted as in "Prestwood". If you need to embed a quote use a slash in front of the quote as in \"

9 years ago, and updated 9 years ago

Code
Nothing New Since Your Last Visit
7488
Hits

C++

Mike Prestwood
14. C++/CLI Logical Operators

Same as C++ and Java. C# logical operators:

& and, as in this and that No Short Circuit
&& and, as in this and that short circuits
| or, as in this or that No Short Circuit
|| or, as in this or that short circuits
! Not, as in Not This
^ either or, as in this or that but not both

9 years ago

Code
Nothing New Since Your Last Visit
7958
Hits

C++

Mike Prestwood
15. C++/CLI Overview and History

Language Overview: A.k.a. C++.Net. Microsoft's C++ language for .Net Framework development.

Language History: C++/CLI was introducted with VS.Net 2005 and replaced Managed C++ (introduced with VS.Net 2002). C++/CLI was standardized by ECMA-372.

Target Platforms: C++/CLI is suitable for creating .Net Framework applications.

9 years ago

Code
Nothing New Since Your Last Visit
5036
Hits

C++

Mike Prestwood
16. C++/CLI String Concatenation (+)

C++/CLI performs implicit casting of numbers to strings. To concatenate two strings, a string to an integer, or a string to a floating point number, use the + operator. For example, to convert a floating point number to a string just concatenate an empty string to the number as in "" + 3.2.

9 years ago

Code
Nothing New Since Your Last Visit  
9178
Hits

C++

Icon Legend:
Recent or not:
- Recent activity (within last two weeks).
- No activity last two weeks.
 Since your last logged visit:
- New to you or updated since your last visit (sign in now to activate).
- NOT new to you since your last visit (sign in now to activate).

New C++ Knowledge Base Post...

Share your knowledge with the WORLD! In addition to adding comments to existing posts, you can post knowledge you've acquired. We welcome full articles (intro with screen shots), general posts (shorter), and tidbits (tips, FAQs, definitions, etc.).

Post New...

Tidbit Post: Short Flashcard FAQ Definition Quick Tip Code Snippet
Longer Post: Full Article General Post File Link Error News
Other: Blog Topic
Or, if YOU have a question...
  C++ Message Board
-
   Contact Us!
 
PrestwoodBoards.com was developed and is maintainted by me. Do you have a question or suggestion? Do you see a problem? Contact me now. My goal is to build an ad-free and spam-free source of I.T. information with many contributers (ok to promote your website/company in your bio). Yes, my company Prestwood IT Solutions is mentioned in my bio which shows with every post, but you can contribute and promote your pet project too!

2,197 People Online Now!!  
Sign In to see who's online now!  Not a member? Join now. It's free!
Show more stats...


©1995-2018 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech