lib file

K

Ken

Hi guys,

I got two files (*.lib) which is written by VC++ or ANSI C from a thrid
party. I am now starting to develop a interface to call these library
through C#. I have no idea on what to do as I dont' know the content inside
the library file(e.g. constructor, member functions) and I don't have the
source code. How can I explore the content inside the files and use it in
C#?

Anyone can give me a hand ? Thanks a lot!

Ken
 
M

Mattias Sjögren

I got two files (*.lib) which is written by VC++ or ANSI C from a thrid
party. I am now starting to develop a interface to call these library
through C#. I have no idea on what to do as I dont' know the content inside
the library file(e.g. constructor, member functions) and I don't have the
source code. How can I explore the content inside the files and use it in
C#?


Doesn't the lib vendor provide any documentation or header file?



Mattias
 
K

Ken

Yes, the is header file with some function like that

int32 omniapi_tx_ex (
omniapi_session_handle, /* Handle to session */
int32 *, /* transaction status, by ref */
uint32, /* facility type, by value */
omni_message **, /* tx buffers, pointer vector by ref */
uint32 *, /* transaction ID, by ref */
uint32 *); /* order ID, by ref */

I am new to C, please tell me what to do. THX!

Ken
 
W

Willy Denoyette [MVP]

You can't use .lib files from C#, you'll need .dll files.
Ask your thrird party to get VC++ dll's.

Willy.
 

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