Solved

IJolietDiscMaster/IStorage filename length problem.

Posted on 2004-10-07
6
526 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: 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

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

717 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