Click here to Skip to main content
15,899,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Printing Document Pin
Ganesh_T10-Jul-06 22:39
Ganesh_T10-Jul-06 22:39 
GeneralRe: Printing Document Pin
Hamid_RT11-Jul-06 0:28
Hamid_RT11-Jul-06 0:28 
GeneralRe: Printing Document Pin
Ganesh_T11-Jul-06 1:04
Ganesh_T11-Jul-06 1:04 
AnswerRe: Printing Document Pin
Monty210-Jul-06 22:33
Monty210-Jul-06 22:33 
GeneralRe: Printing Document [modified] Pin
Ganesh_T10-Jul-06 22:40
Ganesh_T10-Jul-06 22:40 
GeneralRe: Printing Document Pin
Monty210-Jul-06 22:55
Monty210-Jul-06 22:55 
Questiondetecting frame change in video Pin
Ram Murali10-Jul-06 21:46
Ram Murali10-Jul-06 21:46 
QuestionCTreeCtrl question Pin
zeus_master10-Jul-06 21:45
zeus_master10-Jul-06 21:45 
AnswerRe: CTreeCtrl question Pin
Hamid_RT10-Jul-06 21:47
Hamid_RT10-Jul-06 21:47 
AnswerRe: CTreeCtrl question Pin
Abhi Lahare10-Jul-06 21:52
Abhi Lahare10-Jul-06 21:52 
GeneralRe: CTreeCtrl question Pin
zeus_master10-Jul-06 22:07
zeus_master10-Jul-06 22:07 
QuestionProblem related to onPaint() Pin
LakshmiPathiRao10-Jul-06 21:33
LakshmiPathiRao10-Jul-06 21:33 
AnswerRe: Problem related to onPaint() Pin
Parthi_Appu10-Jul-06 21:41
Parthi_Appu10-Jul-06 21:41 
QuestionMFC Commandline.... Pin
Phil.Benson10-Jul-06 21:29
professionalPhil.Benson10-Jul-06 21:29 
AnswerRe: MFC Commandline.... Pin
Abhi Lahare10-Jul-06 21:47
Abhi Lahare10-Jul-06 21:47 
AnswerRe: MFC Commandline.... Pin
Monty210-Jul-06 22:20
Monty210-Jul-06 22:20 
GeneralRe: MFC Commandline.... Pin
Phil.Benson10-Jul-06 22:28
professionalPhil.Benson10-Jul-06 22:28 
QuestionIP ADRESS Pin
ashish dogra10-Jul-06 21:06
ashish dogra10-Jul-06 21:06 
AnswerRe: IP ADRESS Pin
Abhi Lahare10-Jul-06 21:12
Abhi Lahare10-Jul-06 21:12 
GeneralRe: IP ADRESS Pin
ashish dogra10-Jul-06 21:17
ashish dogra10-Jul-06 21:17 
AnswerRe: IP ADRESS Pin
A_Fa10-Jul-06 21:13
A_Fa10-Jul-06 21:13 
Hi jigar .

void GetIPAddress(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( );
}

AnswerRe: IP ADRESS Pin
Hamid_RT10-Jul-06 21:27
Hamid_RT10-Jul-06 21:27 
Questionhow can i get the images into listcontrol. Pin
Amit Agarrwal10-Jul-06 20:35
Amit Agarrwal10-Jul-06 20:35 
AnswerRe: how can i get the images into listcontrol. Pin
Code_Zombie10-Jul-06 20:55
Code_Zombie10-Jul-06 20:55 
GeneralRe: how can i get the images into listcontrol. Pin
Amit Agarrwal10-Jul-06 21:06
Amit Agarrwal10-Jul-06 21:06 

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.