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

C / C++ / MFC

 
AnswerRe: dialog maximize problem Pin
Saurabh.Garg5-Apr-06 21:47
Saurabh.Garg5-Apr-06 21:47 
AnswerRe: dialog maximize problem Pin
Sarvan AL5-Apr-06 22:51
Sarvan AL5-Apr-06 22:51 
GeneralRe: dialog maximize problem Pin
chybin5-Apr-06 23:38
chybin5-Apr-06 23:38 
QuestionHow to use DevKitAdvance? Pin
Lord Kixdemp5-Apr-06 20:00
Lord Kixdemp5-Apr-06 20:00 
QuestionAbout static and Edit control Pin
VPNampoothiri5-Apr-06 19:40
VPNampoothiri5-Apr-06 19:40 
AnswerRe: About static and Edit control Pin
Hamid_RT5-Apr-06 19:44
Hamid_RT5-Apr-06 19:44 
AnswerRe: About static and Edit control Pin
Ștefan-Mihai MOGA5-Apr-06 20:24
professionalȘtefan-Mihai MOGA5-Apr-06 20:24 
QuestionHow to get IP address? Pin
J51219825-Apr-06 19:13
J51219825-Apr-06 19:13 
To get ip address i have this code.

Do any one know any simple method to get current IP?

CString CSignIn::GetIP()
{
	CString strIp;

	//Init winsock
	WSADATA wsaData;
	int nErrorCode = WSAStartup(MAKEWORD(1,1), &wsaData);
	if (nErrorCode != 0) {
		//Cannot initialize winsock
		return _T("");
	}

	char strHostName[81];
	if (gethostname(strHostName, 80)==0)
	{
		hostent *pHost = gethostbyname(strHostName);
		if (pHost->h_addrtype == AF_INET)
		{
			in_addr **ppip=(in_addr**)pHost->h_addr_list; 
			
			//Enumarate all addresses
			while (*ppip) 
			{
				in_addr ip=**ppip;
				strIp = CString(inet_ntoa(ip));
				ppip++; 
				if (strIp!=_T("")) {
					break;
				}
			}
		}
	}

	return strIp;
}
{/PRE> 

JAYARAJ

AnswerRe: How to get IP address? Pin
Hamid_RT5-Apr-06 20:59
Hamid_RT5-Apr-06 20:59 
QuestionHow to make buttons on ToolBar with inequable Width? Pin
bruspark5-Apr-06 18:22
bruspark5-Apr-06 18:22 
AnswerRe: How to make buttons on ToolBar with inequable Width? Pin
Nibu babu thomas5-Apr-06 18:46
Nibu babu thomas5-Apr-06 18:46 
GeneralRe: How to make buttons on ToolBar with inequable Width? Pin
bruspark5-Apr-06 23:53
bruspark5-Apr-06 23:53 
AnswerRe: How to make buttons on ToolBar with inequable Width? Pin
Hamid_RT5-Apr-06 19:04
Hamid_RT5-Apr-06 19:04 
GeneralRe: How to make buttons on ToolBar with inequable Width? Pin
bruspark6-Apr-06 0:06
bruspark6-Apr-06 0:06 
QuestionLanguage setting in Resource Property Pin
ilidan5-Apr-06 18:04
ilidan5-Apr-06 18:04 
AnswerRe: Language setting in Resource Property Pin
Waldermort5-Apr-06 19:53
Waldermort5-Apr-06 19:53 
GeneralRe: Language setting in Resource Property Pin
ilidan5-Apr-06 21:40
ilidan5-Apr-06 21:40 
AnswerRe: need help Pin
Christian Graus5-Apr-06 17:53
protectorChristian Graus5-Apr-06 17:53 
GeneralRe: need help Pin
ilidan5-Apr-06 18:19
ilidan5-Apr-06 18:19 
GeneralRe: need help Pin
Christian Graus5-Apr-06 18:22
protectorChristian Graus5-Apr-06 18:22 
GeneralRe: need help Pin
ilidan5-Apr-06 18:28
ilidan5-Apr-06 18:28 
GeneralRe: need help Pin
Christian Graus5-Apr-06 18:46
protectorChristian Graus5-Apr-06 18:46 
QuestionSlicing code for rapid prototyping Pin
M.Sendil Kumar5-Apr-06 17:47
M.Sendil Kumar5-Apr-06 17:47 
QuestionInternet Programming Pin
CNewbie5-Apr-06 17:27
CNewbie5-Apr-06 17:27 
QuestionGet caption of menu item of MS.Word Pin
vtalau5-Apr-06 16:45
vtalau5-Apr-06 16:45 

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.