I need to create some global variables accesible from an exe and some activex dll.
I found a solution by creating a class in the main program , register it in ROT(running object table) and after that in each dll I can get the instance of that class and use all his proprierties/methods.
The only drawback is that when we start 2 or more main programs only the first instance may be accessed, so only the firts instance will work good.
I'm looking for anote solution.
Any help will be apreciated,
Thx, Catalin.
I found a solution by creating a class in the main program , register it in ROT(running object table) and after that in each dll I can get the instance of that class and use all his proprierties/methods.
The only drawback is that when we start 2 or more main programs only the first instance may be accessed, so only the firts instance will work good.
I'm looking for anote solution.
Any help will be apreciated,
Thx, Catalin.