Re: Creating a reference to a dll on runtime

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Fri, 19 Aug 2005 10:20:40 +0200, "Nijazi Halimaji" <spami@xxxxxxx>
wrote:

>Hi everybody
>
>Is it possible to create a reference to a dll on runtime? If yes, how?

Private Sub Command1_Click()
Dim C As Object

Set C = CreateObject("MyDll.ExposedClass")
Call C.ExposedMethod("This Came From Client")
End Sub


Note: 'MyDll' is the internal name of the DLL
.



Relevant Pages

  • RE: File Picker Dialog
    ... Must be in the .dll file that I have the problem. ... I can exactly replicate your error by removing the reference to the MS ... Dim strFileName As String ... Microsoft Active X Data Objects 2.1 Library ...
    (microsoft.public.access.modulesdaovba)
  • Re: Late Binding Problem between Excel and Project
    ... That is the reference that you need. ... Earlier you said yours required a VB6 dll, what might that be and why not ... Dim sPath As String ... "Dave Peterson" wrote: ...
    (microsoft.public.excel.programming)
  • Re: RaiseEvent fails from a Modal form
    ... trapped by the app that called the dll. ... Private Sub Command1_Click ... Set mobjHost = New AntTestModFormEvent.clsTest'change component ... Friend Sub SetHost(objHost As clsTest) ...
    (microsoft.public.vb.general.discussion)
  • Re: VB.Net not building added file
    ... What was happening was that I still had to manually add a reference to ... I would have thought that if the project was building the .dll, ... Imports System.Data.SqlClient ... Dim SqlConnection1 As SqlConnection ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Problem selecting printer
    ... My next problem now is my client wants to have the option of selecting a default paper tray for the selected printer, I have done a default paper size in a delphi application which is the sample as paper trays so I think there might be another post or to on this. ... This is a DLL which was produced by Microsoft presumably because of the device name length problem and also the various memory related problems they would also have been having with the code example I have just described. ... Private Sub Command1_Click ... Then in your main Form add one CommandButton and use the IDE properties window to set its name to cmdSelectPrinter. ...
    (microsoft.public.vb.general.discussion)