View Single Post
Old 10-18-2005, 06:57 AM   #1 (permalink)
yatzr
Insane
 
yatzr's Avatar
 
need to create a DLL in VS.NET to use in Borland C++

I have some code for a random number generator written in VB.NET. It makes a few microsoft exclusive calls as well. I need to implement it in Borland C++ Builder, and I was told the easiest way to do it would be to make a DLL in VS.NET and use it in the Borland program. I have very little experience with VS.NET and no experience using DLL's so any help to get me going is greatly appreciated.


I guess the other route I can take though is to figure out how to implement it directly in borland. The exclusive calls are:

Dim rng As New RNGCryptoServiceProvider
rng.GetBytes(someByteArray)
..... I don't understand what the GetBytes does
Dim sha512 As New SHA512Managed
sha512.ComputeHash(someOtherByteArray)

if anyone knows some borland equivalents for those, that would work too. Thanks
__________________
Mechanical Engineers build weapons. Civil Engineers build targets.
yatzr is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62