C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 20th, 2002, 08:19 AM
Turbo Fredo's Avatar
Turbo Fredo Turbo Fredo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: France
Posts: 0 Turbo Fredo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question CDRW : how 2 determine free space ?

Hello friends !

New user on your nice forum

I'm a french VC++ developer and I have a problem...apologizes for my poor english; do not hesitate to teach me if necessary.

I'm writing a small app used to backup dental images onto a ZIP (no problem) / JAZZ (no problem) / CD-RW (BIG problem !!!).

I would like to know how to determine the free space on the CD-RW and how to write on it (my users have WinXP and directCD by default).

I tried to search this forum for keywords like "rewritable", "cdrw", "IsCdrw" and so on but without success

I cannot get the free space thanks to GetDiskFreeSpaceEx() - as we do for a hdd for instance - while the explorer give me 656 Mb...
I continue to search through the MSDN and Internet; many thanks for your support

With kind regards.

Turbo Fredo - To support my racing team, please visit my team or my homepage. Many thanks

Reply With Quote
  #2  
Old August 20th, 2002, 01:40 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,966 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 52 m 24 sec
Reputation Power: 189
cd writing is a hard topic. up to some years ago, every writer needed its own driver. and even worse, they did not come with windows drivers, they built drivers for specific burning programs only!

today most are compatible to MMC or MMC2, thus making it much easier to handle them. but still not an easy task.

if you know your program will only run on windows XP, you´re lucky. it supports MMC writers by default installation. and there should be a SDK or client to the "cd-writer" service.
if not, you should buy a CD-Writer library eg. from Goldenhawk. this will save you 5 years of development

sorry that i cannot be more specific on the windows XP thing. did you search www.google.com and http://msdn.microsoft.com ?

what is this "directCD"? is it a third-party software? then you also should search on their homepage. maybe they supply a SDK too...
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #3  
Old August 22nd, 2002, 10:16 AM
Turbo Fredo's Avatar
Turbo Fredo Turbo Fredo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: France
Posts: 0 Turbo Fredo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks a lot for your reply M.Hirsch !

Yes I tried with google / msdn (I have a subscription) but...

While the meantime I found and tried SHGetDiskFreeSpace() - very similar to GetDiskFreeSpaceEx() - but I get only the "non-free" (sorry, I don't know the english words for this) space for the moment. I had to improve my skills but this way (SHell functions) could be interesting to determine the free space.

"directCD"? is a third-party software (from adaptec, included in EasyCdCreator) allowing you to burn (or prepare the burning) with a simple drag & drop from explorer window for instance. It works on different OS and is included into WinXP as a standard component. Regarding the writing process, I think I'm going to use SHGetSpecialFolderLocation() / SHGetSpecialFolderPath() to get the special folder use to prepare the writing (WinXP specific) to avoid many years of development .

Many, many thanks for your support !

Turbo Fredo - To support my racing team, please visit my team or my homepage. Many thanks

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > CDRW : how 2 determine free space ?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap