DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

tdm c dll example WriteFile.C getting error the storage could not be opened

While using the TDM C DLL in visual Studio 2010 on a windows 7 64 bit machine I get the following.

Generating data file...

Error: The storage could not be opened.

End of program, press Enter key to quit

 

Any clues why?

 

John Forsyth

0 Kudos
Message 1 of 2
(5,183 Views)

I can think of two reasons:

 

  • It is not possible to write here
static const char * FILE_PATH		= ".\\sampleFile.tdm";
  •  The resulting exe is not in the same folder as the runtime components
    Dominonilibddc\dev\bin\64-bit
    Dominonilibddc\dev\bin\32-bit
  • The microsoft runtime of the ddc lib is not installed on the system. VS 2010 has a different runtime. So the MSVC redist that DDC depends on is missing.
    Dominonilibddc\redist\64-bit\Microsoft_VC80_CRT_x86_x64.msm
    Dominonilibddc\redist\32-bit\Microsoft_VC80_CRT_x86.msm

     This can be checked if you open for example

    Dominonilibddc\dev\bin\64-bit\usiEx.dll

     in dependency walker.
    http://www.dependencywalker.com/

0 Kudos
Message 2 of 2
(5,171 Views)