Click here to Skip to main content
15,914,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSet Back color of Statusbar and Menubar. Pin
Le@rner27-Feb-09 18:23
Le@rner27-Feb-09 18:23 
AnswerRe: Set Back color of Statusbar and Menubar. Pin
«_Superman_»27-Feb-09 20:35
professional«_Superman_»27-Feb-09 20:35 
GeneralRe: Set Back color of Statusbar and Menubar. Pin
Le@rner27-Feb-09 21:04
Le@rner27-Feb-09 21:04 
QuestionNeed Suggestions For Final Project in COmputer scinces (BSCS).............. Pin
shaina223127-Feb-09 17:43
shaina223127-Feb-09 17:43 
AnswerRe: Need Suggestions For Final Project in COmputer scinces (BSCS).............. Pin
Stuart Dootson27-Feb-09 20:32
professionalStuart Dootson27-Feb-09 20:32 
QuestionSMS text messaging? Pin
Dave Calkins27-Feb-09 16:52
Dave Calkins27-Feb-09 16:52 
QuestionFaster "FileExists"? Pin
Peter Weyzen27-Feb-09 15:29
Peter Weyzen27-Feb-09 15:29 
AnswerRe: Faster "FileExists"? [modified] Pin
Garth J Lancaster27-Feb-09 16:02
professionalGarth J Lancaster27-Feb-09 16:02 
Peter Weyzen wrote:
offline network volume


Im not sure about the offline vs online part - what file system are you using ? (either way, scanning using _findfirst() etc may take time enough on its own)

I use (quick/dirty) :-

#include <sys/stat.h>

bool bFExists(const string &szFile)
{
struct _stat buf;
return (_stat(szFile.c_str(), &buf) == 0);
}

on online ie currently mounted Novell drives

If a drive of yours is 'offline' how does it come 'online' - some sort of automount ? maybe listing drive letters (which should include mapped drives etc) or unc paths might be quicker to see if a drive is online .. in which case if its not there's no point scanning for it ?

Peter Weyzen wrote:
get notifications about network volumes (and drive mounts) coming online...


that might depend on what sort of file system/drive it is - there are notifications etc for 'drive removal'/insertion, ie flash/portable/usb etc

[modified] : this may help with the online/offline issue (or may be way off base) http://www.codeproject.com/KB/system/HwDetect.aspx[^]

'g'
QuestionRe: Faster "FileExists"? Pin
David Crow27-Feb-09 16:28
David Crow27-Feb-09 16:28 
AnswerRe: Faster "FileExists"? Pin
Peter Weyzen27-Feb-09 18:26
Peter Weyzen27-Feb-09 18:26 
GeneralRe: Faster "FileExists"? Pin
David Crow28-Feb-09 11:02
David Crow28-Feb-09 11:02 
QuestionAccessing the date from webcamera with pure C++. Is it possible? Pin
mk_427-Feb-09 12:40
mk_427-Feb-09 12:40 
AnswerRe: Accessing the date from webcamera with pure C++. Is it possible? Pin
Garth J Lancaster27-Feb-09 15:45
professionalGarth J Lancaster27-Feb-09 15:45 
GeneralRe: Accessing the date from webcamera with pure C++. Is it possible? [modified] Pin
mk_428-Feb-09 0:08
mk_428-Feb-09 0:08 
GeneralRe: Accessing the date from webcamera with pure C++. Is it possible? Pin
ky_rerun28-Feb-09 18:26
ky_rerun28-Feb-09 18:26 
GeneralRe: Accessing the date from webcamera with pure C++. Is it possible? Pin
mk_41-Mar-09 1:26
mk_41-Mar-09 1:26 
GeneralRe: Accessing the date from webcamera with pure C++. Is it possible? Pin
ky_rerun1-Mar-09 5:51
ky_rerun1-Mar-09 5:51 
GeneralRe: Accessing the date from webcamera with pure C++. Is it possible? Pin
mk_41-Mar-09 8:03
mk_41-Mar-09 8:03 
QuestionMagnifying image & Resetting client scrollbars? Pin
Kiran Satish27-Feb-09 11:10
Kiran Satish27-Feb-09 11:10 
AnswerRe: Magnifying image & Resetting client scrollbars? Pin
Stuart Dootson27-Feb-09 20:44
professionalStuart Dootson27-Feb-09 20:44 
GeneralRe: Magnifying image & Resetting client scrollbars? Pin
Kiran Satish28-Feb-09 11:55
Kiran Satish28-Feb-09 11:55 
GeneralRe: Magnifying image & Resetting client scrollbars? Pin
Stuart Dootson28-Feb-09 12:02
professionalStuart Dootson28-Feb-09 12:02 
AnswerRe: Magnifying image & Resetting client scrollbars? Pin
Kiran Satish26-Mar-09 6:07
Kiran Satish26-Mar-09 6:07 
QuestionHow to catch a Msg in CView? Pin
Software200727-Feb-09 9:39
Software200727-Feb-09 9:39 
AnswerRe: How to catch a Msg in CView? Pin
Stuart Dootson27-Feb-09 9:55
professionalStuart Dootson27-Feb-09 9:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.