Solved

IJolietDiscMaster/IStorage filename length problem.

Posted on 2004-10-07
6
521 Views
Last Modified: 2007-12-19
I am using IJolietDiscMaster::AddData(IStorage* pStorage,  long lFileOverwrite) to add files to a staged image file, to burn to CD.  To add files to the storage I use IStorage::CreateStream(..).

Now the IJoliet specs say I can have filename up to 64 characters long, but when adding files through IStorage::CreateStream(..) I can only use filenames with a max length of 31 characters as that is the limit set by IStorage::CreateStream(..).

Does anyone know a way around the 31 character limitation of IStorage::CreateStream(..)?
Or does anyone know of any other CD mastering API's/interfaces that are available?
I am using the Microsoft SDK for the IMAPI interfaces at the moment, and I believe there is others by Nero, etc available.  Any advice?

Any help would be appreciated,
Thanks
Scobar
0
Comment
Question by:Scobar
6 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 12255402
The NeroAPI can do what the UI implies - including the settigs to even overcome the Joliet file name length limitations.
0
 

Author Comment

by:Scobar
ID: 12640716
I have gotting help from Alex Feinman who has written a similar tool (http://isorecorder.alexfeinman.com/isorecorder.htm).  As a work around, I am now using the IShellFolder interfaces to get a storage pointer to the folder.  This mean I am not adding files one at a time, but I don't need that functionallity yet.

Thank you Alex and jkr for your help.

  HRESULT hr;
  IStorage * pStorage = NULL;
  LPITEMIDLIST pidl = NULL;
  IShellFolder * pFolder;
  IMalloc * pIMalloc;

  hr = SHGetMalloc(&pIMalloc);
  hr = SHGetDesktopFolder(&pFolder);
  hr = pFolder->ParseDisplayName(NULL, NULL, wszSourceFilename, NULL, &pidl, NULL);
 
  hr = pFolder->BindToStorage(pidl, NULL, IID_IStorage, (void**)&pStorage);
 
  pIMalloc->Free((void*)pidl);
  pFolder->Release();

  // add the storage to the staged image file
  hr = m_joliet->AddData(pStorage, bOverwriteExisting);
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12680968
Closed, 130 points refunded.

modulo
Community Support Moderator
Experts Exchange
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question