instar4per
Programmer
I have an application in which I take a large volume of domain names (the current list I have is approximately 35,000), and find out various information on them (including, WHOIS info, resolved IP, etc).
Rather than hard-code these in, I would like to use a modular design, and add the components at run time (plugins). This part I can implement just fine. The part I am confused on is how to report the data back to the host application.
The idea I had in mind was this, and I would very much appreciate comments / criticism on it:
Creating a DLL for a specific application, such as WHOIS parsing. Get the list of domains into an array, and pass the address of the array to the DLL (ByRef?). The DLL would in turn use an array of windows sockets to run quieries against the WHOIS server (I am aware of the speed limitations, I found out the hard way
). The part I am unsure of would be how to return the value back to my program (domain x returns value of 'y').
I cannot use events, at least in the way that I would know how to. This is because I am going to be using an array of loaded controls, which does not support the WithEvents modifier.
The way I am probably going to resort to would be polling, although this is really not what I want to do. If anyone has ideas on using a sexy solution such as a callback, I would be very interested.
Please let me know how it turns out, -iNSTA
aim: instar4per
email: instar4per @ hotmail.com
Rather than hard-code these in, I would like to use a modular design, and add the components at run time (plugins). This part I can implement just fine. The part I am confused on is how to report the data back to the host application.
The idea I had in mind was this, and I would very much appreciate comments / criticism on it:
Creating a DLL for a specific application, such as WHOIS parsing. Get the list of domains into an array, and pass the address of the array to the DLL (ByRef?). The DLL would in turn use an array of windows sockets to run quieries against the WHOIS server (I am aware of the speed limitations, I found out the hard way
![[mad] [mad] [mad]](/data/assets/smilies/mad.gif)
I cannot use events, at least in the way that I would know how to. This is because I am going to be using an array of loaded controls, which does not support the WithEvents modifier.
The way I am probably going to resort to would be polling, although this is really not what I want to do. If anyone has ideas on using a sexy solution such as a callback, I would be very interested.
Please let me know how it turns out, -iNSTA
aim: instar4per
email: instar4per @ hotmail.com