OBJECTIVE After completing this Lab, students will upgrade their knowledge in the field of VC++. Students will also get the clear view about the concepts of Visual Basic programming. Getting more knowledge about windows programming. Its clears the basics concepts of Object Oriented Programming (C++) Students will understand and deal with editors, tools, class libraries, Debugging Techniques etc... Students learn the new and advanced concepts behind the VC++ and achieve the Networking, DB Connectivity and thread through it.
LIST OF EXPERIMENTS WINDOWS SDK / VISUAL C++ VISUAL C++
WINDOWS SDK / VISUAL C++ Writing code for keyboard and mouse events. Dialog Based applications. Creating MDI applications.
VISUAL C++ Threads. Document view Architecture, Serialization. Dynamic controls. Menu, Accelerator, Tool tip, Tool bar. Creating DLLs and using them. Data access through ODBC. Creating ActiveX control and using it.
1.Keyboard and Mouse events Aim: To write a VC++ program for keyboard and mouse events. Algorithm: Step 1: Select New from the File menu. Step 2: In the New dialog box, pick the projects tab. Step 3: Select Win32 application, give project name. Choose OK. Press finish button. Step 4: Select New from the File menu again, choose C++ source file and give file name. Choose OK. Step 5: Write the code, build and execute the program. Output: This program implements the VC++ code to get the output for Keyboard event and Mouse event
2.Dialog Based Application Aim: To write a VC++ program and develop a calculator using dialog based application. Algorithm: Step 1: Select New from the File menu. Step 2: Choose Win32 Application and give project name. Choose OK and finish. Step 3: Select New from the File menu again, choose C++ source file and give file name. Choose OK. Step 4: Write the code. Step 5: Select Resource from insert menu, choose dialog and press OK. Step 6: Design the calculator and change the properties of that four buttons as IDC_ADD, IDC_SUB,IDC_MUL and IDC_DIV. Save that dialog as script1.rc. Step 7: Build and execute the program. Output: This program implements the VC++ code to get the output for Dialog Based Application
3.MDI Application Aim: To develop MDI document by using MFC Appwizard and to draw text in the output view window. Algorithm: Step 1: Select New from File menu. Step 2: Choose MFC Appwizard(exe), give project name and click OK. Step 3: Select classwizard from view menu and choose WM_KEYDOWN function and double click,then click OK. Step 4: Edit the code in OnDraw and OnKeyDown function in view.cpp. Step 5: Build and execute the program. Output: This program implements the VC++ code to get the output for MDI Application
Program no:5 Writing code for Document Serialization Aim: To Write a VC++ code to achieve Document Serialization Algorithm: Open the VC++ and enter into new document through File menu Declared a class with the name docse which has it’s own data member and member function By Using the OnChar() and CSerializeView() we get the serialization for the created objects Output: This program implements the VC++ code to get the Document Serialization
Program no:6 Writing code for Dynamic Controls Aim: To Write a VC++ code to achieve Dynamic Controls. Algorithm: Open the VC++ and enter into new document through File menu Declared a class with the name docse which has it’s own data member and member function By Using the OnChar() and CSerializeView() we get the serialization for the created objects Output: This program implements the VC++ code to get the Dynamic Controls.
Program no:7 Writing code for Creating Menu, Accelerator Tool tip, Tool bar Aim: To Write a VC++ code to Creating Menu, Accelerator Tool tip, Tool bar in single program Algorithm: Open the VC++ and enter into new document through File menu Declared a class with the name acce which has it’s own data member and member function By Using the IDR_MAINFRAME, DODataExchange method we Create the menu and the other functions Output: This program implements the VC++ code to get the Menu,Accelerator, Tool tip, Tool bar
Program no:8 Writing code for Creating DLL’s Aim: To Write a VC++ code to Dynamic Linking Library Algorithm: Open the VC++ and enter into new document through File menu Declared a class with the name dlll which has it’s own data member and member function By Using the.def file and EXPORTS command with the pointer concept we achieve the DLL Output: This program implements the VC++ code create the DLL Concepts
Program no:9 Writing code for Back End Access Aim: To Write a VC++ code to access the data in the BackEnd Algorithm: Open the VC++ and enter into new document through File menu Declared a class with the name dbvc which has it’s own data member and member function By Using DSN Concept andIDD_DBVC_FORM connect to the appropriate Database Output: This program implements the VC++ code to achieve the Database Connectivity and access the data in it
Program no:10 Writing code for ActiveX Controls Aim: To Write a VC++ code to access the data in the ActiveX Control Algorithm: Open the VC++ and enter into new document through File menu Declared a class with the name boxer which has it’s own data member and member function By Using MFC ActiveX Control Wizard we create the controls for the rectangular box Output: This program implements the VC++ code to achieve the ActiveX Control for GUI Tools
Student welfare Exercise To create a Blinking Cursor Creating a Notepad in VC++ Program for line Drawing through MFC Classes VC++ code for free hand drawing by Mouse moving
THANK YOU