L
Leif902
Hi all,
I'm working on a little project and have hit a roadblock,
I'm trying to make an extension for a program who's extension DLL's
must return either a double or a null terminating string (no void).
This extension is actually a wrapper for another managed DLL which
dosn't follow these rules (my dll will call it's functions and return
the results as doubles and strings which the prog. can understand).
The problem i'm having is this.
Because I can't create global instances of a managed object in Visual
C[++] I can not create an instance of the object that can be read and
modified by all the functions in the DLL. The DLL i'm trying to wrap
has an object that I need an instance of (to store data and change
settings in)... and all the functions need access too it, but of
course w/ managed code it can't be global.
Is there any workaround for this? The application can't create an
instance of the object, it's expansion mechanism only executes
functions from the DLL.
I need to be able to have all my functions read/write data from the
same instance.
Thanks, and sorry if this is poorly stated
- Leif
I'm working on a little project and have hit a roadblock,
I'm trying to make an extension for a program who's extension DLL's
must return either a double or a null terminating string (no void).
This extension is actually a wrapper for another managed DLL which
dosn't follow these rules (my dll will call it's functions and return
the results as doubles and strings which the prog. can understand).
The problem i'm having is this.
Because I can't create global instances of a managed object in Visual
C[++] I can not create an instance of the object that can be read and
modified by all the functions in the DLL. The DLL i'm trying to wrap
has an object that I need an instance of (to store data and change
settings in)... and all the functions need access too it, but of
course w/ managed code it can't be global.
Is there any workaround for this? The application can't create an
instance of the object, it's expansion mechanism only executes
functions from the DLL.
I need to be able to have all my functions read/write data from the
same instance.
Thanks, and sorry if this is poorly stated
- Leif