Computer Store
store.prestwood.com
-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++/CLI   Print This     

C++ KB: C++/CLI Topic

C++/CLI was introducted with VS.Net 2005 and replaced Managed C++ as Microsoft's C++ language for .Net Framework development.
Topics

21 Articles Found in the C++/CLI Topic  (or one of the sub-topics in bold above)

  KB Article    

Wes Peterson
1. C++/CLI & Native Code

Can you use native code in a C++/CLI application to increase speed?

11 years ago
(13 Comments , last by Best.A )

FAQ
Nothing New Since Your Last Visit
9169
Hits

C++

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

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

Posted to KB Topic: C++/CLI Language Basics
11 years ago

Code
Nothing New Since Your Last Visit
6763
Hits

C++

Mike Prestwood
3. C++/CLI Base Class (System::Object)

In C++/CLI, the Object keyword is an alias for the base System::Object class and is the single base class all classes ultimately inherit from.

Posted to KB Topic: C++/CLI OOP
11 years ago, and updated 11 years ago

Code
Nothing New Since Your Last Visit
5891
Hits

C++

Mike Prestwood
4. C++/CLI Base Class (System::Object)

In C++/CLI, the Object keyword is an alias for the base System::Object class and is the single base class all classes ultimately inherit from.

Posted to KB Topic: C++/CLI OOP
11 years ago

Code
Nothing New Since Your Last Visit
6118
Hits

C++

Mike Prestwood
5. 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.

Posted to KB Topic: C++/CLI Language Basics
11 years ago

Code
Nothing New Since Your Last Visit
6203
Hits

C++

Mike Prestwood
6. 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.

Posted to KB Topic: C++/CLI Language Basics
11 years ago
(1 Comments , last by John.S10 )

Code
Nothing New Since Your Last Visit
6019
Hits

C++

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

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

Posted to KB Topic: C++/CLI Language Basics
11 years ago
(5 Comments , last by bainge.d )

Code
Nothing New Since Your Last Visit
6273
Hits

C++

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

Same as standard C++.

Posted to KB Topic: C++/CLI Language Basics
11 years ago

Code
Nothing New Since Your Last Visit
7750
Hits

C++

Mike Prestwood
9. 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.

Posted to KB Topic: C++/CLI Language Basics
11 years ago, and updated 11 years ago
(1 Comments , last by Uwais.Q )

Code
Nothing New Since Your Last Visit  
18442
Hits

C++

Mike Prestwood
10. 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.

Posted to KB Topic: C++/CLI Language Basics
11 years ago

Code
Nothing New Since Your Last Visit
6817
Hits

C++

Mike Prestwood
11. 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.

Posted to KB Topic: C++/CLI Language Basics
11 years ago

Code
Nothing New Since Your Last Visit
5297
Hits

C++

Mike Prestwood
12. 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.

Posted to KB Topic: C++/CLI Language Basics
11 years ago, and updated 11 years ago

Code
Nothing New Since Your Last Visit
5920
Hits

C++

Mike Prestwood
13. 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:

Posted to KB Topic: C++/CLI Language Basics
11 years ago, and updated 11 years ago

Code
Nothing New Since Your Last Visit
6317
Hits

C++

Mike Prestwood
14. C++/CLI Finalizer (~ClassName)

Unlike standard C++, C++/CLI uses the .Net garbage collector to free managed object instances. Prism does not have nor need a true destructor.

In .Net, a finalizer is used to free non-managed objects such as a file or network resource. Because you don't know when the garbage collector will call your finalizer, Microsoft recommends you implement the IDisposable interface for non-managed resources and call it's Dispose() method at the appropriate time.

Posted to KB Topic: C++/CLI OOP
11 years ago

Code
Nothing New Since Your Last Visit
10208
Hits

C++

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

Same as standard C.

Posted to KB Topic: C++/CLI Language Basics
11 years ago
(3 Comments , last by Whitney.E )

Code
Nothing New Since Your Last Visit
9424
Hits

C++

Mike Prestwood
16. 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.

Posted to KB Topic: C++/CLI Language Basics
11 years ago

Code
Nothing New Since Your Last Visit
6964
Hits

C++

Mike Prestwood
17. 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 \"

Posted to KB Topic: C++/CLI Language Basics
11 years ago, and updated 11 years ago

Code
Nothing New Since Your Last Visit
9011
Hits

C++

Mike Prestwood
18. 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

Posted to KB Topic: C++/CLI Language Basics
11 years ago

Code
Nothing New Since Your Last Visit
9442
Hits

C++

Mike Prestwood
19. 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.

Posted to KB Topic: C++/CLI Language Basics
11 years ago

Code
Nothing New Since Your Last Visit
5810
Hits

C++

Mike Prestwood
20. C++/CLI Report Tools Overview

Use any report writer you are comfortable with but Crystal Reports remains popular for Visual C++ and C++/CLI.

Posted to KB Topic: C++/CLI WinForms
11 years ago

Code
Nothing New Since Your Last Visit
6248
Hits

C++

Mike Prestwood
21. 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.

Posted to KB Topic: C++/CLI Language Basics
11 years ago

Code
Nothing New Since Your Last Visit  
10582
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


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