Click here to Skip to main content
15,897,291 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Application Crash error Pin
Hamid_RT18-Dec-07 22:54
Hamid_RT18-Dec-07 22:54 
JokeRe: Application Crash error Pin
Nelek18-Dec-07 23:15
protectorNelek18-Dec-07 23:15 
GeneralRe: Application Crash error Pin
Hamid_RT19-Dec-07 1:34
Hamid_RT19-Dec-07 1:34 
QuestionHow to remove the Tittlebar & Menu bar of a SDI application Pin
msr_codeproject18-Dec-07 21:19
msr_codeproject18-Dec-07 21:19 
AnswerRe: How to remove the Tittlebar & Menu bar of a SDI application Pin
santhoshv8418-Dec-07 21:30
santhoshv8418-Dec-07 21:30 
AnswerTittlebar? Is that save for work? Pin
jhwurmbach18-Dec-07 23:26
jhwurmbach18-Dec-07 23:26 
GeneralDisconnecting from the internet programmtically Pin
emmmatty118-Dec-07 21:09
emmmatty118-Dec-07 21:09 
GeneralRe: Disconnecting from the internet programmtically Pin
David Crow19-Dec-07 3:15
David Crow19-Dec-07 3:15 
emmmatty1 wrote:
The internet connection can be in the form of dial up...


If RasDial() was used to make the connection, use RasHangUp() to terminate the connection.

I would think a better solution would be to mimic what happens when you right-click a connection and select Disable. I am not sure what API does this, however. You could try tapping into the Shell (i.e., opening the Network Connections applet in Control Panel, finding the Local Area Connection object, and then invoking its Enable or Disable menu item). I can do this via VBS but have not tried in VC++.

"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


modified on Wednesday, December 19, 2007 10:04:20 AM

GeneralRe: Disconnecting from the internet programmtically Pin
jhwurmbach19-Dec-07 3:35
jhwurmbach19-Dec-07 3:35 
Questionwhy Visual Studio can not optimize the initialization code? Pin
George_George18-Dec-07 20:35
George_George18-Dec-07 20:35 
AnswerRe: why Visual Studio can not optimize the initialization code? Pin
Nelek18-Dec-07 22:17
protectorNelek18-Dec-07 22:17 
GeneralRe: why Visual Studio can not optimize the initialization code? Pin
George_George18-Dec-07 23:13
George_George18-Dec-07 23:13 
GeneralRe: why Visual Studio can not optimize the initialization code? Pin
jhwurmbach19-Dec-07 3:47
jhwurmbach19-Dec-07 3:47 
GeneralRe: why Visual Studio can not optimize the initialization code? Pin
George_George19-Dec-07 3:58
George_George19-Dec-07 3:58 
QuestionWhat is the Maximum size of WCHAR Pin
santhoshv8418-Dec-07 20:05
santhoshv8418-Dec-07 20:05 
AnswerRe: What is the Maximum size of WCHAR Pin
Don Box18-Dec-07 20:26
Don Box18-Dec-07 20:26 
AnswerRe: What is the Maximum size of WCHAR Pin
codeII18-Dec-07 20:31
codeII18-Dec-07 20:31 
AnswerRe: What is the Maximum size of WCHAR Pin
Peter Weyzen18-Dec-07 21:52
Peter Weyzen18-Dec-07 21:52 
AnswerRe: What is the Maximum size of WCHAR Pin
David Crow19-Dec-07 3:29
David Crow19-Dec-07 3:29 
Questionmy problem is related to file handling Pin
rajneshmalik18-Dec-07 20:05
rajneshmalik18-Dec-07 20:05 
GeneralRe: my problem is related to file handling [modified] Pin
Nelek18-Dec-07 22:15
protectorNelek18-Dec-07 22:15 
GeneralRe: my problem is related to file handling Pin
Iain Clarke, Warrior Programmer19-Dec-07 1:22
Iain Clarke, Warrior Programmer19-Dec-07 1:22 
GeneralRe: my problem is related to file handling Pin
Nelek19-Dec-07 1:49
protectorNelek19-Dec-07 1:49 
GeneralRe: my problem is related to file handling Pin
David Crow19-Dec-07 3:32
David Crow19-Dec-07 3:32 
GeneralSystem Restart Pin
Kiran Pinjala18-Dec-07 19:03
Kiran Pinjala18-Dec-07 19:03 

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.