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,423 of 10,840   
   Antony Clements to J French   
   Re: a problem with copymem API   
   17 Feb 07 21:42:28   
   
   From: antony.clements@optusnet.com.au   
      
   you would be correct mr French. i have tried everything i know before i came   
   to ask for help, including everything that mr earley suggested, they all   
   work some occasions and throw up overflow errors on other occasions.   
      
   what i really need is work around so that no error occurs at all. the only   
   way to do this is to only take three characters at a time and this is not   
   acceptable in the long term. using CopyMemory in the way you just suggested   
   as it will throw up an error unless the long is unsigned. i know there is a   
   way in which to allow for an unsigned variable, but i'm not sure how this is   
   achieved.   
      
   "J French"  wrote in message   
   news:45d6c7c1.2882996@news.btopenworld.com...   
   > On Fri, 16 Feb 2007 23:09:35 +1100, "Antony Clements"   
   >  wrote:   
   >   
   >>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   
   >   
   > You could just use CopyMemory to slap the 4 character string into a 4   
   > byte long   
   >   
   > This is not reliable in Far Eastern locales which use Multi Byte   
   > Character Sets, but with those areas the bets are off for strings.   
   >   
   > I gather you are doing some sort of encryption.   
      
   --- 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