Greetings All,
Please bear with me as I am a Visual FoxPro coder branching out ... ;-)
I have an application comprised of 3 separate programs that need to use a common set of variables. After researching, I believe I want to use an ActiveX EXE for the common object. I created an AxtiveX EXE with a Class Module. I added multiple properties to the Class Module, var1, var2, var3. I also create a single form (frmActiveX) within the ActiveX EXE project and placed some textboxes on it. This form is only created when I Initialize the Class.
I created two separate programs that reference my ActiveX EXE. When I run the first program, frmActiveX is created and shown. When the second program starts, I simply incremented a count to know how many programs are referencing the form.
Both programs can see and change the objects on the frmActiveX. The properties of the Class Module (var1, var2, var3) do not appear to be shared between the two programs, while the form frmActiveX does appear to a shared object.
What I am trying to accomplish is some sort of communication between processes. I can accomplish this using the frmActiveX, but is this the proper way to go?
I hope this makes sense and any suggestions would be greatly appreciated.
MSC
Please bear with me as I am a Visual FoxPro coder branching out ... ;-)
I have an application comprised of 3 separate programs that need to use a common set of variables. After researching, I believe I want to use an ActiveX EXE for the common object. I created an AxtiveX EXE with a Class Module. I added multiple properties to the Class Module, var1, var2, var3. I also create a single form (frmActiveX) within the ActiveX EXE project and placed some textboxes on it. This form is only created when I Initialize the Class.
I created two separate programs that reference my ActiveX EXE. When I run the first program, frmActiveX is created and shown. When the second program starts, I simply incremented a count to know how many programs are referencing the form.
Both programs can see and change the objects on the frmActiveX. The properties of the Class Module (var1, var2, var3) do not appear to be shared between the two programs, while the form frmActiveX does appear to a shared object.
What I am trying to accomplish is some sort of communication between processes. I can accomplish this using the frmActiveX, but is this the proper way to go?
I hope this makes sense and any suggestions would be greatly appreciated.
MSC