Click here to Skip to main content
15,892,809 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how can i change main tool bar button state ? Pin
Iain Clarke, Warrior Programmer19-Feb-03 5:24
Iain Clarke, Warrior Programmer19-Feb-03 5:24 
GeneralRe: how can i change main tool bar button state ? Pin
Roger Allen19-Feb-03 5:28
Roger Allen19-Feb-03 5:28 
GeneralRe: how can i change main tool bar button state ? Pin
Iain Clarke, Warrior Programmer19-Feb-03 5:39
Iain Clarke, Warrior Programmer19-Feb-03 5:39 
GeneralRe: how can i change main tool bar button state ? Pin
Roger Allen19-Feb-03 6:00
Roger Allen19-Feb-03 6:00 
QuestionHow can i set different cursors of a view ? Pin
muna_utkal19-Feb-03 4:45
muna_utkal19-Feb-03 4:45 
AnswerRe: How can i set different cursors of a view ? Pin
Roger Allen19-Feb-03 5:18
Roger Allen19-Feb-03 5:18 
AnswerRe: How can i set different cursors of a view ? Pin
Iain Clarke, Warrior Programmer19-Feb-03 5:19
Iain Clarke, Warrior Programmer19-Feb-03 5:19 
GeneralWNetAddConnection2 Pin
Nic Oughton19-Feb-03 4:38
professionalNic Oughton19-Feb-03 4:38 
Hi,

I am using the WNetAddConnection2 function to create a user connection on a Windows2000 server. The connection is not persistent but I need it to remain active for the lifetime of a component on the client PC.

What is currently happening is that after 15 minutes idle time the server is deleting the clients connection.

I could run a timer, which calls the WNetAddConnection2 again.
However, apart from needlessly running a Windows timer, this only has an effect if the connection has already been deleted. So as we don't know the exact period between creation and idle time deletion there maybe a period before the timer tick where the client is disconnected.

Does anyone have any ideas on how this connection can be kept active until the component that created the connection wants to terminate it ?

Thanks in advance.

Nic Confused | :confused:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nic.oughton@trikon.com
GeneralRe: WNetAddConnection2 Pin
Daniel Lohmann22-Feb-03 0:32
Daniel Lohmann22-Feb-03 0:32 
QuestionEnable Printing? Pin
Jon Hulatt19-Feb-03 4:37
Jon Hulatt19-Feb-03 4:37 
AnswerRe: Enable Printing? Pin
Roger Allen19-Feb-03 5:26
Roger Allen19-Feb-03 5:26 
GeneralRe: Enable Printing? Pin
Jon Hulatt19-Feb-03 6:38
Jon Hulatt19-Feb-03 6:38 
QuestionHow Can i change keydown event inside edit box? Pin
muna_utkal19-Feb-03 4:35
muna_utkal19-Feb-03 4:35 
AnswerRe: How Can i change keydown event inside edit box? Pin
adamUK19-Feb-03 9:04
adamUK19-Feb-03 9:04 
GeneralResizing parent with child. Pin
User 988519-Feb-03 4:35
User 988519-Feb-03 4:35 
GeneralRe: Resizing parent with child. Pin
valikac19-Feb-03 9:23
valikac19-Feb-03 9:23 
GeneralCopy protection help Pin
Stefan Dahlin19-Feb-03 4:13
Stefan Dahlin19-Feb-03 4:13 
GeneralRe: Copy protection help Pin
LiquidKnight19-Feb-03 6:48
LiquidKnight19-Feb-03 6:48 
GeneralRe: Copy protection help Pin
Toni7819-Feb-03 11:39
Toni7819-Feb-03 11:39 
GeneralRe: Copy protection help Pin
Stefan Dahlin19-Feb-03 11:43
Stefan Dahlin19-Feb-03 11:43 
GeneralStyle Question... Pin
work_to_live19-Feb-03 3:36
work_to_live19-Feb-03 3:36 
GeneralRe: Style Question... Pin
AlexO19-Feb-03 3:55
AlexO19-Feb-03 3:55 
GeneralLooking for light weight databases (performance is critical) Pin
Chen Venkataraman19-Feb-03 3:17
Chen Venkataraman19-Feb-03 3:17 
GeneralRe: Looking for light weight databases (performance is critical) Pin
AlexO19-Feb-03 3:57
AlexO19-Feb-03 3:57 
QuestionIs there a function which returns the file names? Pin
julych19-Feb-03 3:15
julych19-Feb-03 3:15 

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.