Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
C

canard29

@canard29
About
Posts
4
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • [C#] Propertygrid - Textbox and listbox for previous values
    C canard29

    Hi, In my propertygrid, I want to add a textbox with a arrow at the right side which can show all previous values. is it possible ? thanks for your help

    C# csharp help question

  • C++ socket and thread [modified]
    C canard29

    Think you for your help. I removed the comments and used

    . I hope it's easier to read.
    yes, you're right, I want to add a loop but I don't where in my code.

    Think you

    C / C++ / MFC c++ help question

  • C++ socket and thread [modified]
    C canard29

    this application execute this line : ExecuteCommand(buffer, NULL, 0) but only one time. I will check your links

    C / C++ / MFC c++ help question

  • C++ socket and thread [modified]
    C canard29

    Hi, I have a small programm which listen a socket in a new thread. but I want to restart the porgramm after the first message. Start the thread in main.cpp

    hThread = CreateThread( 
    				NULL,                       
    				0,                           
    				ThreadFunc,                
    				&dwThrdParam,              
    				0,                          
    				&dwThreadId);  
    

    The programm :

    DWORD WINAPI ThreadFunc( LPVOID lpParam ) 
    { 
    			WSAStartup(MAKEWORD(2,2),&initialisation_win32);
    			socket_recevoir=socket(AF_INET,SOCK_DGRAM,0);
    			information_recevoir.sin_family=AF_INET;
    			information_recevoir.sin_addr.s_addr=INADDR_ANY; 
    			information_recevoir.sin_port=htons(25);
    
    			bind(socket_recevoir,(struct sockaddr*)&information_recevoir,sizeof(information_recevoir));
    
    			tempo=sizeof(information_recevoir); 
    			nb_caracters=recvfrom(socket_recevoir,buffer,1515,0,(struct sockaddr*)&information_recevoir,&tempo);
    			buffer[nb_caracters]=0;
    
    			if (nb_caracters >0)
    			{
    				ExecuteCommand(buffer, NULL, 0);
    			}
    	
    		
    			closesocket(socket_recevoir);
    		
    
    	return 0; 
    } 
    

    In main.cpp, I want to call again this programm. Can you help me please ?

    modified on Monday, April 5, 2010 10:42 AM

    C / C++ / MFC c++ help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups