View Single Post
  #19  
Old April 27th, 2005, 12:56 AM
DJYale DJYale is offline
Registered User
 
Join Date: Nov 2004
Posts: 165
Re: BUG in 3.108- Using ZIP file conversion

Admin, here is a thought:

Quote:
Any suggestions how we can overcome this are welcome!!! Who knows, we may just be missing the real key that one of you can define for us.
Instead of using the . as an ending delimiter as you are now, read each filename in to a string, rtrim the trailing spaces, then parse the last 4 chars.

This would leave you with .cdg, .zip, .bin, etc. Then you wouldn't need the . in the "template". each file read would be automatically parsed and the final 4 chars removed, so the only thing being taken from the user would be the template ...

That would give you fileNameVariable = (Template) + (last four parsed) to feed back to directory services.

You could set it up in a case as: (yes this is kind of VB pseudo code, but can do the same with c++)

Select case lastFour:
Case ".bin" : Call handleer for .bin file
Case ".zip" : Call handler for zip
Case ".mp3": Find matching CDG and Call handler for mp3+g
End select

Last edited by DJYale; April 27th, 2005 at 01:03 AM.
Reply With Quote