Mustafa,
If the function is only in a lib file (and not exported through a dll),
then what you will have to do is create an unmanaged project where the
functions are exported from a DLL (you can reference the lib from the DLL
project and then just create wrapper functions for the functions in the
lib). Once you have that DLL, you can make calls to it from .NET through
the P/Invoke layer.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
ni**************@exisconsulting.com
"Mustafa Rabie" <mr****@nospam.com> wrote in message
news:u$**************@TK2MSFTNGP12.phx.gbl...
ok thanks a lot for your help really appreciated...
HOPE SOMEONE POPS UP!! lets keep our fingers crossed
"Jon Skeet" <sk***@pobox.com> wrote in message
news:MP************************@news.microsoft.com ... Mustafa Rabie <mr****@nospam.com> wrote: thx for the info, the functions i have are in .h files and a .lib file
so do i treat this as a DLL or what exactly?
Hmm... not sure what you can do with a .lib file from .NET, to be
honest. Hopefully an interop expert will pop up and help you...
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too