Results 1 to 3 of 3

Thread: c# to vb6 code conversion

  1. #1

    Thread Starter
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152

    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.
    :::`DISCLAIMER`:::
    Do NOT take anything i have posted to be truthful in any way, shape or form.
    Thank You!

    --------------------------------
    "Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
    "Finaly I can look as gay as I want..." - NoteMe
    Languages: VB6, BASIC, Java, C#. C++

  2. #2
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    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.

    .
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  3. #3

    Thread Starter
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152

    Re: c# to vb6 code conversion

    Quote Originally Posted by honeybee View Post
    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.

    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!
    :::`DISCLAIMER`:::
    Do NOT take anything i have posted to be truthful in any way, shape or form.
    Thank You!

    --------------------------------
    "Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
    "Finaly I can look as gay as I want..." - NoteMe
    Languages: VB6, BASIC, Java, C#. C++

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width