Subj : Re: borland equivalent of #pragma pack (2) is? To : borland.public.cpp.borlandcpp From : Jeff Kish Date : Fri Feb 13 2004 02:40 pm On Fri, 13 Feb 2004 08:33:38 -0500, "Ed Mulroy [TeamB]" wrote: >BC++ 32 bit code defaults to 32 bit alignment so the pragma is redundant. >BC++ already supports #pragma pack(n) Make the compiler's INCLUDE directory >the default and give this command to see that pragma in use: > > grep -w "pack" *.h | find "pragma" > >. Ed > >> Jeff Kish wrote in message >> news:nomn20pqb18g86tjp40a2a812p735kbbq4@4ax.com... >> >> I am trying to get some code to run that came from a ms c++ >> code set. They have #pragma pack (4) at the top with a note >> that is is absolutely essential. >> >> Can someone explain the borland equivalent of this? > Thanks Ed. (what do you mean by "Make the compiler's INCLUDE directory the default"? do you mean just go do a dos prompt, cd there, and do the grep? I'm not sure how to make the INCLUDE directory the default for the IDE's version of grep) mmm Well. Thanks. I tried the pragma and the program still had problems (I was trying to use the netschedulejobenum call and sprintf'ing the command text out was blowing up on me.. I figured it was just alignment/packing or something). err you don't happen to have a copy of working borland 5.02 code that makes the call and can read the command text, do you? Thanks again.. Jeff Kish .