Question: Using Visual Studio, do the following: 1) Create a project named mylibra ry. The output of this project is a static library (*.lib file). The

Using Visual Studio, do the following:

1)

Create a project named mylibra

ry. The output of this project is a static library

(*.lib file). The project should contain 2 source code files:

a) mylibrary.cpp

-

contains one function named PrintString() that takes one parameter

an

ASCIIZ string. The function should output the stri

ng to the console

window.

b) mylibrary.h

-

contains the prototype for the PrintString function.

void PrintString (char *str);

Using Project Properties, set custom Post

-

Build events that:

a) Copy mylibrary.lib to c:

\

mycode

\

lib

b) Copy mylibrary.h

to c:

\

mycode

\

inc

*You should those three directories first:

c:

\

mycode

c:

\

mycode

\

lib

c:

\

mycode

\

inc

2)

Create a project named myapp. The output of this project is an executable

(*.exe file) console program. The project should contain 1 source code file:

a) myapp.cpp

-

contains a main() function. The function should call PrintString() passing

an ASCIIZ string

(ASCII characters with a zero byte at the end)

with your

name (first and last).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!