|
-
Dec 4th, 2000, 10:17 AM
#1
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 ...
-
Dec 4th, 2000, 10:44 AM
#2
Hyperactive Member
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.
-
Dec 4th, 2000, 10:56 AM
#3
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 ?
-
Dec 4th, 2000, 10:58 AM
#4
Hyperactive Member
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!
-
Dec 4th, 2000, 11:09 AM
#5
I mean how can i access the function i made in a dll i made in vb from code of standert exe of vb ...
-
Dec 4th, 2000, 11:29 AM
#6
Hyperactive Member
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
-
Dec 4th, 2000, 02:19 PM
#7
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|