COM and dll
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi guys. I have a C++ dll that needs to be made available to VB and Delphi through the COM object, the dll itself is not to be modified. The COM object is ATL, nothing special really, and the exported C++ methods are all in 2 classes that are both defined for dllexport. The questions is this: how do I maintain the state in the clčient application? The client app needs to do something like "set X", then call "set Y", then call "Do foo", and then to call a function that will perform some action based on the current vars in the class. This means the state has to be maintained over the COM calls. I would appreciate any guidilines or articles and such that deal with this. Thank you.