Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / March 2007

Tip: Looking for answers? Try searching our database.

Any way to use unmanaged .LIB in MCPP project?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mark.sanders.03@gmail.com - 13 Mar 2007 23:11 GMT
Hello, I have a managed C++ project which uses an unmanaged C++ DLL.
Normally when I'd have an EXE or DLL which uses another DLL, I'd link
the DLL's .LIB into the project but I don't see a way to do this
within my MCPP project (so I'm left with a bunch of "unresolved
externals" errors).

Now, I could use PInvoke but this would mean having to redeclare every
function, and I'd like to not have to do this (I'm lazy and the
approach is prone to errors anyway).

There sure seems like there should be a way to do this with MCPP but I
can't figure out how.

Any suggestions (or solutions)?

Thanks,

Mark
mark.sanders.03@gmail.com - 14 Mar 2007 00:11 GMT
OK, I figured it out.  When I looked at the Linker\Input section of my
MC++ project, all I saw was $(NOINHERIT) and I didn't notice that I
could add a .LIB here, just like I normally would for an unmaged C++
project, so problem solved.

Mark

On Mar 13, 3:11 pm, mark.sanders...@gmail.com wrote:
> Hello, I have a managed C++ project which uses an unmanaged C++ DLL.
> Normally when I'd have an EXE or DLL which uses another DLL, I'd link
[quoted text clipped - 14 lines]
>
> Mark

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.