Sviluppo e Sviluppi
martedì, maggio 11, 2004
 
OLE and DLL
I like to continue my analisys on the differences between DLLs and OLE Classes (I mean ACTIVEX classes).
The questions you must answer before to make choice is:
1.- Is the tool I need to extend so recent to use OLE mechanism?
2.- Which Data do I pass to the external logic to implements control?
3.- Have Data an Object Oriented Structure?
If you answer Yes to all questions than the best way to solve the problem is to use ActiveX (using for example VB).
If you answer NO to the first question you cannot use OLE technology.
If Data are too complex (strings, array or collection) is better to use ActiveX, infact DLL use a low level mechanism to exchange data with application and this is not so simple to understand and to implement.
So use ACTIVEX always if Answer to Question 1 is YES-
martedì, maggio 04, 2004
 
Is DLL a correct way to write code?
The "old" way to extend a programming environment using DLL is today a very good path to make application integration. Every Language, Programming tools offer the possibility to call external functions inside DLL. So you can interface a DB, or extend a script language by using DLL. As example consider developing a business logic to be called from every application (also an old one). You can do that by using some functions inside DLL that receive all elements from the original application then control all logic (by accessing some DBs or other) and return a syncronous feedbak to the original application.

Powered by Blogger