LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Create TMS file in VC++

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!

 

    

 

    

    

    

0 Kudos
Message 1 of 3
(3,437 Views)

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



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(3,421 Views)

thank u,I have solved problem.

I added the floder "Data Model",the programm is OK.

 

 

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