[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

IJolietDiscMaster/IStorage filename length problem.

Posted on 2004-10-07
6
Medium Priority
?
545 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
3 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses

829 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