-
Hey everyone,
I have a function that I want to keep updating in the future. However, every time I update the one function, I don't want to have to re-release the entire EXE, so I thought that it would probably be a good idea to drop the function into a DLL and then get the program to automatically download the DLL from a central server on the internet. Essentially, it will then autoupdate, with no probs! However, having put the function in the DLL and compiled the DLL I don't have a clue where to go from here (ie/ how to call the function, how to register the library). Any ideas, guys?
cheers,
Sam
-
u need to create an object for this .dll (class) in your .exe
option explicit
private obj1 as clsPractical
public function callPracticalJoke()
set obj1=new clsPractical
if obj1.practicalJoke = false then
exit function
end if
'note:modify your practicalJoke function to return a bollean value
-
???
I don't getcha. Let me say I've compiled a function, for instance DoSystemCheck(), into a DLL. How do I access that function from that DLL?
-
After you compile the dll register it then in your VB project reference the dll and then you use like a class module.
Code:
private functionfromDll as clsOrDLLName
set functionfromDll =new clsOrDLLName
functionfromDll.NameOfFunction
using it should look something like that