Results 1 to 3 of 3

Thread: DLL Help Needed

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2004
    Posts
    36

    DLL Help Needed

    I have a bit of a problem that I need help with. I am a VB.Net developer like many of you. My problem is that there is code that I need in my vb program that has already been created, but happens to be written in C.

    The code I need was written as part of an open source project and is freely available. I dont think it is feasible to convert the code to vb.net as I dont understand the C code.

    What I was thinking is to create .DLLs with the C code and access them from my vb program. The problem is I dont know how to do it. I have scoured the net looking for help and toutorials but no luck.

    If anyone out there knows how to do it and it isn't too much of a task, I ask you to please create the DLLs for me or give me an explaniation on how to do it.

    I have included the files as attachemnts. (showdown.c and handeval.c)

    Thank you very much,
    -ST
    Attached Files Attached Files

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    That's some pretty bare to the metal coding... the author is shifting bits to represent cards in a deck... reminiscent of the old days when computers had 8k of memory total.

    Also, the dll's will be unmanaged code in your project, which means you will have to be sure the author cleaned up his objects cleanly.

    I would rewrite in C#... or make your own...

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2004
    Posts
    36
    Yes, I was a bit floord by his code, its a bit above my coding level. I think it looks old shcool because the code runs large numbers of simulations (up 2 bil) and so it needs to be as efficient as possible. I do appreciate you taking the time to look at it.

    -St

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