Using .lib libraries in compact framework

G

Guest

Hi,

I am developing an application WinCE .NET device with barcode scanning and
GPRS functionality. I was given the SDK for embedded VC with the GPRS and
barcode libraries in .lib file.
I want to develop the application using the Compact Framework. I found out
that most documentation only mention about using native code from dll. Is
there any way to call function in a .lib file from compact framework.
Any workaround on this problem?

Thanks
 
A

Alex Feinman [MVP]

Inline:

Ken said:
Hi,

I am developing an application WinCE .NET device with barcode scanning and
GPRS functionality. I was given the SDK for embedded VC with the GPRS and
barcode libraries in .lib file.

Typically, a lib file you get is a so-called import library - one that does
not contain actual code and used to resolve functions exported from a DLL.
NetCF code will call such functions directly, provided that those functions
are callable via P/Invoke mechanism. If some functions are not possible to
PInvoke, you will need to write a wrapper layer using eVC.
I want to develop the application using the Compact Framework. I found out
that most documentation only mention about using native code from dll. Is
there any way to call function in a .lib file from compact framework.
Any workaround on this problem?

It is not possible to call code contained in a .lib file. You will need to
buld a eVC DLL project that calls such functions (if the lib file is not an
import library - covered above)
 

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