Saving data between DLL calls
-
Is there a way to save information between function calls when using load library? I can always use a file on the drive, or redefine my function params, just curious. Darroll Not one person lives in the present. Only the past. I can prove it.
-
Is there a way to save information between function calls when using load library? I can always use a file on the drive, or redefine my function params, just curious. Darroll Not one person lives in the present. Only the past. I can prove it.
a global variable in a DLL will persist until your app releases the DLL. -c
All you have to do is tell the people they are being attacked, and denounce the opposition for lack of patriotism and exposing the country to danger. -- Herman Goering
-
a global variable in a DLL will persist until your app releases the DLL. -c
All you have to do is tell the people they are being attacked, and denounce the opposition for lack of patriotism and exposing the country to danger. -- Herman Goering
That would be a prob as I release the dll every time I call the function. It is a plugin. Is that the only way? Darroll Not one person lives in the present. Only the past. I can prove it.
-
That would be a prob as I release the dll every time I call the function. It is a plugin. Is that the only way? Darroll Not one person lives in the present. Only the past. I can prove it.
Darroll wrote: Is that the only way? maybe not the only way, but it's the obvious way :) for plugins, i always write the data to a file somewhere (or the registry, depending on my mood). -c
All you have to do is tell the people they are being attacked, and denounce the opposition for lack of patriotism and exposing the country to danger. -- Herman Goering
-
Darroll wrote: Is that the only way? maybe not the only way, but it's the obvious way :) for plugins, i always write the data to a file somewhere (or the registry, depending on my mood). -c
All you have to do is tell the people they are being attacked, and denounce the opposition for lack of patriotism and exposing the country to danger. -- Herman Goering
My next thought is how to know when the app starts as to not save data between sessions. I may have to have the app set a running flag in the registry or something. If there is an easier way then this. Any clues? Darroll Not one person lives in the present. Only the past. I can prove it.
-
My next thought is how to know when the app starts as to not save data between sessions. I may have to have the app set a running flag in the registry or something. If there is an easier way then this. Any clues? Darroll Not one person lives in the present. Only the past. I can prove it.
you could use a mutex, but a reg key might be just as easy. -c
All you have to do is tell the people they are being attacked, and denounce the opposition for lack of patriotism and exposing the country to danger. -- Herman Goering