+1 800 256 3608 (toll-free in North America) or +49 7531 90 60 10| service@combit.com

Detecting In Use


(Guest) #1

Hi All,

I was wondering if anyone knows of a way to detect whether a project file is in use before attempting to open the project.

I see that there is an error message returned that the project may be in use or access denied to the network, immediately after I call the function;

iRtn = .LlDefineLayout(frm.hWnd, Script.Description, LL_PROJECT_CARD, sTempstr)

The error gets raised, but after clicking the OK button on the error message dialog, the designer comes up with a blank page and when I exit the designer, the iRtn value is zero.

I think I would rather the program let me terminate the call to LlDefineLayout than bring up a blank project.

Any help is appreciated.


(Guest) #2

Try to open the project file with exclusive access.

Paulchen

“Gary Bouchard” <gary.bouchard@comcas…> wrote in message
news:313282292008202715@combit.net

Hi All,

I was wondering if anyone knows of a way to detect whether a project
file is in use before attempting to open the project.

I see that there is an error message returned that the project may
be in use or access denied to the network, immediately after I call
the function;

iRtn = .LlDefineLayout(frm.hWnd, Script.Description,
LL_PROJECT_CARD, sTempstr)

The error gets raised, but after clicking the OK button on the error
message dialog, the designer comes up with a blank page and when I
exit the designer, the iRtn value is zero.

I think I would rather the program let me terminate the call to
LlDefineLayout than bring up a blank project.

Any help is appreciated.