Click here to Skip to main content
15,887,936 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Multi-line List Control Pin
federico.strati2-Nov-10 5:39
federico.strati2-Nov-10 5:39 
AnswerRe: Multi-line List Control Pin
«_Superman_»2-Nov-10 7:06
professional«_Superman_»2-Nov-10 7:06 
QuestionXML parsing Pin
Benjamin Bruno2-Nov-10 3:19
Benjamin Bruno2-Nov-10 3:19 
AnswerRe: XML parsing Pin
CPallini2-Nov-10 3:25
mveCPallini2-Nov-10 3:25 
AnswerRe: XML parsing Pin
ShilpiP2-Nov-10 19:36
ShilpiP2-Nov-10 19:36 
QuestionAFX_EXT_CLASS Problem. Pin
002comp1-Nov-10 23:30
002comp1-Nov-10 23:30 
AnswerRe: AFX_EXT_CLASS Problem. Pin
Niklas L1-Nov-10 23:35
Niklas L1-Nov-10 23:35 
QuestionHelp me DisConnect Internet use Ras Pin
so0_lanhlung21-Nov-10 8:10
so0_lanhlung21-Nov-10 8:10 
#include "stdio.h"
#include "conio.h"
#include "windows.h"
#include "Wininet.h"
#include "Ras.h"
#include "raserror.h"
#pragma comment(lib, "rasapi32.lib")

int main()
{
	LPRASCONN lpRasConn;
	DWORD dwCb=0;
	DWORD dwRet;
	DWORD dwConnections = 0;
	HRASCONN hRasConn;
	
	lpRasConn = (LPRASCONN) HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, dwCb);

	lpRasConn[0].dwSize=sizeof(RASCONN) ;

    dwRet = RasEnumConnections(lpRasConn, &dwCb, &dwConnections);

	if(dwRet==ERROR_SUCCESS)
		for(int i=0 ; i < dwConnections ; i++)
		{
			hRasConn= lpRasConn[i].hrasconn;
			BOOL b=RasHangUp(hRasConn);
		}
//	HeapFree(GetProcessHeap(), 0, lpRasConn);
	_getch();
	
}

i don't know where was it wrong?
sorry if my english is not well Laugh | :laugh:
AnswerRe: Help me DisConnect Internet use Ras Pin
«_Superman_»1-Nov-10 8:15
professional«_Superman_»1-Nov-10 8:15 
GeneralRe: Help me DisConnect Internet use Ras Pin
so0_lanhlung21-Nov-10 8:28
so0_lanhlung21-Nov-10 8:28 
GeneralRe: Help me DisConnect Internet use Ras Pin
«_Superman_»1-Nov-10 8:41
professional«_Superman_»1-Nov-10 8:41 
AnswerRe: Help me DisConnect Internet use Ras Pin
David Crow1-Nov-10 9:11
David Crow1-Nov-10 9:11 
AnswerRe: Help me DisConnect Internet use Ras Pin
Alain Rist1-Nov-10 10:15
Alain Rist1-Nov-10 10:15 
QuestionC2504 error using CMFCButton (or other CMFCFxxx classes) within a DLL Pin
Ralph1-Nov-10 6:51
Ralph1-Nov-10 6:51 
QuestionRe: C2504 error using CMFCButton (or other CMFCFxxx classes) within a DLL Pin
Christoph Bail1-Nov-10 9:14
Christoph Bail1-Nov-10 9:14 
AnswerRe: C2504 error using CMFCButton (or other CMFCFxxx classes) within a DLL Pin
Ralph1-Nov-10 20:29
Ralph1-Nov-10 20:29 
GeneralRe: C2504 error using CMFCButton (or other CMFCFxxx classes) within a DLL Pin
Christoph Bail1-Nov-10 21:07
Christoph Bail1-Nov-10 21:07 
GeneralRe: C2504 error using CMFCButton (or other CMFCFxxx classes) within a DLL Pin
Ralph2-Nov-10 8:49
Ralph2-Nov-10 8:49 
GeneralRe: C2504 error using CMFCButton (or other CMFCFxxx classes) within a DLL Pin
Christoph Bail2-Nov-10 10:37
Christoph Bail2-Nov-10 10:37 
QuestionICommDlgBrowser2 interface not working.... Pin
AmbiguousName1-Nov-10 6:05
AmbiguousName1-Nov-10 6:05 
AnswerRe: ICommDlgBrowser2 interface not working.... Pin
CPallini1-Nov-10 23:15
mveCPallini1-Nov-10 23:15 
QuestionCompiler error when including afxtempl.h Pin
piul1-Nov-10 2:55
piul1-Nov-10 2:55 
AnswerRe: Compiler error when including afxtempl.h Pin
Christoph Bail1-Nov-10 4:03
Christoph Bail1-Nov-10 4:03 
GeneralRe: Compiler error when including afxtempl.h Pin
piul1-Nov-10 4:46
piul1-Nov-10 4:46 
GeneralRe: Compiler error when including afxtempl.h Pin
Christoph Bail1-Nov-10 5:08
Christoph Bail1-Nov-10 5:08 

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.