In article <34609460.3761@bloomberg.com>, kagel@bloomberg.com wrote:
>Alexey Poukhovsky wrote:
>> Can anyone tell me, what to do with this situation:
>> I have to place some functions, which are working with Informix in DLL.
>> And make calls to them from different applications. For example, I create
>> DLL with only function:
>> long opendb(char *name)
>> {
>> $database name;
>> return sqlca.sqlcode;
>> }
>> The first application, called it got error=0 - it is Ok.
>> But, if the second app calls the same function (the first have not
>> finished), it has got error = -457.
>> After that both of applications become unusable - any of informix function
>> call got error -457.
>
>I do not think that you can put ESQL/C calls into a DLL.
Not true. Works fine with 7.12, 7.2x libraries. We have a dll that gets
accessed by Delphi apps, and it works just peachy.
>UNIX variant) for IPC. Considering how "well" Win32 OS's multi-task and
>communicate you may be best off biting the memory bullet and link in the
>Informix interface functions (like your opendb()) directly into each
>application.
DLL mechanisms work quite well in the Win32 environments. It ain't Unix but
it does the job...
Jan