CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2001
    Location
    Los Angeles, CA, United States
    Posts
    47

    Making DLL that can be used in V/B

    I'm devdeloping my program using V/B.
    In my program, I have to implement some functionality.
    Someone offered library that can implement that functionality.
    I know that only DLL can be called by V/B program.
    What is more, the dll source is made by Visual C++.
    How can I make a dll to fit to call?
    Vaguely, I intend to make dll by wrapping lib.
    There are 6-type ways to make dll.
    Win32 Dynamic-Link Library
    1.empty DLL project.
    2.simple DLL project.
    3.DLL that exports some symbols.
    MFC(AppWizardDll)
    4.Regular DLL with MFC statically linked.
    5.Regular DLL using shared MFC DLL
    6.MFC Extension DLL(using shared MFC DLL)

    In the upper list, Which way do I have to select?
    Could anyone who know it let me know?
    Thank you.


    I'm a senior programmer.
    Working at CamSight, Dental imaging solutions industry.

  2. #2
    Join Date
    Aug 1999
    Location
    California
    Posts
    143

    Re: Making DLL that can be used in V/B

    Since you are on the subject of DLLs can you tell me where I can learn about them? Books? Websites?


  3. #3
    Join Date
    Mar 1999
    Location
    Nepal
    Posts
    540

    Re: Making DLL that can be used in V/B

    One method that works is as follows:
    Start with a Simple DLL project, and write your functions. Don't forget to declare the functions as __stdcall. And finally, make a .def file listing all the functions that you want to call from VB.


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

Featured