Native .LIB linked to managed .EXE?

  • Thread starter Thread starter mike
  • Start date Start date
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
 
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
 
Back
Top