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,413 of 10,840   
   Antony Clements to Dean Earley   
   Re: a problem with copymem API   
   16 Feb 07 09:46:53   
   
   From: antony.clements@optusnet.com.au   
      
   the data is from the full ascii range   
   "Dean Earley"  wrote in message   
   news:45d43a6b$0$2449$db0fefd9@news.zen.co.uk...   
   > Dean Earley wrote:   
   >> Antony Clements wrote:   
   >>> bytearray() = Mid(stream1, b, 8)   
   >>> bytearray2() = Mid(stream2, c, 8) 'a messagebox here proves that at this   
   >>> point, the data held in bytearray() is different than the data held in   
   >>> bytearray2()   
   >>   
   >> This copies a UNICODE string into the byte array.   
   >> This will be 16 bytes, every other one being a null character.   
   >>   
   >> If you want each character as an item in the array, then you want:   
   >> bytearray = StrConv(string, vbFromUnicode)   
   >   
   > This does assume a normal ANSI string. It will be longer if you have non   
   > ANSI data in your string   
   >   
   > --   
   > Dean Earley (dean.earley@icode.co.uk)   
   > i-Catcher Development Team   
   >   
   > iCode Systems   
      
   --- 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