PC Review


Reply
Thread Tools Rate Thread

C# Project reference .lib files

 
 
sean.j.gage@gmail.com
Guest
Posts: n/a
 
      26th Apr 2007
Is it possible to reference .lib files in a C# project? Or is there
process that can make a .lib file accessible from a C# project?

Cheers!

 
Reply With Quote
 
 
 
 
Mattias Sjögren
Guest
Posts: n/a
 
      26th Apr 2007

>Is it possible to reference .lib files in a C# project?


No


>Or is there
>process that can make a .lib file accessible from a C# project?


Sure, build it into a DLL, export the functionality you need and
access it via P/Invoke for example.


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
 
Reply With Quote
 
sean.j.gage@gmail.com
Guest
Posts: n/a
 
      27th Apr 2007
On Apr 26, 2:41 pm, Mattias Sjögren <mattias.dont.want.s...@mvps.org>
wrote:
> >Is it possible to reference .lib files in a C# project?

>
> No
>
> >Or is there
> >process that can make a .lib file accessible from a C# project?

>
> Sure, build it into a DLL, export the functionality you need and
> access it via P/Invoke for example.
>
> Mattias
>
> --
> Mattias Sjögren [C# MVP] mattias @ mvps.orghttp://www.msjogren.net/dotnet/|http://www.dotnetinterop.com
> Please reply only to the newsgroup.


My C++ skills are very lacking. What's the best process for building
the lib into a dll?

Cheers!

 
Reply With Quote
 
Carl Daniel [VC++ MVP]
Guest
Posts: n/a
 
      27th Apr 2007
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> My C++ skills are very lacking. What's the best process for building
> the lib into a dll?


Find someone who's C++ skills are not lacking to help you in person.
Seriously. There are simply too many possibilities to answer that question
in a newsgroup posting.

-cd




 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add a new reference to your project solution and it is not in the list provided in the Add Reference dialog? steve kwon Microsoft Dot NET 2 22nd Aug 2005 03:16 PM
Visual Basic .Net IDE Add-In that adds a Web Reference or Normal Reference to Current Project Bahige Microsoft VB .NET 0 1st Nov 2004 06:24 PM
reference from console project to web project dll creates a copy of the DLL. z. f. Microsoft Dot NET Framework 2 14th Jun 2004 08:09 AM
Why does updating a web reference in a web application project require the project file to be checked out? Headdeball Microsoft ASP .NET 0 22nd Mar 2004 07:37 PM
Using a project reference rather than assembly reference prevents an interface from working Scott James Microsoft VB .NET 0 8th Oct 2003 02:17 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:28 PM.