Native .LIB linked to managed .EXE?

M

mike

I have a native C++ .LIB with heavy computation. I'm linking this
into a C++/CLI UI app. Will all computations in the C++ .LIB run in
the runtime or as native code? What is rule-of-thumb for using .LIB
or .DLL when using in managed application?

Thanks - Mike
 
M

Mark Salsbery [MVP]

mike said:
I have a native C++ .LIB with heavy computation. I'm linking this
into a C++/CLI UI app. Will all computations in the C++ .LIB run in
the runtime or as native code?

The code in the library is compiled native, so it executes like any native
code.

What is rule-of-thumb for using .LIB
or .DLL when using in managed application?


Two different types of linking. You use a LIB for static (build-time)
linking or a DLL for dynamic (run-time) linking.
That doesn't change when linking to a (C++/CLI) managed app.


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