Re: Storing a long value in an int [correction]

2005-11-09 Thread radhika
The problem was actually in our code - SetFlags(). SetFlags(unsigned short flags) which was causing the problem. I changed that to a long, and it works. Sorry for the rather un-informative description. I will try to ask better questions next time. Thanks, -radhika > radhika wrote: >>>Hi, >>>I nee

Re: Storing a long value in an int [correction]

2005-11-09 Thread Bob Showalter
radhika wrote: Hi, I need to set this flag = 0x001 My code is as follows: $flag = OBJ::HALT(0x001); print("setting flag $flag\n"); produces: 65536 But when I say $quote-SetFlag($flag); The flag is being set to 0; Is that a method call? $quote->SetFlag($flag) I don't know what SetF

RE: Storing a long value in an int

2005-11-09 Thread Timothy Johnson
Where is the function $quote-SetFlag() coming from? -Original Message- From: radhika [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 09, 2005 12:56 PM To: beginners@perl.org Cc: [EMAIL PROTECTED] Subject: Storing a long value in an int $flag = 0x001; print("setting

Re: Storing a long value in an int [correction]

2005-11-09 Thread radhika
> Hi, > I need to set this flag = 0x001 > My code is as follows: > > $flag = OBJ::HALT(0x001); > print("setting flag $flag\n"); > produces: 65536 > But when I say $quote-SetFlag($flag); > The flag is being set to 0; > > I see that the number I am trying to set is 65536. > Is there a way I

Storing a long value in an int

2005-11-09 Thread radhika
Hi, I need to set this flag = 0x001 My code is as follows: $flag = 0x001; print("setting flag $flag\n"); produces: 65536 But when I say $quote-SetFlag($flag); The flag is being set to 0; I see that the number I am trying to set is 65536. Is there a way I can make $flag a long int to store