07-31-2005, 06:30 AM
How to determine QM's working directory?
QM can be started from a shortcut that has certain properties. Right click a shortcut, then click Properties: "Start in:" lists the working directory. How to get this value automatically?
A search on google for this: GetWorkingDirectory c++, and a look at the QM Sample_TaskScheduler function, brings up some useful code currently beyond my knowledge. But needed is a function to get QM's working directory -- in my case to determine where certain dll's loaded in QM will look for their files, and then to pre-copy the expected files to that (RAM-drive) folder if they are missing.
Also might be needed is the full path to the shortcut link used to start QM.
Thanks :roll:
QM can be started from a shortcut that has certain properties. Right click a shortcut, then click Properties: "Start in:" lists the working directory. How to get this value automatically?
A search on google for this: GetWorkingDirectory c++, and a look at the QM Sample_TaskScheduler function, brings up some useful code currently beyond my knowledge. But needed is a function to get QM's working directory -- in my case to determine where certain dll's loaded in QM will look for their files, and then to pre-copy the expected files to that (RAM-drive) folder if they are missing.
Also might be needed is the full path to the shortcut link used to start QM.
Thanks :roll: