Click here to Skip to main content
15,915,975 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to play .wav file and control speed of the playing .wav file Pin
Rajesh R Subramanian8-Jan-07 3:51
professionalRajesh R Subramanian8-Jan-07 3:51 
GeneralRe: How to play .wav file and control speed of the playing .wav file Pin
CraZyToLearn8-Jan-07 18:40
CraZyToLearn8-Jan-07 18:40 
GeneralRe: How to play .wav file and control speed of the playing .wav file Pin
S Douglas8-Jan-07 21:34
professionalS Douglas8-Jan-07 21:34 
AnswerRe: How to play .wav file and control speed of the playing .wav file Pin
Hamid_RT8-Jan-07 17:44
Hamid_RT8-Jan-07 17:44 
QuestionHow to play .wav file and control speed of the playing .wav file Pin
CraZyToLearn8-Jan-07 0:49
CraZyToLearn8-Jan-07 0:49 
AnswerRe: How to play .wav file and control speed of the playing .wav file Pin
Rajesh R Subramanian8-Jan-07 18:39
professionalRajesh R Subramanian8-Jan-07 18:39 
QuestionPost(Thread)Message() and System-wide hooks Pin
PatrykDabrowski8-Jan-07 0:18
PatrykDabrowski8-Jan-07 0:18 
QuestionProblem detecting Availability of Network Path Pin
Sudhir Mangla7-Jan-07 23:53
professionalSudhir Mangla7-Jan-07 23:53 
I have created a program in which I need to determine the availability
of a Shared folder path.

Here is the sample code
*********************************
#include <io.h>


m_sCopyToDrive = "t:\\test\\";


if( ::_access(m_sCopyToDrive.c_str(),0) == -1)
{
AfxMessageBox("Network is Down");
return FALSE;


}


else
{
AfxMessageBox("Network is UP");

}


*****************************************

To check if the network is up I ran the following test.
If Network connected.... result imediate Message box "Network is up"
Disconnect ethernet cable from network.
Program runs and after about 3 minutes "network is down" message box
appears. It takes about another minute for function to return.

Is there any other way to test if the network path is available or not


Thanks for the help,

Sudhir Mangla

http://Programmerworld.net
AND http://DevelopersVoice.com

(Free books , articles , Source Code and Programming Tools and Utilities)

AnswerRe: Problem detecting Availability of Network Path Pin
David Crow8-Jan-07 4:02
David Crow8-Jan-07 4:02 
QuestionQuestion about CFileDialog class Pin
eusto7-Jan-07 23:02
eusto7-Jan-07 23:02 
QuestionRe: Question about CFileDialog class Pin
prasad_som7-Jan-07 23:08
prasad_som7-Jan-07 23:08 
AnswerRe: Question about CFileDialog class Pin
Cedric Moonen7-Jan-07 23:09
Cedric Moonen7-Jan-07 23:09 
QuestionRe: Question about CFileDialog class Pin
Rajesh R Subramanian7-Jan-07 23:10
professionalRajesh R Subramanian7-Jan-07 23:10 
AnswerRe: Question about CFileDialog class Pin
eusto7-Jan-07 23:27
eusto7-Jan-07 23:27 
QuestionRe: Question about CFileDialog class Pin
Rajesh R Subramanian7-Jan-07 23:38
professionalRajesh R Subramanian7-Jan-07 23:38 
AnswerRe: Question about CFileDialog class Pin
eusto8-Jan-07 0:25
eusto8-Jan-07 0:25 
GeneralRe: Question about CFileDialog class Pin
Roger Stoltz8-Jan-07 0:40
Roger Stoltz8-Jan-07 0:40 
GeneralRe: Question about CFileDialog class Pin
eusto8-Jan-07 1:53
eusto8-Jan-07 1:53 
GeneralRe: Question about CFileDialog class Pin
Hamid_RT8-Jan-07 0:41
Hamid_RT8-Jan-07 0:41 
GeneralRe: Question about CFileDialog class Pin
eusto8-Jan-07 1:45
eusto8-Jan-07 1:45 
QuestionRe: Question about CFileDialog class Pin
Rajesh R Subramanian8-Jan-07 3:43
professionalRajesh R Subramanian8-Jan-07 3:43 
AnswerRe: Question about CFileDialog class Pin
eusto8-Jan-07 5:10
eusto8-Jan-07 5:10 
QuestionRe: Question about CFileDialog class Pin
David Crow8-Jan-07 4:08
David Crow8-Jan-07 4:08 
AnswerRe: Question about CFileDialog class Pin
eusto8-Jan-07 7:45
eusto8-Jan-07 7:45 
QuestionRe: Question about CFileDialog class Pin
David Crow8-Jan-07 8:26
David Crow8-Jan-07 8:26 

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.