Click here to Skip to main content
15,919,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MFC -Help Pin
Richard MacCutchan27-May-14 21:14
mveRichard MacCutchan27-May-14 21:14 
GeneralRe: MFC -Help Pin
imran.prdc27-May-14 21:16
imran.prdc27-May-14 21:16 
GeneralRe: MFC -Help Pin
imran.prdc27-May-14 21:16
imran.prdc27-May-14 21:16 
GeneralRe: MFC -Help Pin
Richard MacCutchan27-May-14 21:29
mveRichard MacCutchan27-May-14 21:29 
GeneralRe: MFC -Help Pin
Stefan_Lang27-May-14 21:30
Stefan_Lang27-May-14 21:30 
QuestionRegQueryValueEx returns wrong value Pin
vks1125-May-14 23:57
vks1125-May-14 23:57 
AnswerRe: RegQueryValueEx returns wrong value Pin
Richard MacCutchan26-May-14 0:26
mveRichard MacCutchan26-May-14 0:26 
GeneralRe: RegQueryValueEx returns wrong value Pin
vks1126-May-14 23:24
vks1126-May-14 23:24 
AnswerRe: RegQueryValueEx returns wrong value Pin
Freak3026-May-14 3:13
Freak3026-May-14 3:13 
GeneralRe: RegQueryValueEx returns wrong value Pin
vks1126-May-14 23:23
vks1126-May-14 23:23 
AnswerRe: RegQueryValueEx returns wrong value Pin
Randor 26-May-14 14:06
professional Randor 26-May-14 14:06 
GeneralRe: RegQueryValueEx returns wrong value Pin
vks1126-May-14 23:23
vks1126-May-14 23:23 
GeneralProblem in reading BMP Header Pin
Benjamin Bruno25-May-14 19:03
Benjamin Bruno25-May-14 19:03 
GeneralRe: Problem in reading BMP Header Pin
Richard MacCutchan25-May-14 21:48
mveRichard MacCutchan25-May-14 21:48 
GeneralRe: Problem in reading BMP Header Pin
Heng Xiangzhong26-May-14 15:11
Heng Xiangzhong26-May-14 15:11 
GeneralRe: Problem in reading BMP Header Pin
CPallini26-May-14 22:01
mveCPallini26-May-14 22:01 
QuestionC Makefile warning: passing arg 2 of 'connect' from incompatible pointer type Pin
Office 36525-May-14 17:03
Office 36525-May-14 17:03 
AnswerRe: C Makefile warning: passing arg 2 of 'connect' from incompatible pointer type Pin
Richard MacCutchan25-May-14 21:43
mveRichard MacCutchan25-May-14 21:43 
GeneralRe: C Makefile warning: passing arg 2 of 'connect' from incompatible pointer type Pin
Office 36525-May-14 22:37
Office 36525-May-14 22:37 
GeneralRe: C Makefile warning: passing arg 2 of 'connect' from incompatible pointer type Pin
Richard MacCutchan25-May-14 22:52
mveRichard MacCutchan25-May-14 22:52 
GeneralRe: C Makefile warning: passing arg 2 of 'connect' from incompatible pointer type Pin
Office 36526-May-14 0:14
Office 36526-May-14 0:14 
GeneralRe: C Makefile warning: passing arg 2 of 'connect' from incompatible pointer type Pin
Richard MacCutchan26-May-14 0:23
mveRichard MacCutchan26-May-14 0:23 
GeneralRe: C Makefile warning: passing arg 2 of 'connect' from incompatible pointer type Pin
Office 36526-May-14 18:48
Office 36526-May-14 18:48 
thank so Must...but you can help solution me again Please??

Now gmkae build file dpss.c not warning already..but Plugin Me cann't sent password to protocal LDAP From Sun to Active Directory not have event log... I don't know sun directory need config port same function send_message
int send_message(char* message)
{
	char* ip = "172.32.5.107";
	char* port = "12199";

	if (argument[0] != NULL)
		ip = argument[0];
	if (argument[1] != NULL)
		port = argument[1];

	int sockfd, portno, n;
    struct sockaddr_in serv_addr;  
    struct hostent *server;

    char buffer[256];
    portno = atoi(port);
    sockfd = socket(AF_INET, SOCK_STREAM, 0);
    if (sockfd < 0)
	{
        error("ERROR opening socket");
		exit(0);
	}
	else
	{
    	server = gethostbyname(ip);
    	if (server == NULL) {
        	//fprintf(stderr,"ERROR, no such host\n");
        	//exit(0);
			close(sockfd);
			return(0);
    	}
    	bzero((char *) &serv_addr, sizeof(serv_addr));		
    	serv_addr.sin_family = AF_INET;
		
    	bcopy((char *)server->h_addr, 
         	(char *)&serv_addr.sin_addr.s_addr,
         	server->h_length);		
    	serv_addr.sin_port = htons(portno);		

		if (connect(sockfd,(struct sockaddr *)&serv_addr,sizeof(serv_addr)) < 0) {  //เพิ่ม (struct sockaddr *) เข้าไป
        	//error("ERROR connecting");			
			close(sockfd);			
			return(0);
		}		
    	bzero(buffer,256);
		n = write(sockfd,message,strlen(message));
    	//if (n < 0)
    	//     error("ERROR writing to socket");
    	bzero(buffer,256);
    	//n = read(sockfd,buffer,255);
    	//if (n < 0) 
        	//error("ERROR reading from socket");
		
    	//printf("%s\n",buffer);
	}	
	close(sockfd);	
    return 0;
	
}

GeneralRe: C Makefile warning: passing arg 2 of 'connect' from incompatible pointer type Pin
Richard MacCutchan26-May-14 21:33
mveRichard MacCutchan26-May-14 21:33 
QuestionGNU Gettext and windows localization Pin
Member 854422623-May-14 16:31
Member 854422623-May-14 16:31 

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.