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 ...
Printable View
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 ...
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.
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 ?
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
I mean how can i access the function i made in a dll i made in vb from code of standert exe of vb ...
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
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 ..