Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connect to Excel Failure
#13
Macros running in separate process cannot access global variables of macros running in QM or other processes. Each process has its own global variables. To initialize them, call your init2 function in each process.

I don't recommend to have many global variables. Especially those that are defined and initialized in init2.

From QM Help, 'Make exe' topic:

Quote:If you use global variables that are initialized at QM startup, you should add the initialization code to the exe, or these variables in exe will be empty. For example, call the initialization function at the beginning of the main function (you can use #if EXE to skip it when running in QM). This is not needed for global variables that are initialized by constructor. This is not needed for predefined global variables.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)