The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: paulfaz on November 17, 2006, 05:10:07 PM

Title: Includes - Libs & Headers
Post by: paulfaz on November 17, 2006, 05:10:07 PM
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
Title: Re: Includes - Libs & Headers
Post by: Tedd on November 17, 2006, 05:42:07 PM
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.)
Title: Re: Includes - Libs & Headers
Post by: TheGreatJason on November 18, 2006, 01:58:27 PM
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...?