Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reusable code - wich way is better.... 1

Status
Not open for further replies.

Robertus

Programmer
Feb 16, 2001
81
RO
I have some functions and MFC derived classes written by me. When I need to REuse the code for a class I add the
.h file and .cpp file for that class into a project and everything is fine. When I need a function I just go
and copy-paste it into my app.
My question is: I understood that reusable code is good to be held in .lib files (am I wrong?). HOW could I
input my codes into such kind of files and just link them to my project? Is there another (better or simpler)
solution? (Please note that I don't know anything about implementing .dll files and I wouldn't like to mess
with them (yet), I'm still a beginner....)
 
You can use [MFC AppWizard(Dll)] => [MFC Extension DLL]

also you could be your project insert common class, typical

function and redistribute your .h, .lib (library set)

like you used common your header and cpp files in your [exe] project

among just before from this written my words.....

It had comprehensive Mean...

if you wann'a some nice answer, then... please send email

to me... ...

I'll get you some nice code and explanation


My Email Address is : cibrran@kebi.com


My nick name is : cibrran
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top