Any way to use unmanaged .LIB in MCPP project?

M

mark.sanders.03

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
 
M

mark.sanders.03

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top