Objective The objective of this assignment is to provide on handexperience on so
ID: 3611748 • Letter: O
Question
Objective
The objective of this assignment is to provide on handexperience on some of the Dynamic link library concepts like
o How to create Dynamic LinkLibrary
o How to add function indynamic link library
AssignmentStatement
Make a Dynamic link Library that exports a function namesCircleArea(). This function takes one double (data type) parameterand returns the area of the circle.
Formula to calculate the area of circle is
Area of a circle =3.1415*r*r.
Method of Making a Win32 DLLProject:
To make a Win32 DLL Project
Choose FileàNew from menu.
New Project Dialog will appear like the following one:
Explanation / Answer
Create a dynamic link library (DLL) containing useful routinesthat can be used by other applications. Using DLLs is a great wayto reuse code. Rather than re-implementing these routines in everyprogram you create, you write them once and reference them fromapplications that need the functionality. Assumes it understand the fundamentals of the C++ languagethenTo create a new dynamic link library (DLL)project: ->From the File menu, selectNew and then Project. ->From the Project types pane, under Visual C++, selectWin32. ->From the Templates pane, select Win32 ConsoleApplication. ->Choose a name for the project, such asMathFuncsDll, and enter it in the Name field. Choose a name for thesolution, such as DynamicLibrary, and enter it in the Solution Namefield. -> Press OK to start the Win32application wizard. From the Overview page of the Win32 ApplicationWizard dialog, press Next. ->From the Application Settings page of the Win32Application Wizard, under Application type, select DLL if it isavailable or Console application if DLL is not available. Someversions of Visual Studio do not support creating a DLL projectusing wizards. You can change this later to make your projectcompile into a DLL. ->From the Application Settings page of the Win32Application Wizard, under Additional options, select Emptyproject. ->Press Finish to create the project.
Assignment Statement: ->Choose a name for the project, such asMathFuncsDll, and enter it in the Name field. Choose a name for thesolution, such as DynamicLibrary, and enter it in the Solution Namefield. -> Press OK to start the Win32application wizard. From the Overview page of the Win32 ApplicationWizard dialog, press Next. ->From the Application Settings page of the Win32Application Wizard, under Application type, select DLL if it isavailable or Console application if DLL is not available. Someversions of Visual Studio do not support creating a DLL projectusing wizards. You can change this later to make your projectcompile into a DLL. ->From the Application Settings page of the Win32Application Wizard, under Additional options, select Emptyproject. ->Press Finish to create the project.
Assignment Statement: To need to create a Class Library. You can easily do thatin Visual C++ and most other libraries. I give some idea about this: The "description" notations takes a String argument thatprovides component description information, such as a briefabstract about its purpose, scientific background, etc. @Description(“Circle Area Calculation.”) Public class CircleArea
{ @Description(“Area of a circle”) @In public double r ; ...……. } The @Documentation notation is being usedfor automatic capturing the purpose of a component for archiving,online presentation, database integration, and component selectionduring the process of model building. This is optional meta data. ITS HELFPUL TO YOU....... To need to create a Class Library. You can easily do thatin Visual C++ and most other libraries. I give some idea about this: The "description" notations takes a String argument thatprovides component description information, such as a briefabstract about its purpose, scientific background, etc. @Description(“Circle Area Calculation.”) Public class CircleArea
{ @Description(“Area of a circle”) @In public double r ; ...……. } The @Documentation notation is being usedfor automatic capturing the purpose of a component for archiving,online presentation, database integration, and component selectionduring the process of model building. This is optional meta data. ITS HELFPUL TO YOU....... ITS HELFPUL TO YOU.......
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.