|
If your Borland projects comply with the ANSI standard, then they should work with any ANSI-compatible compilers. However, if you use Borland-specific headers in your projects, you will have to find a replacement library for the appropriate functions, or use one that MSVS provides you. Things like conio.h and tv.h (among others, I'm sure) have been re-written to be used for non-Borland compilers. I am not sure of what libraries you used in your Borland projects.
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;}
|