Public variable in ActiveX DLL project
I have an application with 2 projects: an exe and an ActiveX DLL project.
The DLL contains some classes and is ‘Single threaded apartment’.
The module section of DLL contains a public variable vp1 (integer)
The EXE program instantiates an object in DLL program and call a method that set the vp1 variable.
Then the EXE program instantiate another object in DLL program and call a method that show the value of vp1.
But I don’t see the value already set with the first object: vp1 variable isn’t public for all classes from DLL project.
Why ?
I mention that these things happen when I run the exe file of the EXE project. When I run the Project from IDE, the second class shows the right value for the public variable.