PDA

Click to See Complete Forum and Search --> : axDLL or axEXE?


giannopo
Jun 7th, 2002, 03:31 AM
Hi,

My project is a collection of EXEs.
Each EXE connects to a database and reads some data.
In order to avoid a new EXE read again the data, that maybe another EXE has already read, I try to make this:

To create a axDLL of axEXE that do the job.
For example when an EXE needs data it send the request to the DLL/EXE.
DLL/EXE has a dictionary. If the data is in dictionary, returns the data to EXE with no read. If it is not in dictionary, then reads data from database, store the new data in dictionary for later use, and returns the data to the EXE.

Thanks in advance for your help.
Elias

shunt
Jun 7th, 2002, 12:58 PM
You will have to use the activeX .EXE. You will not be able to share data between normal .EXE's using .dll's. This is because .dll's are inprocess (running within the exe's space).

Give me a moment to give you an example that does exactly what you want.

shunt
Jun 7th, 2002, 01:40 PM
Find example attatched. Note that you can not run the application when both projects are loaded in the same IDE. Thus, don't use the vbg. Open the two projects individualy.

Try running the .exe. Open many .exe's and play.