News:

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

Includes - Libs & Headers

Started by paulfaz, November 17, 2006, 05:10:07 PM

Previous topic - Next topic

paulfaz

Hi, This may sound like a really daft question, but whats the crack with the inc, lib and header files...

Upto now, ive not had an issue cos everything ive used has been in the masm32\lib or include folders...

Ive just started looking into writing an icmp ping program and found that MSDN is telling me these specific APIs are defined in a particular .h file, for example In_addr.h

I cant find this In_addr.h or a lib/inc equivalent, so how do i proceed from here? can i include a h file in an ASM program? or do i need the libs and incs, and where would i get this lib/inc or h file anyway?

Cheers....

Paul

Tedd

The "in_addr" struct, along with the required constants, are defined in windows.inc
If there are extra functions you require, try doing a search/grep on the .inc files in the include folder to see if it's in one of those

c-style .h files aren't compatible, so no you can't just include them directly.

If you can't find what you need from inc/libs included with masm32, then it will probably need to be translated from the .h version -- which generally come along with the windows sdk (or with any well stocked c/c++ compiler suite.)
No snowflake in an avalanche feels responsible.

TheGreatJason

Quote from: Tedd on November 17, 2006, 05:42:07 PMIf you can't find what you need from inc/libs included with masm32, then it will probably need to be translated from the .h version -- which generally come along with the windows sdk (or with any well stocked c/c++ compiler suite.)

Aren't the .libs all contained in the SDK already? :U And hasn't the windows.inc file been completed yet...?