cGetFiles32( ) and Vista
Posted: Fri Feb 23, 2007 8:50 pm
Here is a new one. I use cGetFiles32( ) to obtain the path/name of a file which is then recorded by my program for future reference.
I have not had any problems in all previous OS versions of Windows, but I found a new twist with Vista.
I have an interface to Quickbooks, and to initialize it the first time from my application, QB has to be running, and the company file must be open. No problem so far....
Then the application must know the location of the company file, so I call cGetFiles32( ) to obtain the name which is then stored in the registry for future calls by the application when posting to QB. Unfortunately, because QB has the file open, the Vista OS reports back that the file is already opened, and it says to select another file or close the file. It will not return the value as a result !
Does anyone have thoughts on how this can be addressed ?
Do we love Vista yet ?
Tim
I have not had any problems in all previous OS versions of Windows, but I found a new twist with Vista.
I have an interface to Quickbooks, and to initialize it the first time from my application, QB has to be running, and the company file must be open. No problem so far....
Then the application must know the location of the company file, so I call cGetFiles32( ) to obtain the name which is then stored in the registry for future calls by the application when posting to QB. Unfortunately, because QB has the file open, the Vista OS reports back that the file is already opened, and it says to select another file or close the file. It will not return the value as a result !
Does anyone have thoughts on how this can be addressed ?
Do we love Vista yet ?
Tim