News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Using supplied libraries

Started by MickD, January 31, 2006, 01:15:32 AM

Previous topic - Next topic

MickD

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>

hutch--

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.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

MickD

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.