Click here to Skip to main content
15,914,594 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SDI - - >Dialog Pin
«_Superman_»21-Feb-10 19:11
professional«_Superman_»21-Feb-10 19:11 
QuestionList Control Data Capacity Pin
hellogany21-Feb-10 16:49
hellogany21-Feb-10 16:49 
AnswerRe: List Control Data Capacity [modified] Pin
«_Superman_»21-Feb-10 17:09
professional«_Superman_»21-Feb-10 17:09 
AnswerRe: List Control Data Capacity Pin
KingsGambit21-Feb-10 18:16
KingsGambit21-Feb-10 18:16 
AnswerRe: List Control Data Capacity Pin
CPallini21-Feb-10 20:43
mveCPallini21-Feb-10 20:43 
AnswerRe: List Control Data Capacity Pin
David Crow22-Feb-10 3:00
David Crow22-Feb-10 3:00 
QuestionHow to find if a Directory is Indexed? Pin
Bryan Anslow21-Feb-10 9:48
Bryan Anslow21-Feb-10 9:48 
AnswerRe: How to find if a Directory in Indexed? Pin
Spawn@Melmac21-Feb-10 10:25
Spawn@Melmac21-Feb-10 10:25 
GeneralRe: How to find if a Directory in Indexed? Pin
Bryan Anslow21-Feb-10 12:21
Bryan Anslow21-Feb-10 12:21 
QuestionRe: How to find if a Directory in Indexed? Pin
David Crow21-Feb-10 15:50
David Crow21-Feb-10 15:50 
AnswerRe: How to find if a Directory in Indexed? Pin
Spawn@Melmac23-Feb-10 1:24
Spawn@Melmac23-Feb-10 1:24 
QuestionProblem using MFC to create multiple CDialog threads Pin
Spawn@Melmac21-Feb-10 6:14
Spawn@Melmac21-Feb-10 6:14 
AnswerRe: Problem using MFC to create multiple CDialog threads Pin
Chris Losinger21-Feb-10 8:27
professionalChris Losinger21-Feb-10 8:27 
AnswerRe: Problem using MFC to create multiple CDialog threads Pin
Avi Berger21-Feb-10 8:33
Avi Berger21-Feb-10 8:33 
GeneralRe: Problem using MFC to create multiple CDialog threads Pin
Spawn@Melmac21-Feb-10 10:00
Spawn@Melmac21-Feb-10 10:00 
GeneralRe: Problem using MFC to create multiple CDialog threads Pin
Spawn@Melmac23-Feb-10 1:59
Spawn@Melmac23-Feb-10 1:59 
QuestionBase64 and VC++ Pin
burslem200121-Feb-10 6:08
burslem200121-Feb-10 6:08 
AnswerRe: Base64 and VC++ Pin
Rajesh R Subramanian21-Feb-10 6:12
professionalRajesh R Subramanian21-Feb-10 6:12 
AnswerRe: Base64 and VC++ Pin
CPallini21-Feb-10 7:49
mveCPallini21-Feb-10 7:49 
AnswerRe: Base64 and VC++ Pin
Graham Breach21-Feb-10 9:57
Graham Breach21-Feb-10 9:57 
Questiondynamic variable argument list C/C++ Pin
yakabmarci21-Feb-10 4:06
yakabmarci21-Feb-10 4:06 
AnswerRe: dynamic variable argument list C/C++ Pin
Chris Losinger21-Feb-10 6:11
professionalChris Losinger21-Feb-10 6:11 
QuestionConnect to all LAN servers Pin
Manmohan2920-Feb-10 22:36
Manmohan2920-Feb-10 22:36 
i want to connect my application to all servers on LAN using TCP sockets.

UINT CD1MessageDlg::ScanLAN(LPVOID pParam)
{
	unsigned int tf0, tf1, tf2, tf3;
	CString tip = "";

	CD1MessageDlg *t;
	t=(CD1MessageDlg*)pParam;
	BOOL x = 1;
	// Loop for scanning LAN
	for (tf0 = 192; tf0 <= 192; tf0++)
	{
		for (tf1 = 168; tf1 <= 168; tf1++)
		{
			for (tf2 = 109; tf2 <= 117; tf2++)
			{
				for (tf3 = 1; tf3 <= 255; tf3++)
				{
					tip.Format("%u.%u.%u.%u", tf0, tf1, tf2, tf3);
					t->m_sConnectSocket.Connect(tip, 50000);
//.
//.
//.
// I will detach the socket and pass to seperate thread after it finds a server on LAN
//this line is not working even if i set my ip to 192.168.109.2 
//t->m_sConnectSocket.Connect(tip, 50000);
				}
				// reset tf3 to default value
				tf3 = 0;
			}
			// reset tf2 to default value
			tf2 = 109;
		}
		// reset tf1 to default value
		tf1 = 168;
	}
	return 0;
}


one more ques. can i reuse the same socket again and again for finding server as i'm doing in my this code.
Future Lies in Present.
Manmohan Bishnoi

AnswerRe: Connect to all LAN servers Pin
Garth J Lancaster20-Feb-10 23:28
professionalGarth J Lancaster20-Feb-10 23:28 
GeneralRe: Connect to all LAN servers Pin
Manmohan2921-Feb-10 0:46
Manmohan2921-Feb-10 0:46 

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.