CSC300 Visual Programming Dr. Craig Reinhart. Objectives Teach the basics of C++ –You won’t be an expert but hopefully a very good novice –GUI development.

Slides:



Advertisements
Similar presentations
Introduction to .NET Framework
Advertisements

Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
History of.Net Introduced by Microsoft Earlier technology was VC++ and VB VC++ comes with so many library and VB was so easy to use and not flexible to.
.NET Framework Overview Pingping Ma Nov 16 th, 2006.
.NET Technology.
Programming Our First Java Program Yingcai Xiao. What to Do Set up for Java Programming Write our first Java Program with IDE Write our first Java Program.
Visual C++.NET Hong Li. Introduction to.NET Microsoft announced in June 2000 Microsoft announced in June 2000 A new software –development model that allows.
Tahir Nawaz Visual Programming C# Week 2. What is C#? C# (pronounced "C sharp") is an object- oriented language that is used to build applications for.
Platforms and tools for Web Services and Mobile Applications Introduction to C# Bent Thomsen Aalborg University 3rd and 4th of June 2004.
Object Oriented Software Development 1. Introduction to C# and Visual Studio.
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
CIS205 Part 1 dbg --- Getting Acquainted with Visual Studio.NET and C#
Java Introduction 劉登榮 Deng-Rung Liu 87/7/15. Outline 4 History 4 Why Java? 4 Java Concept 4 Java in Real World 4 Language Overview 4 Java Performance!?
Microsoft Visual Basic 2012 CHAPTER ONE Introduction to Visual Basic 2012 Programming.
Microsoft Visual Basic 2005 CHAPTER 1 Introduction to Visual Basic 2005 Programming.
A Free sample background from © 2001 By Default!Slide 1.NET Overview BY: Pinkesh Desai.
Introduction 01_intro.ppt
ISYS 350 Business Application Development
CSCI 3327 Visual Basic Chapter 1: Introduction to Visual Basic
CSCI 224 Introduction to Java Programming. Course Objectives  Learn the Java programming language: Syntax, Idioms Patterns, Styles  Become comfortable.
M1G Introduction to Programming 2 4. Enhancing a class:Room.
Introduction to .Net Framework
ISYS 512 Business Application Design and Development with.Net David Chao.
© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
Architecture of.NET Framework .NET Framework ٭ Microsoft.NET (pronounced “dot net”) is a software component that runs on the Windows operating.
Module 1: Introduction to C# Module 2: Variables and Data Types
 2002 Prentice Hall. All rights reserved. 1 Introduction to Visual Basic.NET,.NET Framework and Visual Studio.NET Outline 1.7Introduction to Visual Basic.NET.
Session 1 - Introduction and Data Access Layer
Meir Botner David Ben-David. Project Goal Build a messenger that allows a customer to communicate with a service provider for a fee.
C# A 1 CSC 298 Introduction to C#. C# A 2 What to expect in this class  Background: knowledge of an object oriented language of the C++, Java, … family.
11 Getting Started with C# Chapter Objectives You will be able to: 1. Say in general terms how C# differs from C. 2. Create, compile, and run a.
Lecture Set 1 Part B: Understanding Visual Studio and.NET – Structure and Terminology 1/16/ :04 PM.
CSC 494/594 C# and ASP.NET Programming. C# 2012 C# Object-oriented language with syntax that is similar to Java.
All 300/400 Level CS Major Courses Tutoring Location: SEC 3433 Sign up or walk-in Introduction2-1.
Introduction .NET Framework
Lecture 1 Programming in C# Introducing C# Writing a C# Program.
Computing with C# and the.NET Framework Chapter 1 An Introduction to Computing with C# ©2003, 2011 Art Gittleman.
1 Chapter 2 First Java Programs Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
ISYS 573 Special Topic – VB.Net David Chao. The History of VB Early 1960s:BASIC-Beginner’s All-Purpose Symbolic Instruction Code –Teaching –Simple syntax,
Programming in C#. I. Introduction C# (or C-Sharp) is a programming language. C# is used to write software that runs on the.NET Framework. Although C#
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
ISYS 812 Business Software Development David Chao.
Languages and IDE (Integrated Development Environment)
ISYS 350 Business Application Development David Chao.
Getting started with Programming using IDE. JAVA JAVA IS A PROGRAMMING LANGUAGE AND A PLATFORM. IT CAN BE USED TO DELIVER AND RUN HIGHLY INTERACTIVE DYNAMIC.
Intro to dot Net Dr. John Abraham UTPA CSCI 3327.
PRIOR TO WEB SERVICES THE OTHER TECHNOLOGIES ARE:.
Chapters 2 & 3. .NET Software development model that allows applications created in disparate programming languages to communicate Universal data access.
Common Language Runtime Introduction  The common language runtime is one of the most essential component of the.Net Framework.  It acts.
1st ACM meeting next Tuesday, Sep 3rd at 5:15 in SERC Introduction2-1.
INTRODUCTION CHAPTER #1 Visual Basic.NET. VB.Net General features It is an object oriented language  In the past VB had objects but focus was not placed.
Text Introduction to.NET Framework. CONFIDENTIAL Agenda .NET Training – Purpose  What is.NET?  Why.NET?  Advantages  Architecture  Components: CLR,
Lecture Set 1 Part B: Understanding Visual Studio and.NET – Structure and Terminology 1/16/ :04 PM.
Sung-Dong Kim Dept. of Computer Engineering, Hansung University Chapter 3 Programming Tools.
Microsoft Visual Basic 2015 CHAPTER ONE Introduction to Visual Basic 2015 Programming.
Programming 2 Intro to Java Machine code Assembly languages Fortran Basic Pascal Scheme CC++ Java LISP Smalltalk Smalltalk-80.
A Detailed Introduction To Visual Studio.NET CRB Tech ReviewsCRB Tech Reviews introduces you to the world of Visual.
Computer System Structures
Introduction to Visual Basic. NET,. NET Framework and Visual Studio
Introduction to .NET framework
Introduction to Visual Basic 2008 Programming
Microprocessor and Assembly Language
C# and the .NET Framework
Introduction to .NET Framework Ch2 – Deitel’s Book
CIS16 Application Development – Programming with Visual Basic
Introduction to .NET By : Mr. V. D. Panchal Content :
Assembly Language for Intel-Based Computers
.Net Framework Details Imran Rashid CTO at ManiWeber Technologies.
(Computer fundamental Lab)
C# and ASP.NET Programming
Presentation transcript:

CSC300 Visual Programming Dr. Craig Reinhart

Objectives Teach the basics of C++ –You won’t be an expert but hopefully a very good novice –GUI development Lots of aspects to this (similar to Swing in Java)

Introduction to Visual C++ Chapter 1

The.NET Framework The.NET framework is part of the Windows® operating system Consists of –Common Language Runtime environment –.NET Framework libraries Programming language agnostic –C++, C#, Visual Basic We will be using C++

C++ in Visual Studio 2005 Two modes –Native – programs run directly on the CPU Microsoft Foundation Classes (object oriented) Windows API (more like C than C++) Applications are unmanaged (programmer responsible for dynamic memory deallocation) –CLR – programs run in a virtual environment (like Java) Windows Forms from the.NET framework Applications are managed (garbage collector) We will look at all but, realistically it won’t make a world of difference so our concentration will be on MFC (object oriented)

Common Language Runtime Implements a standard known as “C++/CLI” –C++ Common Language Infrastructure –This is similar to the Java virtual machine –“standard” means Programs can easily implemented making C++ programs portable across architectures and operating systems Programs of different languages (C++, C#, VB) can be easily combined into a single application Applications can exercise a high degree of security Microsoft C++, C#, and VB programs compile into MicroSoft Intermediate Language (MSIL) –Similar to Java byte code

Lay of the Land Hardware Operating System Native C++.NET framework Managed C++ MFCCLR Native C++

Windows (visual) programming Programs are typically (should be!) divided into two parts –The Graphical User Interface (GUI) You will get lots of help from the Visual Studio 2005 development environment with this part –The business logic You’ll have to write this part yourself Why should we divide a program like this? –Because doing so allows us to change the GUI without changing the business logic (portability)

C++ Looks syntactically similar to Java –This can be either good or bad ISO/IEC standard defines C++ –If you adhere to the standard your code will compile on any compiler –In general, your business logic should adhere to the standard There is no generally accepted GUI standard –There are some cross platform APIs (OPENGL, JUCE, FTK, others) –C++/CLI extends the ISO standard to include support for the.NET framework –MFC is an add-on library and therefore not standard

Two user interface modes of C++ Console applications –These are simple command line UI applications –Concentration is on the business logic –Smaller, faster, easy to write –Good for developing algorithms –Typically single threaded, deterministic, synchronous execution GUI applications –More or less the opposite of the above

Visual Studio 2005 Integrated Development Environment –Similar (in function) to Eclipse or NetBeans for Java –Unlike Java (Swing, AWT) it’s virtually impossible to develop a C++ GUI based application without an IDE –Editor, compiler, linker, librarian, debugger, source code repository, and more… I can supply you with a copy of Visual Studio 2005

Visual Studio 2005 notes Object (.OBJ) files have nothing to do with object oriented programming Visual Studio 2005 is not backwards compatible with previous versions of Visual Studio (2003, 2002,.NET, …) When you create your projects pay very close attention to what you are doing –If you make a mistake you will have to start over – it’s virtually impossible [for a beginner] to change some things

Let’s try it Console applications (pages 13 – 27) –Native mode, pre-defined version –Native mode, programmer-defined version (empty project) –CLR mode, pre-defined version GUI applications (pages 28 – 36) –Native mode, MFC –Managed mode, CLR

Homework assignment Install Visual Studio 2005 on your personal computer Recreate all projects from pages 13 – 36 on your computer Turn in a [short] write-up describing the experiences including –Failures –Successes –Unresolved issues –Resolved issues Due beginning of next class meeting