The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: MickD on January 31, 2006, 01:15:32 AM

Title: Using supplied libraries
Post by: MickD on January 31, 2006, 01:15:32 AM
Just a quick question about libraries and using them for my application.
Can I use .lib files supplied by another author (written in c/c++) for use by others 'as is' or do I have to do some conversions to use them with MASM. Also, do I have to write a proto of them before using them in my code or just include them in the build and all will be well?

TIA
Mick.

<edit> added language clarification</edit>
Title: Re: Using supplied libraries
Post by: hutch-- on January 31, 2006, 02:48:27 AM
Mick,

It will depend on if the C/C++ libraries use mangled names. You certainly can use C libraries in masm and vice versa as they have the same object module format but unless you want to manually push / call the functions in the library, you will need to prototype them in masm so you can use invoke and similar.
Title: Re: Using supplied libraries
Post by: MickD on January 31, 2006, 02:59:57 AM
Great, thanks Hutch!

I'll give it a go with proto's and cross the 'mangled names' bridge when and if I have to.

Cheers,
Mick.