Click here to Skip to main content
15,888,590 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: timers without windows Pin
m.dietz15-Aug-06 20:24
m.dietz15-Aug-06 20:24 
GeneralRe: timers without windows Pin
led mike16-Aug-06 5:05
led mike16-Aug-06 5:05 
AnswerRe: timers without windows Pin
cje15-Aug-06 4:26
cje15-Aug-06 4:26 
QuestionSingleton problem !!! Pin
Bratu Aurelian15-Aug-06 4:05
Bratu Aurelian15-Aug-06 4:05 
QuestionGetting IP of a Network group PC Pin
Kharfax15-Aug-06 4:03
Kharfax15-Aug-06 4:03 
AnswerRe: Getting IP of a Network group PC Pin
David Crow15-Aug-06 4:09
David Crow15-Aug-06 4:09 
GeneralRe: Getting IP of a Network group PC Pin
Kharfax15-Aug-06 4:11
Kharfax15-Aug-06 4:11 
AnswerRe: Getting IP of a Network group PC Pin
A_Fa15-Aug-06 19:45
A_Fa15-Aug-06 19:45 
void GetLocalIPAddress(char *ipAddress)
{
#define MAX_NAME_LEN 65

WSADATA wsaData;
if ( WSAStartup( MAKEWORD( 2, 2 ), &wsaData ) == 0 )
{
char HostName[MAX_NAME_LEN];
struct in_addr *ptr;

gethostname (HostName,MAX_NAME_LEN);

hostent *host = gethostbyname(HostName);

if(host == NULL)
{
ipAddress = NULL ;
WSACleanup( );
return ;
}

ptr = (struct in_addr *)host->h_addr_list[0];

CString str;
str.Format("%d.%d.%d.%d",
ptr->S_un.S_un_b.s_b1,
ptr->S_un.S_un_b.s_b2,
ptr->S_un.S_un_b.s_b3,
ptr->S_un.S_un_b.s_b4);
strcpy(ipAddress,(char*)str.GetString());
}

WSACleanup( );
}

GeneralRe: Getting IP of a Network group PC Pin
Kharfax16-Aug-06 2:26
Kharfax16-Aug-06 2:26 
QuestionHow to auto size a column in a CListCtrl Pin
paperke6715-Aug-06 3:07
paperke6715-Aug-06 3:07 
AnswerRe: How to auto size a column in a CListCtrl Pin
RChin15-Aug-06 4:17
RChin15-Aug-06 4:17 
AnswerRe: How to auto size a column in a CListCtrl Pin
JWood15-Aug-06 4:19
JWood15-Aug-06 4:19 
AnswerRe: How to auto size a column in a CListCtrl Pin
Hamid_RT16-Aug-06 4:55
Hamid_RT16-Aug-06 4:55 
AnswerRe: How to auto size a column in a CListCtrl Pin
paperke6718-Aug-06 11:52
paperke6718-Aug-06 11:52 
QuestionInterdependent classes Pin
CoolASL15-Aug-06 0:24
CoolASL15-Aug-06 0:24 
AnswerRe: Interdependent classes Pin
Maxwell Chen15-Aug-06 0:33
Maxwell Chen15-Aug-06 0:33 
GeneralRe: Interdependent classes Pin
CoolASL15-Aug-06 5:31
CoolASL15-Aug-06 5:31 
AnswerRe: Interdependent classes Pin
Christian Graus15-Aug-06 2:12
protectorChristian Graus15-Aug-06 2:12 
GeneralRe: Interdependent classes Pin
CoolASL15-Aug-06 3:58
CoolASL15-Aug-06 3:58 
GeneralRe: Interdependent classes Pin
Christian Graus15-Aug-06 11:03
protectorChristian Graus15-Aug-06 11:03 
GeneralRe: Interdependent classes Pin
CoolASL15-Aug-06 22:07
CoolASL15-Aug-06 22:07 
AnswerRe: Interdependent classes [modified] Pin
Zac Howland15-Aug-06 9:42
Zac Howland15-Aug-06 9:42 
GeneralRe: Interdependent classes Pin
BadKarma15-Aug-06 21:07
BadKarma15-Aug-06 21:07 
GeneralRe: Interdependent classes Pin
CoolASL15-Aug-06 22:09
CoolASL15-Aug-06 22:09 
GeneralRe: Interdependent classes Pin
Zac Howland16-Aug-06 5:01
Zac Howland16-Aug-06 5:01 

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.