It would be really cool if someone could make a small project that employees a call back procedure so as i can learn the purpose of and understand the way to use CallBacks:D
Much appreciated!:D:D:D
Printable View
It would be really cool if someone could make a small project that employees a call back procedure so as i can learn the purpose of and understand the way to use CallBacks:D
Much appreciated!:D:D:D
The best example is the Coffee project on the MSDN discs.
Here are some good links also though:
http://www.vbforums.com/showthread.p...lbacks+example
Actually that was the best one. Really though nothing beats that Coffee example.
The problem is that callbacks aren't really needed that often, they are basically a why to provide and/or share events from an object that can not direct support events. Maybe because you have to declare it in a standard module, or a new instance can not be created, or something along that line. So I can do up a little sample of just how to do callbacks but it wouldn't appear very useful without a scenerio that needed it.
I'll try anyway though....
Here I had this it is an example of sharing the same instance of an activeX exe with multiple applications, but it also uses callbacks for events. Remember to register (or run once) the ActiveX exe before you try the Test exe. Of course the source is all there too.
Thanks Edneeis i'll check those out:D
OK, I tried the Coffe program and i ran it and it worked and everything but i have no clue what i am supposed to learn from it. I mean it has like 4 different projects with timers and DLl's etc...
I know a callback can be implemneted much simpler than that. I just can't get a grasp on it with all that extra stuff thrown in...:(
Can anyone supply just a very basic bare bones nothing but example of a call back?
I know it's something like, I create a DLL, then another DLL or EXE creates an instance of that DLL and then cals a method from there which in tiurn creates another DLL....and on and:confused:
This will teach you how to do it. Beware, its highly technical:
http://www.visualbasicforum.com/show...threadid=26521
Here is another method - less teaching more framwork bare bones code:
http://www.visualbasicforum.com/show...threadid=26152
Cool thaks alot Chief. i'll check it out:D
That COM Interface plugin tutorial Rocks the Hzouse!
Written by an extremely knowledgeable friend over at www.visualbasicforum.com, it does indeed "rock the house". I especially like the demonstration of true event handling.