Results 1 to 7 of 7

Thread: Creating a dll in VB

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2000
    Posts
    32
    I am creating a dll in VB to be used in a C program. What do I need to do on the VB side to make sure that the functions are visible to the C application.

    How do I load the library, and declare the functions in C so that I can call them.

    Thanks for any help.

    -Mark

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    You can't make real dll's in vb. You can only make activex-dll's in vb.
    Oetje
    [email protected]
    93606776
    Visual Basic 6, Windows 2000

    Never pet a burning dog

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2000
    Posts
    32
    Can you call an active-X dll from C?

  4. #4
    Hyperactive Member tumblingdown's Avatar
    Join Date
    Mar 2000
    Posts
    362
    yes, but i'm told it's very boring ;-)

    Can you not use c++?


    td.
    "One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig


    [email protected]

    "but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.

  5. #5

    Thread Starter
    Member
    Join Date
    Mar 2000
    Posts
    32
    Yes I can, but C is prefered in this case. Long story. If it is too difficult in C then tell me how in C++

  6. #6
    Lively Member
    Join Date
    Nov 2000
    Location
    Québec City
    Posts
    73
    I'm just wondering ,why you don't do your dll in C or in C++?

    That would be a lot easier to call, and maybe more efficient...

  7. #7

    Thread Starter
    Member
    Join Date
    Mar 2000
    Posts
    32
    I am making a Socket connection to a server. I had initially tried to use the CSocket class in C++, but it would not raise the OnReceive event when data would come in. I would recieve the data, but I had to sit in a loop and check for it. That took away from my application time. My application is written in C, and I have no choice about that. Let me know if you have any ideas.

    -Mark

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