DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

File Access Denied from C++

Solved!
Go to solution

Sorry, this is my first time posting and I am not sure what board this should go to. 

 

I am developing a standalone C++ (MSVC) application that reads TDMS data and am using the nilibddc.lib to read the data.  I am running into a problem that if more than one copy of my application is running and trying to access the same data file, I get a "File Access Denied" message, I assume because the file is not being opened in read-only mode.

 

Is there any way to specify that the files are to be opened read-only so that multiple applications can access the file at the same time?

 

I am currently using the DDC_OpenFile( ) function.

 

Thanks

 

Ed Thomson

 

0 Kudos
Message 1 of 3
(3,866 Views)
Solution
Accepted by EdThomson
The DDC_OpenFileEx method let you specify the readonly option.
0 Kudos
Message 2 of 3
(3,854 Views)

Thanks - that worked.  Sorry, didn't see that one.

 

Ed

0 Kudos
Message 3 of 3
(3,840 Views)