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,411 of 10,840   
   Dean Earley to Dean Earley   
   Re: a problem with copymem API   
   15 Feb 07 10:48:14   
   
   From: dean.earley@icode.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