Subj : NetScheduleJobEnum packing To : borland.public.cpp.borlandcpp From : Jeff Kish Date : Wed Feb 11 2004 06:03 pm Greetings. I am trying to get NetScheduleJobEnum to work but it keeps blowing up when I try to dereference the pJob->Command in the returned structure. I saw on the web a mention that you needed #pragma pack (4) to get it to work (I assume this is alignment related?). I tried changing my alignment from 1 to 2 and 4, but the code hardly worked or stopped in the debugger when I did that. Then I went back to alignment of 1 and put in the #pragma pack (2), but I think this is ms c++ lingo, as it did not improve the situation. Can someone tell me what I need to do to get this to work? The call seems to be made successfully, but once again, the derferencing of the job blows up. Thanks Jeff Kish .