c# to vb6 code conversion
Wondering if anyone could help out with some code conversion. Needing to convert this C# code for calculating distance between 2 zip codes using the haversine formula, over to VB 6 for an app I'm working on.
link to image of the complete function in C# is at
http://i.techrepublic.com.com/galler...39-400-844.gif
Original page with image in it is at
http://www.techrepublic.com/blog/pro...es-using-c/634
I haven't messed with any c# in years, so could use some help. :wave:
Re: c# to vb6 code conversion
Why convert it to VB6? You could use COM Interop to create a COM component out of the C# code.
.
Re: c# to vb6 code conversion
Quote:
Originally Posted by
honeybee
Why convert it to VB6? You could use COM Interop to create a COM component out of the C# code.
.
Thanks Honey.
It's been years since doing any real VB or C# code. (And I barely touched on C#..if you count a year of classes)
Ended up going a different route in IT, but somehow ended up designing some apps for work so now they have me working on side projects. :lol:
I'm not very familiar with the COM Interop concept. I have referenced C DLL's in past projects though.
So I found this link to some info on com interop and c# code to use with vb 6 app.
http://www.codeproject.com/KB/vb-interop/csCom.aspx
I may be back with questions! :wave: