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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Library Includes

Status
Not open for further replies.

dushkin

Programmer
Mar 28, 2002
90
US
apologies for the second question today... i am getting started with C# and am trying to include the p2p sdk from MS. am not sure how to include the associated Library files. Could soomebody tell me how to add a "dot lib" file.

thanks.
 
C# doesn't have include files like C and C++ do. Nor does it have .lib files like those languages do.

Assuming the file you received is a .NET assembly, all you should have to do is copy it into the bin\debug directory in your project, then add a reference in the project explore. You set a reference by right-clicking on "References" then choose "Add..". In the dialog, click the browse button and find your assembly. Select it, then click "OK". In your .cs file, put a "using" statement at the top.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
thanks chip.

i don't think it is. it is P2P.lib, and a bunch of .h files. i don't get why MS didn't write its p2p architecture for .net. I think there are .dll's out there that wrap the lower level code for visual studio. need to hunt those down. thanks for your reply.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top