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.
(For instance, if the DLL i'm calling from had a class
"classSettings," I can't create a global instance of it in my DLL to
be read/written to by the functions)
Is there any workaround for this?
I need to be able to have all my functions read/write data from the
same instance of an object, unfortunatly it can't be global.
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.
(For instance, if the DLL i'm calling from had a class
"classSettings," I can't create a global instance of it in my DLL to
be read/written to by the functions)
Is there any workaround for this?
I need to be able to have all my functions read/write data from the
same instance of an object, unfortunatly it can't be global.
Thanks, and sorry if this is poorly stated
- Leif