C# and unmanaged C++ library

Hi,
I would like to know whether I can create a C# dll that makes calls to C++ unmanaged functions in a C++ library file (not a dll file)? If yes, how?

I know about dllimport and marshaling; I want to know whether a simlar procedure exists for .lib files.

Needless to say, my lib file is compiled for smart device and I would like to have one managed dll that does not call another unmanaged dll, this is basically why I am interested in .lib.

Thanks,

[462 byte] By [Sarmad] at [2008-2-15]
# 1

Sorry, it is not possible.

Your only options for calling unamanged code from managed is PInvoke (which you know) and COM Interop - not libs.

Cheers
Daniel

DanielMoth at 2007-9-9 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...