P. 1
VC++

VC++

|Views: 682|Likes:
Published by mduli1

More info:

Published by: mduli1 on Jul 07, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/11/2013

pdf

text

original

Go to www.mdu.

li to get lots of stuff for free :)
MCA Notes@ KENT Institute.co.in

Visual C++
Q-1 Ans Discuss in detail the use of Dialog Box, Combo Box and check box control in VC++. Dialog box is nothing but a special type of window designed to obtain input from the user. There are two types of dialog boxes:-Modal & Modeless. Creating Dialog Boxes Application:1. 2. 3. 4. 5. 6. 7. 8. Open the application. Choose Insert, Resource from developers studio’s menu bar. Resource type dialog box appears. Choose dialog & double click it then press ok button. Now, Default type of dialog box appears on the project. By choosing view, properties. Change the caption to dialog example. The ID for this dialog box has been choosen by the application wizard is IDD_DIALOG 1. By default two command button OK, CANCEL. You may remove these controls by selecting it & pressed delete button through keyboard.

COMBO BOX:- It is a combination of edit box & list box. This control enables user to select from the list . There are three types of combo boxes are:- simple, Drop down, Drop down list. Using of combo box :- follow these steps 1. From the control palette, select combo box control and place it on the Dialog window. Its default ID as IDC_COMBO 1. However you can change it through the property dialog box. 2. Open the class wizard select member variables tab to add variable m_combo 1 of type CCOMBO BOX. 3. Open the file view & select Dialog dlg.cpp. Add the following code shown below:-

Go to www.mdu.li to get lots of stuff for free :)
(1) ______________________________________________________________________________________ These notes are only for guidance purposes and should not be used as substitutes of textbooks. The students are strictly advised to study prescribed textbooks comprehensively to develop thorough understanding of the subject.

Go to www.mdu.li to get lots of stuff for free :)
MCA Notes@ KENT Institute.co.in

Visual C++
BOOL CDialogDlg::OnInitDialog() { CDialog::OnInitDialog(); //do not change other codes m_Combo1.AddString("manoj"); m_Combo1.AddString("anurag"); m_Combo1.AddString("kamal"); m_Combo1.AddString("pankaj"); m_Combo1.AddString("anupam"); m_Combo1.AddString("kamini"); return TRUE; // return TRUE unless you set the focus to a control } 4. When an item is selected from this combo box by clicking at the item, is generated Here, handler name is OnSelchangeCombo1(). 5. Add the following code into the message handler – OnSelchangeCombo1(). char mm[20]; //buffer to store the selected item m_Combo1c.GetLBText(m_Combo1c.GetCurSel(),mm); MessageBox(mm); 6. Compile & run the application. CBN_SELCHANGE message

CHECK BOX:- Check Box are small squared in which check marks on or Off. You use this control to set options on or off; each option can be selected or deselected independently. Using Check-box Control :- Follow these steps are:1. From the Control palette, select two check control and place it on the dialog window. The buttons are placed with their default IDs and captions as IDC_CHECK1, Check1 and,

Go to www.mdu.li to get lots of stuff for free :)
(2) ______________________________________________________________________________________ These notes are only for guidance purposes and should not be used as substitutes of textbooks. The students are strictly advised to study prescribed textbooks comprehensively to develop thorough understanding of the subject.

Go to www.mdu.li to get lots of stuff for free :)
MCA Notes@ KENT Institute.co.in

Visual C++
IDC_CHECK2, Check2 respectively. However, again, you can change them through the property dialog box. 2. When the check button is clicked, a corresponding window message BN_CLICKED message is generated. In order to do so, double-click at the button, a message handler OnCheck1(), is suggested by the system, is created. Similarly, repeat the same for Check2 check button control to add OnCheck2() message handler. 3. open the class-wizard and add a member-variable m_Check1c of type CButton

4.

Add the following code into the message handler if(m_Check1c.GetCheck()==1) // if the box has been checked MessageBox("You have checked the First Check-box"); else MessageBox("You have Unchecked the First Check-box");

5.

Compile and run the application. Click the button to see the output.

Go to www.mdu.li to get lots of stuff for free :)
(3) ______________________________________________________________________________________ These notes are only for guidance purposes and should not be used as substitutes of textbooks. The students are strictly advised to study prescribed textbooks comprehensively to develop thorough understanding of the subject.

Go to www.mdu.li to get lots of stuff for free :)
MCA Notes@ KENT Institute.co.in

Visual C++

Q-2

(a) What is COM? Discuss the building of internal COM components in VC++. Ans COM stands for component object model. There are two types of applications: containers and servers. In the simplest sense, a container is an application that requires data and a server is an application that supplies data. COM is a documented programming standard that specifies how to build components and clients to ensure their inter-operability. It provides a framework that satisfies all the necessary characteristics of software components and maintains uniformity among components developed across different platform. In the present section we will see how to create a COM component and use it in Internet application. Here, we will learn how to create an Internet COM Object using Mircosoft's Active Template Library. The COM Object that we will create can be used in an Active Server Page to provide additional functionality. Before you begin creating your COM Object, you must install ATL 1.1 There are several interesting entry points to the COM Object that are useful when the object is called from a Active Server Page. (b) Ans What are COM servers in VC++? Discuss their role.

COM server, is to provide services to other components. Servers may be of three types, on the basis of whether it runs in the same memory space as the client or not. a. b. c. InprocessServer: COM servers using the same memory space as the client. Local server: COM servers running in memory space other than that of the client. Remote server: COM server component residing on a different machine connected through network.

Go to www.mdu.li to get lots of stuff for free :)
(4) ______________________________________________________________________________________ These notes are only for guidance purposes and should not be used as substitutes of textbooks. The students are strictly advised to study prescribed textbooks comprehensively to develop thorough understanding of the subject.

Go to www.mdu.li to get lots of stuff for free :)
MCA Notes@ KENT Institute.co.in

Visual C++
Role of COM Server in VC++:Step 1: Running the ATL COM Wizard:create a new project. Choose the "ATL COM AppWizard". In the project name call it "Simple_ATL". Set the location where you want this project to be saved in, then hit the Ok button. Press the finish button to have the Wizard generate to appropriate files for you. A "New Project Information" window will appear to tell you what files are going to be created. Press the Ok button to accept this. Step 2: Creating a new ATL object:Clicking the "View" menu, then choosing "Workspace". There will be three tabs, click on the "ClassView" tab. You should see "Simple_ATL Classes". Right click on this and choose "New ATL Object" from the popup menu. You will see a window like the following:

: Selecting Simple Object Click the next button and you will be in the "ATL Object Wizard Properties" window. Click on the "Attributes" tab at the top. We don't need to worry about any of the three checkboxes at the bottom. Click on the Ok button and let the Wizard create our new ATL Simple Object.

: Setting Attributes

Go to www.mdu.li to get lots of stuff for free :)
(5) ______________________________________________________________________________________ These notes are only for guidance purposes and should not be used as substitutes of textbooks. The students are strictly advised to study prescribed textbooks comprehensively to develop thorough understanding of the subject.

Go to www.mdu.li to get lots of stuff for free :)
MCA Notes@ KENT Institute.co.in

Visual C++
Step 3: Adding a method:we want to do is add a method. . We can do this easily by right clicking on "IFirst_ATL" and choosing "Add Method".

ADDING METHOD TO INTERFACE Add the following code: STDMETHODIMP CFirst_ATL::AddNumbers(long Num1, long Num2, long *ReturnVal) { // TODO: Add your implementation code here *ReturnVal = Num1 + Num2;

return S_OK; } Step 4: Compiling the DLL:Now, you have a working COM Server built with ATL! Of course we need to compile it. The compiler will register your new DLL in the registry so that other programs can make use of it. Step 5: Testing the COM Server with Visual C++ Save and close the Simple_ATL project if it is still open and create a new project. Choose a "Win32 Console Application" and name it "Test_ATL". Click the Ok button and accept the default for the next window. Click on the finish button, then press Ok button again. You should now have an empty project. Press the "Control" and "N" keys to add a file to this project. From the window, choose "C++ Source File" and name it "Test_ATL.cpp". Press the Ok button to accept. You should have a blank file open. Step 7: Compile and run the program Compile the program by pressing the "F5" key, then run it by pressing the "Control" and "F5" keys.

Go to www.mdu.li to get lots of stuff for free :)
(6) ______________________________________________________________________________________ These notes are only for guidance purposes and should not be used as substitutes of textbooks. The students are strictly advised to study prescribed textbooks comprehensively to develop thorough understanding of the subject.

Go to www.mdu.li to get lots of stuff for free :)
MCA Notes@ KENT Institute.co.in

Visual C++
Q-3 Ans (a) Discuss the handling of mouse in VC++ through an example. A mouse is the most common pointing input device extensively used with windows applications. Each activity performed with the mouse (like moving, clicking, dragging etc.) is termed as a mouse event. There are two categories of mouse events – Client area mouse events and Non-Client area mouse events. Client area mouse events occur when the mouse pointer is focussed in the application’s window. For E.g:- WM_LBUTTON DOWN. Non client area mouse events produced when the mouse is focussed outside the application window area. For E.g:- WM_NCLBUTTON DOWN. How to use a mouse event in your application:The general prototype of the keyboard handler functions looks like : Void OnMsgName(UNIT nFlags, Cpoint point) Example:- Drawing With the Mouse Following these steps: 1. Create a new MFC Application using AppWizard workspace project, calling the project MouseTest. 2. Specify that this project will be a dialog-based application. 3. Remove the control elements (buttons, text etc.) from the dialog window. 4. Open the Class Wizard. Select WM_MOUSEMOVE from the list of messages, and add a function by clicking the Add Function button. Click the OK button. 5. Click the Edit Code button to edit the OnMouseMove function you just created, adding the code in listing below: if((nFlags & MK_LBUTTON) == MK_LBUTTON) { CClientDC dc(this); dc.SetPixel(point.x,point.y,RGB(0,0,0)); } 6. Compile and run the application

: Output window of the of stuff for free :) Go to www.mdu.li to get lots mouse draw application
(7) ______________________________________________________________________________________ These notes are only for guidance purposes and should not be used as substitutes of textbooks. The students are strictly advised to study prescribed textbooks comprehensively to develop thorough understanding of the subject.

Go to www.mdu.li to get lots of stuff for free :)
MCA Notes@ KENT Institute.co.in

Visual C++
(b) Ans Explain the difference between local server and a process server in VC++ Difference between Local server & Process server are:(i) (ii) (iii) Process server runs in the same address space as the client that calls it where as local server runs in the memory space other than that of client. Process server is faster because there is no inter-process communication between the client & the server. Since the process server shares the same address space with client, So any serious error with server can also terminate the client.

Q-4 Explain any three of the following:(a) Multiple views (b) Sliders (c) Creating active X controls. (d) Web Browser Ans Multiple views:- It can be opened at once & views can be split into the multiple panes. Multiple document are those related to the document-the information user could save your application & restore later. In multiple views, the document object is responsible for storing, loading & saving the data. Whereas the view object is a way that the user to see the data on screen & to edit that data. MDI stands for multiple document interfaces. MDI application such as Excel, word can open many documents at once. SDI is quite diff. because these application has only one document open at once at a time. When you choose file, open, the current file is closed before the new one is opened. Sliders:- Mostly sliders is used with the use of progress bar control and associate it with the slider so that when you move the slider control pointer, the progress bar will also move accordingly. To display the progress status, we will use edit box control.

1. From the Control palette, select slider control and place it on the dialog window. The slider control is placed with its default ID as IDC_SLIDER1. 2. When the slider is slid with the mouse keeping left button down, it moves. When the mouse button is released M_RELEASEDCAPTURE message is generated. We would like to capture this message and process it. Add function OnReleasedcaptureSlider1 () 3. To access the slider control, a variable of CSliderCtrl type needs to be created and associated with the slider. 4. From the Control palette, select progress bar control and place it on the dialog window, above the slider control. The progress bar is placed with its default ID as IDC_PROGRESS1. However, as usual, you can change it through the property dialog box. 5. To access the progress bar control, a variable of CProgressCtrl type needs to be created and be associated with the progress bar. 6. Now, to get the progress status, we will include an edit box in the dialog

Go to www.mdu.li to get lots of stuff for free :)
(8) ______________________________________________________________________________________ These notes are only for guidance purposes and should not be used as substitutes of textbooks. The students are strictly advised to study prescribed textbooks comprehensively to develop thorough understanding of the subject.

Go to www.mdu.li to get lots of stuff for free :)
MCA Notes@ KENT Institute.co.in

Visual C++
window. Extending the application, select an edit box from the control palette and place it below the slider control. Right-click on the edit box control and select Properties from the pop-up menu. The default ID of an edit box control is IDC_EDIT1. 7. Again, to access the edit box control, a variable of CEdit type needs to be created and associated with the progress bar. To do this, open the ClassWizard and add a member-variable m_Edit1 of CEdit type Add the following code into the message handler – OnReleasedcaptureSlider1(). int x; x = m_Slider1.GetPos() m_Progress1.SetPos(x); CString str; str.Format("%d",x); m_Edit1.SetWindowText(str); 8. Compile and run the application to see the output Active x controls:It is a portable software module that can be plugged into any active x control container program. It display an active x control as an interface & interacts with it through properties, methods, events. The active x controls technology is implemented with three major classes (cole control module, cole control, cole property page.) In addition to these classes a group of macros was also designed various aspects of active x control. (i) using MFC (ii) using ATL (iii) using basectl framework Creating an active x control using MFC active x controls wizard. (i) First step is to create MFC active x control wizard. Create a new project & select MFC active x control wizard. (ii) Add or modify the existing code in the project as per the requirement. Active x controls are the method that allow us to create software components those can be used in another application. Web Browser:- Web Browser is a special software yhat display web pages. It Receives the request from client then communicate web server. Web Server gives it response to browser. Browser convert the page into HTML format & then display the content as picture & text. It available for personal computer include Internet explorer, Mozilla firefox, Safari, Opera & Netscape navigator in order of descending popularity. Text & images on a web pages can contain hyperlinks to other web pages at the same or diff. website. Web browser allow a user to quickly &easily access information provided on many web pages at many website.

Go to www.mdu.li to get lots of stuff for free :)
(9) ______________________________________________________________________________________ These notes are only for guidance purposes and should not be used as substitutes of textbooks. The students are strictly advised to study prescribed textbooks comprehensively to develop thorough understanding of the subject.

Go to www.mdu.li to get lots of stuff for free :)
MCA Notes@ KENT Institute.co.in

Visual C++
Q-5 (a) Explain the creation of internet program by using an example. Ans One application sits on a computer, waiting for another application to open a communication connection. This application is "listening" for this connection request, much like you listen for the phone to ring if you are expecting someone to call. The application trying to connect to the first application has to know the network location, or address, of the first application. Once the connection is made between the two applications, messages can pass back and forth between the two applications, much like you can talk to the person on the other end of the phone. This connection is a two-way communications channel, with both sides sending information. Finally, once one or both sides have finished their sides of the conversation, the connection is closed Sockets, Ports, and Addresses The basic object used by applications to perform most network communications is called a socket. A socket is an object used to read and write messages that travel between applications.

A port is like a phone extension, and the computer address is like the phone number. If you call someone at a large office building, you may dial the main office number, but then you need to specify the extension number.

Creating a Socket Creating a socket is a combination of Port number & IP address. For creating a socket, the first thing you need to do is declare a variable of CAsyncSocket as a class member. Eg:- CAsyncSocket m_smysocket Create method:- if (m_sMySocket .Create ()) { // Continue on } else // Perform error handling here Making a Connection if (m_sMySocket.Connect("computerOne", 4000)) { // Continue on } else // Perform error handling here The second form is if (m_sMy Socket. Connect ("178. 1.25.82", 4000)) { // Continue on } else // Perform error handling here Go to www.mdu.li to

get lots of stuff for free :)

(10) ______________________________________________________________________________________ These notes are only for guidance purposes and should not be used as substitutes of textbooks. The students are strictly advised to study prescribed textbooks comprehensively to develop thorough understanding of the subject.

Go to www.mdu.li to get lots of stuff for free :)
MCA Notes@ KENT Institute.co.in

Visual C++
Accept method if (m_sMySocket.Accept (m_sMySecondSocket) ) { // Continue on } else // Perform error handling here Closing the Connection m_sMySocket.Close();

(b) Explain radio button &list boxes. Ans Radio Button:- Radio button are small circles that are checkers with a Solid dots when clicked. Radio button are generally group; selecting one implies that all other radio button are unselected. Steps:used in a

(1) From

the Control palette, select two radio button controls and place it on the dialog

window. The buttons are placed with their default IDs and captions as IDC_RADIO1, Radio1 and IDC_RADIO2, Radio2 respectively. However you can change as per your own if you want

(2) When (3) open
(4)

the radio button is clicked, a corresponding window message BN_CLICKED

message is generated. the ClassWizard and add a member-variable m_Radio1 and m_Radio2 of type

CButton Add the following code into the message handler – OnRadio1(). MessageBox("You have Checked the First Radio button"); Add the following code into the message handler – OnRadio2(). MessageBox("You have Checked the Second Radio button"); (4) Compile and run the application.

Go to www.mdu.li to get lots of stuff for free :)
(11) ______________________________________________________________________________________ These notes are only for guidance purposes and should not be used as substitutes of textbooks. The students are strictly advised to study prescribed textbooks comprehensively to develop thorough understanding of the subject.

Go to www.mdu.li to get lots of stuff for free :)
MCA Notes@ KENT Institute.co.in

Visual C++

List Box:Steps:-

(1) From the Control palette, select list box button control and place it on the
dialog window.The list box is placed with its default ID as IDC_LIST1. However, again, you can change as per your own if you want.

(2) Create a variable m_List1c of CListBoxBox type to be associated with this
list box. add the following code BOOL CDialogDlg::OnInitDialog() CDialog::OnInitDialog(); //leave rest of the codes as it is m_List1c.AddString("manoj"); m_List1c.AddString("anurag"); m_List1c.AddString("anirudh"); m_List1c.AddString("neeraj"); m_List1c.AddString("anupam"); m_List1c.AddString("sandeep"); return TRUE; } {

(3) When an item is selected from this list box by clicking at the item,
LBN_SELCHANGE message is generated. (4) Add the following code into the message handler – OnSelchangeList1(). char mm[20]; //buffer to store the selected item m_List1c.GetText(m_List1c.GetCurSel(),mm); MessageBox(mm); (5) Compile the application and run.

Go to www.mdu.li to get lots of stuff for free :)
(12) ______________________________________________________________________________________ These notes are only for guidance purposes and should not be used as substitutes of textbooks. The students are strictly advised to study prescribed textbooks comprehensively to develop thorough understanding of the subject.

Go to www.mdu.li to get lots of stuff for free :)
MCA Notes@ KENT Institute.co.in

Visual C++

Q-6 Discuss the reading of key strokes using keyboard? Ans Keyboard is an input device that is shared by all applications running in Memory. Pressing a key on the keyboard constitutes a keyboard event. List of various keyboard events are:Message WM_KEYDOWN WM_KEYUP WM_SYSKEYDOWN WM_SYSKEYUP Handler OnLKeyDown OnKeyUp OnSysKeyDown OnSysKeyUp Events A key has been pressed A key has been released A special or function key has been pressed A special or function key has been released

Now discuss how to use keyboard event in your application. The general prototype of the keyboard handler functions looks like: Void OnMsgName(UNIT nChar, UNIT nRepCnt, UNIT nFlags) nchar A=65 nrepcnt = repeat count nflags = operating system understand how many times. Example:- Echoing the Pressed Key on the Keyboard Steps:-

(1) Create a new MFC AppWizard project. (2) Specify that this project will be a dialog-based application. (3) Remove all the controls from the dialog window.

Go to www.mdu.li to get lots of stuff for free :)
(13) ______________________________________________________________________________________ These notes are only for guidance purposes and should not be used as substitutes of textbooks. The students are strictly advised to study prescribed textbooks comprehensively to develop thorough understanding of the subject.

Go to www.mdu.li to get lots of stuff for free :)
MCA Notes@ KENT Institute.co.in

Visual C++
(4) Open
the Class Wizard from view menu Select WM_KEYDOWN from the list of messages, and add a function by clicking the Add Function button. Click the OK button to accept the suggested function name. (5) Click the Edit Code button to edit the OnKeyDown function you just created, adding the code given below: CClientDC dc(this); dc.TextOut(10,10,nChar);

(6) Compile and run the application.
Q-7 What is visual programming? What languages do you consider most Suitable for VB and why? Ans- visual programming is a programming language that uses a visual representation(such as Drawings, Graphics, animation, or icons, partially or completely) Elements:(1) Language paradigms (2) Batch or Interactive (3) Visual representation vs. visual object. (4) Diagrams, icons or forms (5) No. of dimensions. The most common visual programming is a visual basic & vc++. VB & the entire Microsoft visual family are not, despite their names, visual programming language. They are textual language which use a graphical GUI builder to make programming language decent interfaces easily on the programmer. It utilizes pre-defined classes & resources for visual components, which are incorporated in an application. Some of these components are application window, icons, menus, toolbars, combo box, edit box, sliders etc. Using these standard resources &components gives a consistent look & feel to an application.

Q-8 What is a file? Explain the handling of file in VC++? Ans FILE:-Every piece of information is stored on the secondary storage devices(floppy disc, hard disc, CD ROM etc.) in the form of a unit called file Some of these operations are – file reading, file writing, file copying, file deleting, file moving, file renaming etc. File handling is largely system dependent, applications written for one operating system may not run on the other. Probably the most widely used (API’s – Application Program Interfaces). For this purpose is the MFC(Microsoft Foundation Classes) framework. MFC’s C file class handles all the functions. For eg:- // Create the file. Go to www.mdu.li to CFile::modeCreate for free :) CFile file("TESTDATAFILE.TXT", get lots of stuff | CFile::modeWrite);
(14) ______________________________________________________________________________________ These notes are only for guidance purposes and should not be used as substitutes of textbooks. The students are strictly advised to study prescribed textbooks comprehensively to develop thorough understanding of the subject.

Go to www.mdu.li to get lots of stuff for free :)
MCA Notes@ KENT Institute.co.in

Visual C++
Before the data members of an object may be saved in a file the object must be serialized Serialization is the process by which an object writes. It enables an application to open & save documents along with its data. Q-9 Short notes on the following :(i) Status bar prompts (ii) Debugging (iii) Profiling (iv) Deploying com application (v) Toolbars Ans Status bar prompts:- A status bar is a horizontal window, usually displayed the bottom of the parent window, in which an application can display various kinds of status information. It can provide information about what the user is doing, where he is in the document he is editing, or the mode that the application is in. This information goes beyond the Caps, Num, and Scroll lock keys that Visual C++ automatically reports on the status bar. A status bar is divided into a number of panes pasted on the status bar. It’s actually easy to add additional panes to the status bar.

Debugging:- Debugging is the process of correcting or modifying the code in your project so that your project can build, run smoothly, act as you expected, and be easy to maintain later. To this end, Visual C++ provides a variety of tools to help with the varied tasks of tracking down errors in the code and program components

To start debugging 1. 2. Click Start Debug on the Build menu. Click Go, Step Into, or Run to Cursor.

To halt debugging 1. 2. Click Break on the Debug menu. Control returns to Microsoft Visual C++.

Profiling:- Profiler is an analysis tool used to examine the run-time behaviour of the programs. By using profiler information, it can be easily determined which sections of code are working efficiently, or taking a long time to run/execute. Since profiling is a tuning process, you should use the profiler to make your programs run better and not to find bugs There are two ways, viz. Line Profiling andto get lots of stuff Go to www.mdu.li Function Profiling

for free :)

(15) ______________________________________________________________________________________ These notes are only for guidance purposes and should not be used as substitutes of textbooks. The students are strictly advised to study prescribed textbooks comprehensively to develop thorough understanding of the subject.

Go to www.mdu.li to get lots of stuff for free :)
MCA Notes@ KENT Institute.co.in

Visual C++
Line Profiling shows how many times each line is executed. There are two line-profiling options viz. Line Counting and Line Coverage. Line Counting shows how many times each line was executed. Line Coverage shows you which lines were executed at least once. Function Profiling is used for detecting inefficient code. The profiler provides four ways to profile by function: Function Timing, Function Counting, Function Coverage and Function Attribution. Deploying com application:-Deployment is a process of installing software components into the Component Server infrastructure. Before deploying a component, it is packaged into an archive file called Deployment Unit archive, along with the deployment descriptors. Packaging A Deployment Unit archive consist of one or more components and each component can have a multiple implementations, Each component have their corresponding softpkg descriptor, CORBA (Common Object Resource Broker Architecture) component descriptor and property file descriptor. Deployment K2 provides deployment module that handles automatic deployment of a CORBA® component independent of the platform. Component Descriptor Open Software Description (OSD) is an XML vocabulary used to describe software component and their relationships to other components. The component server uses three descriptors are softpkg descriptor, CORBA component descriptor and property file descriptor. Softpkg Descriptor Complex Dependencies: Java Classes and Applets: Operating System and Hardware Platforms: CORBA component descriptor Property file Descriptor

Toolbars :- It is shortcut for items in the application’s menu but they can also operate as standalone user interface. Adding buttons to a toolbar is a two-step process: Draw the button's icon Match the button with its command.

Go to www.mdu.li to get lots of stuff for free :)
(16) ______________________________________________________________________________________ These notes are only for guidance purposes and should not be used as substitutes of textbooks. The students are strictly advised to study prescribed textbooks comprehensively to develop thorough understanding of the subject.

Go to www.mdu.li to get lots of stuff for free :)
MCA Notes@ KENT Institute.co.in

Visual C++
Q-10 Differentiate between DLL files & EXE files. Ans DLL files EXE files EXE is a executable file which runs in a seprate Process which is managed by operating system. The memory refrence to the variables are Absolute. .EXE can used by end user. EXE works executes the files. EXE is out of process meanings its runs with its Own process.

1.DLL is a Dynamic Link Library, collection of functionhs used by many diff. applications. 2. The memory refrence to the variables are Relative. 3. .DLL cannot useby end user. 4. DLL works linking the files. 5.DLL is in- process meanings it runs within the client process sequentially.

.ODL, .DEF, .OCX are DLL files which is supported by MFC library.

Go to www.mdu.li to get lots of stuff for free :)
(17) ______________________________________________________________________________________ These notes are only for guidance purposes and should not be used as substitutes of textbooks. The students are strictly advised to study prescribed textbooks comprehensively to develop thorough understanding of the subject.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->