Creating a Dialog-Based Comet Windows Program Brian Levantine.

Slides:



Advertisements
Similar presentations
Prof. Yitzchak Rosenthal
Advertisements

Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Stored procedures and views You can see definitions for stored procedures and views in the demo databases but you can’t change them. For views, expand.
© Paradigm Publishing, Inc Excel 2013 Level 2 Unit 2Managing and Integrating Data and the Excel Environment Chapter 7Automating Repetitive Tasks.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Fundamentals of Programming in Visual Basic 3.1 Visual basic Objects Visual Basic programs display a Windows style screen (called a form) with boxes into.
Creating a Console Application with Visual Studio
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
CHAPTER 6 Loop Structures.
Visual Basic Fundamental Concepts. Integrated Development Enviroment Generates startup form for new project on which to place controls. Features toolbox.
05/09/ Introducing Visual Basic Sequence Programming.
Hello World In C++ and Microsoft Visual C++. Directions to begin a project 1. Go to All Programs 2. Open Visual Studio C++ 3. Click on New Project 4.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
IT 211 Project Integration and Deployment Lab #11.
IE 411/511: Visual Programming for Industrial Applications
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 2 Welcome Application Introducing the Visual Basic 2008 Express Edition IDE.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
Chapter 3: Using GUI Objects and the Visual Studio IDE.
A First Look At Microsoft Visual Basic Lesson 1. What is Microsoft Visual Basic? Microsoft Visual Basic is a software development tool, which means it.
Lecture Set 1 Part C: Understanding Visual Studio and.NET – Applications, Solutions, Projects (no longer used – embedded in Lecture Set 2A)
Integrated Development Environment (IDE)
Basic Controls & Properties Chapter 2. Overview u VB-IDE u Basic Controls  Command Button  Label  Text Box  Picture Box u Program Editor  Setting.
Introduction to the Visual Studio.NET IDE (LAB 1 )
Program Design and Coding
Microsoft Visual Basic 2012 CHAPTER THREE Program Design and Coding.
Microsoft Visual Basic 2010 CHAPTER THREE Program Design and Coding.
Tutorial 11 Five windows included in the Visual Basic Startup Screen Main Form Toolbox Project Explorer (Project) Properties.
Introduction It is developed to create software applications. It is a tool for developers of any program that uses both basic and expert settings. It.
1 Course Title: Visual Basic Programming Topic: Introduction to programming Languages (Visual basic 6.0) Lecturer: Mahamud Ahmed Jimale, BsIT, MsCs, CCNA,
Active-HDL Interfaces Debugging C Code Course 10.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files.
Working with the VB IDE. Running a Program u Clicking the”start” tool begins the program u The “break” tool pauses a program in mid-execution u The “end”
Chapter Two Creating a First Project in Visual Basic.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
Chapter 3 The Visual Basic Editor. Important Features of the VBE Alt-F11 will open the Visual Basic Editor. The Code window is to the right, Project Explorer.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 5.1 Test-Driving the Inventory Application.
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter One An Introduction to Visual Basic 2008.
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
Object-Oriented Application Development Using VB.NET 1 Chapter 2 The Visual Studio.NET Development Environment.
Chapter 3 I Need a Tour Guide (Introduction to Visual Basic 2010) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Microsoft Visual C# 2010 Fourth Edition Chapter 3 Using GUI Objects and the Visual Studio IDE.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Dive Into® Visual Basic 2010 Express
Chapter 3: I Need a Tour Guide (Introduction to Visual Basic 2012)
Visual Basic Fundamental Concepts
Chapter 2: The Visual Studio .NET Development Environment
Chapter 2 – Introduction to the Visual Studio .NET IDE
3.01 Apply Controls Associated With Visual Studio Form
1. Introduction to Visual Basic
Introduction to VB6 Week 1 3/2/2004 PPCC - Introduction to VB6
3.01 Apply Controls Associated With Visual Studio Form
Visual Basic..
Social Media And Global Computing Introduction to Visual Studio
Understanding the Visual IDE
CIS16 Application Development Programming with Visual Basic
Visual Studio.
Overview of the IDE Visual Studio .NET is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging programs (also.
Presentation transcript:

Creating a Dialog-Based Comet Windows Program Brian Levantine

Tools you’ll need Ultra Edit – Programmer’s Text Editor Microsoft Visual Studio.NET (VS) – Resource Editor/DLL Compiler Visual Studio Project Generator – DPBuild.Exe COSD – Comet Symbolic Debugger

Ultra Edit – Text Editor Configurable tools Syntax highlighting Auto-indent File compare Error location Cheap!

COSD – Symbolic Debugger Symbolic Steps through code Breakpoints View/Modify variables Debug messages Background partitions

MS Visual Studio.NET Editing resources Generating Dynamic Link Library Robust help (if you use it) We are NOT programming in C++, C#, or VB

VS Project Generator – DPBuild.Exe Generates a ready-to-use Visual Studio Project Allows the user to specify the project filename and folder Will create the project folder if it doesn’t already exist

The components of a Comet Windows program VS (Visual Studio) Project files –Usually located in a folder directly below IB source files –Generates a binary DLL file containing resources that will be loaded and used by a IB program -.dll –Generates a text “include” file that should be included in any IB source file that references resources within the DLL -.inc IB Source files –Include file generated by VS – must be registered in Comet QDIR –Generated Comet.OBJ file

What is a Resource? A Resource is a discard-able non-program object that can be individually loaded from a DLL or EXE file for use by a program. When the program is done with the resource it can discard it from memory to conserver space. Some common resources are: –Dialog boxes –Bitmaps –Icons –Menus

What is a DLL? A DLL (Dynamic Link Library) is a file that contains compiled binary information consisting of program code and or program resources A DLL can (and usually does) contain many resources for use by any program that requires them. For Comet programs, a single DLL may contain all of the Dialog boxes for an entire application or for a single module.

Why use Dialogs and DLLs? A dialog box provides the simplest and fastest way to write code for and load a form. With few exceptions dialogs can provide all of the features necessary for a good user experience. A DLL provides a convenient mechanism for storing many dialogs in a single file. The file can then be downloaded to a CometAnywhere client to display any forms at maximum speed.

What are Controls? A Control is a child window, usually placed into a dialog box, that has a specific appearance and pre-defined behaviors. Some common controls are: –Edit- ListView –Radio Button- TreeView –Checkbox- Textbox –Pushbutton- Picture –Listbox- Tab

Building your first Dialog Be sure all of the aforementioned tools have been properly installed on your system before beginning this exercise Don’t be intimidated by the VS IDE (Integrated Development Environment). It’s easy to start again if you mess up. Don’t be afraid to experiment Be patient with me. If you haven’t yet figured it out, I don’t know it all!

Step 1 – Create your project Run DPBuild.Exe –Specify the 8 character project filename and the project folder location Note that the specified location will have the appended to it so that the resulting project folder will have the same name as the project. The generated project will expect it’s folder to be located one level below your IB source folder. The two output files:.dll and.inc will be copied up to the parent folder. Once a project has been created it is possible to manually modify the output location. Press the “Generate” button to build your new project. Answer “Yes” to the “launch the project now?” question

Step 2 – Create a dialog Choose “Resource View” from the “View” menu or press Ctrl+Shift+E. In the “Resource View” window right click on the icon identified as.rc and choose “Add Resource”. In the “Add Resource” window choose “Dialog” and press the “New” button. Choose “Properties Window” from the “View” menu or press F4. Set “Visible” property to True. Click to the right of ID and give the new dialog a new identifier name: IDD_. Click to the right of the “Caption” property and enter a new dialog title and press tab.

Step 3 – Add a Static text control Choose “Toolbox” from the “View” menu or press Ctrl+Alt+X. In the “Toolbox” window select and drag a Static Text control onto the new dialog. In the “Properties” window click to the right of the “Caption” property and enter some text and press tab.

Step 4 – Compile your project Choose “Build ” from the “Build” menu or press Alt+F7 You should now find two new files in the project’s parent folder. –.dll is the compiled output file containing your dialog. –.inc is a text file that contains all of the symbolic constants used in the DLL in Internet Basic format (Set statements).

Step 5 – Register the include file with Comet Double click to open the.inc file in UltraEdit. Start Comet if it is not already running. Make sure the folder containing.inc is already accessed by Comet. If not then stop and use Comet to create (if required) and access the QDIR. Click on the “Register File” toolbar icon to register (add to QDIR) the file for access by Comet.

Step 6 – Create IB source file Copy DlgTemp.Ibs from the DLG folder or HowTo1.Ibs from the HowTo folder into your program source folder and rename it to a filename other than.ibs. Choosing a name other than.ibs will prevent a conflict with the compiler’s intermediate filename. Open the file with UltraEdit and register the file with Comet.

Step 7 – Modify the IB source to execute your new dialog Change include filename to.inc. Change DLL name to.dll. Change dialog ID to IDD_ Compile the IB source. Run the program.