03-14-2016 07:41 PM
hi,every one!
I am researching that how to create the tdms(tdm)file in vc 2010 , I added the TDM C DLL in my project and
make a sample program referenced of the writefile.c ,but I have some problems as followed:
1. to create a TDM file ,the code is
DDCFileHandle file;
int ret = DDC_CreateFile ("C:\\1.tdm", "TDM", "", "", "", "", &file);
with this two lines, the 1.tdm file was displayed in the C: , but the file was not created successed,
because the "ret" value is -6211( DDC_StorageCouldNotBeOpened), which was defined in nilibddc.h.
2. if I want to create a TDMS file ,the code is
DDCFileHandle file;
int ret = DDC_CreateFile ("C:\\1.tdms", "TDMS", "", "", "", "", &file);
But the tdms file was not displayed in C:
what cause these two problems,please help me ! thank u!
03-15-2016 05:24 AM
I would try creating the file in another place: nowadays disk root is protected and you cannot create/modify a file in it. Even the windows explorer shows only New>>Folder in the context menu
03-16-2016 12:22 AM
thank u,I have solved problem.
I added the floder "Data Model",the programm is OK.