How to create an instance of a C DLL.

Hi.

I want to know about creating an instance of a C DLL and how to use that instance in a VB function on VB6.0.

Thanks in Advance.

 




Answer this question

How to create an instance of a C DLL.

  • AlGu

    satya999 wrote:

    Hi.

    I want to know about creating an instance of a C DLL and how to use that instance in a VB function on VB6.0.

    Thanks in Advance.

    What your asking for is completely possible but these forums are for VB.NET and there are better places to find answers for older versions of VB such as VB6.

    Maybe the VB6 newgroups - http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.vb.general.discussion&lang=en&cr=US

    or the VB6 resource center
    http://msdn.microsoft.com/vbrun/

    or web sites such as www.vbcity.com

    You could however download VB Express and start working with .NET technology - its free to download from microsoft web site.

    Hope these point you in the right direction.


  • qmatteoq

    I am aware of that. But since VB is the language in which you are trying to use the DLL, you should ask people who know their way around VB. If you were trying to use a DLL in C/C++, this would be the place to ask.

  • nordwindranger

    Hi.

    I am having problems with creating an instance of a C Dll on VB 6.0 platform.

    Thanks in Advance.



  • GustavoPollitzer

    You should ask this question in the Visual Basic forums. This is a C++ language forum.

  • Gurpreet_Sodhi_69db48

    My answer is about VB6, just read it better. Replace Windows libraries with your C library and call functions using API calls as described in the article.
  • Jeyaraj N

    Thanks a Lot Alex.

    I will get back to you if some problems persists.



  • Atul Bahl

    This is done using API calls:

    http://msdn2.microsoft.com/en-us/library/172wfck9.aspx

    Tis asrticle shows how to call Windows API. The same way is used for any Dll which exports functions.


  • Robert Barnes

    Hi.

    Thanks a lot for the reply but i am currently working on VB6.0 which doesnt have the functions that you have mentioned.(i think all the functions that you have mentioned are for VB .net)

    Thanks in Advance.



  • How to create an instance of a C DLL.