Click here to Skip to main content
15,908,264 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Return more than one parameter from a single function Pin
CodingLover18-Dec-07 23:43
CodingLover18-Dec-07 23:43 
GeneralRe: Return more than one parameter from a single function Pin
Nelek19-Dec-07 0:24
protectorNelek19-Dec-07 0:24 
QuestionRe: Return more than one parameter from a single function Pin
Hamid_RT19-Dec-07 1:33
Hamid_RT19-Dec-07 1:33 
GeneralRe: Return more than one parameter from a single function Pin
CPallini19-Dec-07 2:17
mveCPallini19-Dec-07 2:17 
GeneralRe: Return more than one parameter from a single function Pin
David Crow19-Dec-07 3:00
David Crow19-Dec-07 3:00 
Questionvc++ to actionscript Pin
aravindakumar18-Dec-07 22:31
aravindakumar18-Dec-07 22:31 
QuestionRe: vc++ to actionscript Pin
Nelek18-Dec-07 22:39
protectorNelek18-Dec-07 22:39 
GeneralRe: vc++ to actionscript Pin
aravindakumar18-Dec-07 23:04
aravindakumar18-Dec-07 23:04 
GeneralRe: vc++ to actionscript Pin
Nelek18-Dec-07 23:10
protectorNelek18-Dec-07 23:10 
GeneralRe: vc++ to actionscript Pin
aravindakumar18-Dec-07 23:08
aravindakumar18-Dec-07 23:08 
GeneralRe: vc++ to actionscript Pin
msr_codeproject25-Dec-07 21:59
msr_codeproject25-Dec-07 21:59 
GeneralApplication Crash error Pin
Atul2318-Dec-07 21:26
Atul2318-Dec-07 21:26 
GeneralRe: Application Crash error Pin
Don Box18-Dec-07 21:32
Don Box18-Dec-07 21:32 
GeneralRe: Application Crash error Pin
CPallini18-Dec-07 21:46
mveCPallini18-Dec-07 21:46 
GeneralRe: Application Crash error Pin
Peter Weyzen18-Dec-07 21:53
Peter Weyzen18-Dec-07 21:53 
GeneralRe: Application Crash error Pin
Nelek18-Dec-07 22:22
protectorNelek18-Dec-07 22:22 
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 

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.