home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 10,419 of 10,840   
   Antony Clements to J French   
   Re: a problem with copymem API   
   16 Feb 07 23:09:35   
   
   From: antony.clements@optusnet.com.au   
      
   correction of mistake. i am only grabbing 4 bytes of both strings instead of   
   the original 8 and am trying to generate a number between 0 and 255255255255   
   from each 4 byte block of string   
   "J French"  wrote in message   
   news:45d5626e.2175983@news.btopenworld.com...   
   > On Fri, 16 Feb 2007 09:46:04 +1100, "Antony Clements"   
   >  wrote:   
   >   
   >>if stream1 has a value of 1a2b3c4d i want bytearray() to return the asc   
   >>value of the string. the only way i know how to do this is take each   
   >>character convert to ascii and then place in a string and then place the   
   >>string in bytearray(). i'm looking for a simpler way. var1 and var2 are   
   >>always returning the value of 1306840 regardless. bytearray() will return   
   >>1a2b3c4d. i am copying the bytearray variables to long variables. the   
   >>problem will be solved once var1 and var2 are correct values.   
   >   
   > I still don't follow what you are trying to do.   
   >   
   > It looks as if you want to compute some sort of 32 bit number from an   
   > 8 character String.   
   >   
   >   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca