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!

creating library

Status
Not open for further replies.

pzom

Programmer
Oct 29, 2000
7
US
Hi,
I have this code in C which contains library routines. This is primary written for "cobol calling C" demo.

How do I load these files to Visual C++ so I can generate a library (static).

cbl2cdll.c - contains functions only - no main() - example:
INT APIENTRY ReturnInteger(int integerValue)

cbl2cdll.def - contains LIBRARY cbl2cdll, CODE, DATA & EXPORTS keywords

cbl2cdll.h - contains all function header

Thanks.

 
Start by creating a new Project for a Win32 Static Lib. Once you have the project loaded got to the FileView on the Workspace Tab and then select the Source Folders, right click and then select Add Files to Folder. Do the same for the header(s).

Once you've done this you should be able to do a build.

HTH
William
Software Engineer
ICQ No. 56047340
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top