annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

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
Messaggio 1 di 2
5.673Visualizzazioni

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
Messaggio 2 di 2
5.661Visualizzazioni