Click here to Skip to main content
15,894,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CFileStatus m_mtime problems Pin
Eddy Vluggen30-Jun-16 2:54
professionalEddy Vluggen30-Jun-16 2:54 
GeneralRe: CFileStatus m_mtime problems Pin
Member 1253112930-Jun-16 3:14
Member 1253112930-Jun-16 3:14 
AnswerRe: CFileStatus m_mtime problems Pin
Richard MacCutchan30-Jun-16 2:54
mveRichard MacCutchan30-Jun-16 2:54 
AnswerRe: CFileStatus m_mtime problems Pin
Jochen Arndt30-Jun-16 3:06
professionalJochen Arndt30-Jun-16 3:06 
AnswerRe: CFileStatus m_mtime problems Pin
Member 1253112930-Jun-16 21:51
Member 1253112930-Jun-16 21:51 
QuestionCompile dll in Ubuntu to include in Windows 7 (32 bit) program Pin
Member 1224497229-Jun-16 6:41
Member 1224497229-Jun-16 6:41 
AnswerRe: Compile dll in Ubuntu to include in Windows 7 (32 bit) program Pin
Jochen Arndt29-Jun-16 7:08
professionalJochen Arndt29-Jun-16 7:08 
AnswerRe: Compile dll in Ubuntu to include in Windows 7 (32 bit) program Pin
leon de boer29-Jun-16 7:22
leon de boer29-Jun-16 7:22 
Questionstd::string declaration in header file error Pin
Member 1224497229-Jun-16 3:26
Member 1224497229-Jun-16 3:26 
QuestionRe: std::string declaration in header file error Pin
David Crow29-Jun-16 3:33
David Crow29-Jun-16 3:33 
AnswerRe: std::string declaration in header file error Pin
Member 1224497229-Jun-16 3:41
Member 1224497229-Jun-16 3:41 
QuestionRe: std::string declaration in header file error Pin
Richard MacCutchan29-Jun-16 3:43
mveRichard MacCutchan29-Jun-16 3:43 
AnswerRe: std::string declaration in header file error Pin
Member 1224497229-Jun-16 3:54
Member 1224497229-Jun-16 3:54 
QuestionType Conversion happens while writing to Logfile in VC++ Pin
aruzhere28-Jun-16 21:36
aruzhere28-Jun-16 21:36 
AnswerRe: Type Conversion happens while writing to Logfile in VC++ Pin
Jochen Arndt28-Jun-16 22:29
professionalJochen Arndt28-Jun-16 22:29 
AnswerRe: Type Conversion happens while writing to Logfile in VC++ Pin
Richard MacCutchan28-Jun-16 22:53
mveRichard MacCutchan28-Jun-16 22:53 
GeneralRe: Type Conversion happens while writing to Logfile in VC++ Pin
aruzhere28-Jun-16 23:04
aruzhere28-Jun-16 23:04 
GeneralRe: Type Conversion happens while writing to Logfile in VC++ Pin
Richard MacCutchan28-Jun-16 23:43
mveRichard MacCutchan28-Jun-16 23:43 
GeneralRe: Type Conversion happens while writing to Logfile in VC++ Pin
aruzhere29-Jun-16 2:24
aruzhere29-Jun-16 2:24 
GeneralRe: Type Conversion happens while writing to Logfile in VC++ Pin
aruzhere29-Jun-16 2:42
aruzhere29-Jun-16 2:42 
QuestionopenMP loop and exception Pin
Joerg Michels27-Jun-16 23:38
Joerg Michels27-Jun-16 23:38 
QuestionHeap Corruption issue Pin
Ben Aldhouse21-Jun-16 10:27
Ben Aldhouse21-Jun-16 10:27 
QuestionRe: Heap Corruption issue Pin
David Crow21-Jun-16 10:47
David Crow21-Jun-16 10:47 
AnswerRe: Heap Corruption issue Pin
Ben Aldhouse21-Jun-16 12:45
Ben Aldhouse21-Jun-16 12:45 
QuestionWinsock - FD_WRITE Pin
Vijjuuu.21-Jun-16 4:54
Vijjuuu.21-Jun-16 4:54 
Hi all,

i am developing client program using WSAAsyncselect() in Winsock2.
i have few queries regarding FD_WRITE.
i understood that when client is connected to server. There will be FD_WRITE event posted stating that we can send the data to server. However, i want to send data to server based on some other events that the application is interested in. i am not quite sure how the FD_WRITE event will be fired when i want send data to server.

here is the pseudo.

C++
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
	switch (message)
	{
	case WM_SOMEOTHEREVENT:
		// collect the data. we need to send collected data to sever (right now data is stored in a list).  
		break;
	case WM_SOCKET:
		switch (WSAGETSELECTEVENT(lParam))
		{
             // how to fire this event when application wants to send data ?
		     case FD_WRITE:

		     break;
		}
		break;
	}
	return 0;
}


Thanks in advance.

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.