how to add an lib file

Hi I have a lib file that I used in Borland C++. I have this lib file in both OMF and COFF format. I know that in VC++ i must use the COFF format. Can you please tell me how to add/use this LIB file.

The prototype is:

extern "C" int _pascal Function(char *Name, HANDLE hWnd);

how I must declare it on VC++?

Thanks
[349 byte] By [dimitrisk] at [2007-11-18 15:18:17]
# 1 Re: how to add an lib file
Take a look at the following thread ( http://www.dev-archive.com/forum/showthread.php?s=&threadid=262554)...
Andreas Masur at 2007-11-11 1:59:16 >
# 2 Re: how to add an lib file
Thanks!

What about the extern "C" ... how can I convert this to VC++ ?

thanks
dimitrisk at 2007-11-11 2:00:19 >
# 3 Re: how to add an lib file
Hi,

extern "C " use to call the DLL function in C syntax.

Try explicit linkig.

LoadLibrary
LoadLibraryEx
GetProcAddress
GetModuleHandle

With Regards,
R.Selvam
selvamselvam at 2007-11-11 2:01:12 >
# 4 Re: how to add an lib file
Yes but is not a DLL, it is a LIB (consider it as OBJ) that is linked inside the exe file. I think LoadLibrary does not help in this situation.

Am I wrong?
dimitrisk at 2007-11-11 2:02:15 >