|
-
Nov 12th, 2000, 08:14 PM
#1
Thread Starter
Lively Member
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
-
Nov 12th, 2000, 11:03 PM
#2
New Member
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
-
Nov 14th, 2000, 06:23 PM
#3
Thread Starter
Lively Member
???
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?
-
Nov 15th, 2000, 01:54 AM
#4
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
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
|