Results 1 to 7 of 7

Thread: How do access a dll i made

  1. #1
    Guest

    Arrow

    Hello - Just started "playing" with dll making and i wanted to know how can use the functions from the dll i made - Do you have some info about this subject - If so please Reply , Thank you ...

  2. #2
    Hyperactive Member
    Join Date
    Feb 2000
    Posts
    284
    If you have made the DLL it should have been registered otherwise you will need to register it using regsvr32. If you then want to refer to it in another VB project goto project references and look for your DLL. If it doesn't appear in the list it isn't registered. After that just treat it like you would any other reference in your project.

  3. #3
    Guest

    Question

    Ok - after i will do that , if the dll onlu countin one function - Say that function just makes a Msgbox and it is called "Test1" (the function)
    After i added the dll to that place i can Just write Test1 and it will activat it ?

  4. #4
    Hyperactive Member Abdulrahman's Avatar
    Join Date
    Oct 2000
    Location
    Scotland
    Posts
    281

    Re:

    I dont think hes meaning that..

    I think he means how to access a dll he made - the dll he made might have a bunch of files like audio or pictures etc.. and he wants to know how to access those from his .exe project.. (something similar on how to access data from your .res (resource)... but those are all in the same .exe that gets compiled at the end.

    I have done that.. need to get the exact procedures though.. its been a while now

    Abdul
    1+1=3
    make life simple, use a calculator!

  5. #5
    Guest
    I mean how can i access the function i made in a dll i made in vb from code of standert exe of vb ...

  6. #6
    Hyperactive Member onerrorgoto's Avatar
    Join Date
    Aug 1999
    Location
    Sweden
    Posts
    330

    Lightbulb Try this

    Hello H-man

    If I remember correctly, do this.

    In project referenses find your Dll and select it.

    In code then put this

    dim testdll as Mydll
    set testdll= new Mydll
    test.test 'will show your msgbox

    I think this will give you your msgbox.

    Also I can recomend that you red The COM-course by Carl here on VB-World.
    http://www.vbworld.com/activex/comcourse/

    god luck
    Onerrorgoto

    Dont be to optimistic, the light at the end of the tunnel might be a train

  7. #7
    Guest

    Arrow

    Ok - maby i was was unclear - so lets try again
    - i'v opened VB and opened ACTIVEX DLL - i made a function called "Test1" that get a parmater that is string - it takes the string and the function just Msgbox it
    - i complided it into DLL

    - Now i started a new VB project - Standert Exe ....
    i wanna call the Dll from the code and use the Test1 function (that is in the Dll)

    - HOW ?
    Thank you ..

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