Results 1 to 5 of 5

Thread: How to create Windows DLL with Visual Basic?

  1. #1
    Join Date
    Aug 2006
    Posts
    162

    How to create Windows DLL with Visual Basic?

    Hi friends,
    I don't know much about creating the DLL files in Visual Basic. I have tried to create but was not successful. I even tried to search on the Web but that wasn't also not so useful. So I thought that posting here would help me.!! Please tell me how to create Windows DLL with Visual Basic? Expecting the help like you guys always do.!!
    Technology is a way of organizing the universe so that man doesn't have to experience it.-- Max Frisch 1911 -1991

  2. #2
    Join Date
    Mar 2008
    Posts
    349

    Re: How to create Windows DLL with Visual Basic?

    A dynamic link library (DLL) is a library of functions and procedures that can be called an application or another DLL. Using a library in this way has two important functions :
    • It allows sharing of code. The same DLL can be used by many other applications and other DLLs. The Win32 API, for example, is implemented as a set of Windows DLLs.
    • As long as multiple processes load the same DLL at the same base address, they can share the DLL code. In other words, a single DLL in memory can be used by multiple processes.
    • It allows for development based on modular components, making it easier to develop and process upgrade.

  3. #3
    Join Date
    Mar 2008
    Posts
    672

    Re: How to create Windows DLL with Visual Basic?

    You should know that when a static library is used in application development, the modules of the library must be incorporated in the final application. With dynamic linking, the modules reside in a DLL which is dynamically loaded, either loading or when the application becomes necessary to call one of its member functions. A dynamic link library can include internal functions, available only in the DLL. Its main purpose, however, provide exported functions, that is to say, functions that reside in a DLL module and can call other DLLs and applications.

  4. #4
    Join Date
    Aug 2006
    Posts
    235

    Re: How to create Windows DLL with Visual Basic?

    A DLL also includes an optional entry point that is called when a process or thread loads or unloads a DLL. There are some things that you will have to keep in mind. The first is that although it includes a procedure DllMain, no process "by thread" or initialization should be executed. Thus DllMain simply returns true if it is called with the argument equal to fdwReason DLL_PROCESS_ATTACH. Secondly, to provide a Windows DLL is to allow other languages to call. To ensure interoperability, you must limit yourself to the characteristics of languages used by the Win32 API, so that your DLL can be called by the greatest number of environments and platforms possible development.y
    3.2 (northwood)
    2gig ram
    ATI AIW X800xt 256mb
    Gigabyte GA-8knxp 875p Chipset
    Optiwrite 8X DVD Burner
    Win XP PRO Sp2 (Works Perfectly)
    2 SATA Raptor 74gig Raid 0
    2 7200 IDE 320gig HD

  5. #5
    Join Date
    Nov 2008
    Posts
    1,192

    Re: How to create Windows DLL with Visual Basic?

    The following code sample might be useful for you to create Windows DLL with Visual Basic :
    Code:
    Option Explicit
    'Uncomment the following if using MSXML 4.0
    'Private xmlDoc As MSXML2.DOMDocument40
    Private mvarIt As String
    
    Public Property Let It(ByVal vData As String)
        mvarIt = vData
    End Property
    
    Public Property Get It() As String
        'Uncomment the following if using MSXML 4.0
        'Set xmlDoc = New DOMDocument40
        xmlDoc.async = False
        xmlDoc.loadXML "<" & mvarIt & "/>"
        It = xmlDoc.xml
    End Property
    
    Private Sub Class_Initialize()
        mvarIt = "test"
    End Sub
    
    Private Sub Class_Terminate()
        Set xmlDoc = Nothing
    End Sub

Similar Threads

  1. How to create installation package of application in visual basic 6.0
    By Badrinath18 in forum Software Development
    Replies: 5
    Last Post: 02-07-2011, 07:28 PM
  2. How to create a Smart Tag DLL in Visual Basic?
    By warehouse peon in forum Software Development
    Replies: 5
    Last Post: 27-02-2010, 05:04 AM
  3. How to Create ActiveX Controls in Visual Basic 6
    By geokilla in forum Software Development
    Replies: 3
    Last Post: 30-09-2009, 03:36 PM
  4. Create ActiveX dll with Visual Basic
    By B_Hodge in forum Software Development
    Replies: 2
    Last Post: 08-05-2009, 10:28 PM
  5. How to create an .exe file in visual basic
    By kasha_i in forum Software Development
    Replies: 3
    Last Post: 21-04-2009, 11:53 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,118,110.11197 seconds with 17 queries