Click here to Skip to main content
11,429,154 members (54,012 online)

ATL / WTL / STL

 
QuestionUSBView Compile Error Pin
Jim Fell5-Oct-12 11:17
memberJim Fell5-Oct-12 11:17 
AnswerRe: USBView Compile Error Pin
Wes Aday5-Oct-12 11:33
memberWes Aday5-Oct-12 11:33 
GeneralRe: USBView Compile Error Pin
Jim Fell10-Oct-12 9:04
memberJim Fell10-Oct-12 9:04 
QuestionFree memory allocated by std::multimap Pin
khaliloenit4-Oct-12 3:41
memberkhaliloenit4-Oct-12 3:41 
AnswerRe: Free memory allocated by std::multimap Pin
pasztorpisti6-Oct-12 16:26
memberpasztorpisti6-Oct-12 16:26 
AnswerRe: Free memory allocated by std::multimap [modified] Pin
Stephen Hewitt11-Oct-12 22:53
memberStephen Hewitt11-Oct-12 22:53 
GeneralRe: Free memory allocated by std::multimap Pin
pasztorpisti11-Oct-12 23:53
memberpasztorpisti11-Oct-12 23:53 
Questionhow to import COM interface methods in Win32 dll? Pin
litu kumar30-Sep-12 20:58
memberlitu kumar30-Sep-12 20:58 
AnswerRe: how to import COM interface methods in Win32 dll? Pin
«_Superman_»1-Oct-12 22:29
member«_Superman_»1-Oct-12 22:29 
GeneralOff topic Pin
Richard MacCutchan2-Oct-12 3:55
mvpRichard MacCutchan2-Oct-12 3:55 
GeneralRe: Off topic Pin
«_Superman_»2-Oct-12 4:00
member«_Superman_»2-Oct-12 4:00 
GeneralRe: Off topic Pin
Richard MacCutchan2-Oct-12 4:23
mvpRichard MacCutchan2-Oct-12 4:23 
QuestionTooltip for ATL toolbar Pin
Sakhalean24-Sep-12 19:43
memberSakhalean24-Sep-12 19:43 
QuestionCAsyncSocket Send( arguments ) [modified] Pin
bkelly1318-Sep-12 17:13
memberbkelly1318-Sep-12 17:13 
Windows 7, Visual Studio 2008, MFC, C++

Intellisense says the arguments for this method are:

Send( const void *lpBuf, int nBufLen, int Flasg = 0 )
An MSDN web page has example code that looks like this:

Send((LPCTSTR)m_sendBuffer + m_nBytesSent, 
         m_nBytesBufferSize - m_nBytesSent);


Either way, I cannot get the right combination. I have:

SYSTEMTIME m_current_time;
GetSystemTime( &m_current_time );
int t1 = sizeof( m_current_time );
int chars_sent = m_C_Server_Send_Time_Socket->Send( (LPCTSTR) m_current_time, t1,   0 );
Where m_C_Server_Send_Time_Socket is the object created from CAsyncSocket to do all the transactions once the connection has been established.

How should the arguments to Send() be written?
Thanks for your time


modified 18-Sep-12 22:50pm.

AnswerRe: CAsyncSocket Send( arguments ) Pin
Richard MacCutchan18-Sep-12 22:50
mvpRichard MacCutchan18-Sep-12 22:50 
GeneralRe: CAsyncSocket Send( arguments ) Pin
bkelly1319-Sep-12 13:13
memberbkelly1319-Sep-12 13:13 
AnswerRe: CAsyncSocket Send( arguments ) Pin
pasztorpisti30-Sep-12 0:52
memberpasztorpisti30-Sep-12 0:52 
GeneralRe: CAsyncSocket Send( arguments ) Pin
Richard MacCutchan30-Sep-12 2:07
mvpRichard MacCutchan30-Sep-12 2:07 
GeneralRe: CAsyncSocket Send( arguments ) Pin
pasztorpisti30-Sep-12 4:16
memberpasztorpisti30-Sep-12 4:16 
GeneralRe: CAsyncSocket Send( arguments ) Pin
Richard MacCutchan30-Sep-12 5:00
mvpRichard MacCutchan30-Sep-12 5:00 
GeneralRe: CAsyncSocket Send( arguments ) Pin
pasztorpisti30-Sep-12 5:07
memberpasztorpisti30-Sep-12 5:07 
GeneralRe: CAsyncSocket Send( arguments ) Pin
pasztorpisti30-Sep-12 5:03
memberpasztorpisti30-Sep-12 5:03 
GeneralRe: CAsyncSocket Send( arguments ) Pin
Richard MacCutchan30-Sep-12 5:13
mvpRichard MacCutchan30-Sep-12 5:13 
GeneralRe: CAsyncSocket Send( arguments ) Pin
bkelly1330-Sep-12 6:44
memberbkelly1330-Sep-12 6:44 
GeneralRe: CAsyncSocket Send( arguments ) Pin
Richard MacCutchan30-Sep-12 7:10
mvpRichard MacCutchan30-Sep-12 7:10 
GeneralRe: CAsyncSocket Send( arguments ) Pin
pasztorpisti30-Sep-12 7:38
memberpasztorpisti30-Sep-12 7:38 
GeneralRe: CAsyncSocket Send( arguments ) [modified] Pin
bkelly1330-Sep-12 7:16
memberbkelly1330-Sep-12 7:16 
GeneralRe: CAsyncSocket Send( arguments ) [modified] Pin
pasztorpisti30-Sep-12 7:31
memberpasztorpisti30-Sep-12 7:31 
Questionget instance of object (in exe) from dll caller Pin
khaliloenit17-Sep-12 5:38
memberkhaliloenit17-Sep-12 5:38 
AnswerRe: get instance of object (in exe) from dll caller Pin
pasztorpisti17-Sep-12 7:57
memberpasztorpisti17-Sep-12 7:57 
GeneralRe: get instance of object (in exe) from dll caller Pin
khaliloenit17-Sep-12 10:32
memberkhaliloenit17-Sep-12 10:32 
JokeRe: get instance of object (in exe) from dll caller Pin
pasztorpisti17-Sep-12 14:43
memberpasztorpisti17-Sep-12 14:43 
GeneralRe: get instance of object (in exe) from dll caller Pin
pasztorpisti17-Sep-12 14:48
memberpasztorpisti17-Sep-12 14:48 
AnswerRe: get instance of object (in exe) from dll caller Pin
Richard MacCutchan17-Sep-12 23:16
mvpRichard MacCutchan17-Sep-12 23:16 
AnswerRe: get instance of object (in exe) from dll caller Pin
Stephen Hewitt18-Sep-12 19:49
memberStephen Hewitt18-Sep-12 19:49 
QuestionCAsyncSocket Connect says in use Pin
bkelly1316-Sep-12 7:07
memberbkelly1316-Sep-12 7:07 
Answerunexpected behavior [modified] Pin
bkelly1316-Sep-12 11:07
memberbkelly1316-Sep-12 11:07 
AnswerRe: CAsyncSocket Connect says in use Pin
Richard Andrew x6416-Sep-12 12:53
memberRichard Andrew x6416-Sep-12 12:53 
AnswerRe: CAsyncSocket Connect says in use Pin
pasztorpisti16-Sep-12 13:05
memberpasztorpisti16-Sep-12 13:05 
GeneralRe: CAsyncSocket Connect says in use Pin
bkelly1316-Sep-12 13:55
memberbkelly1316-Sep-12 13:55 
GeneralRe: CAsyncSocket Connect says in use Pin
pasztorpisti16-Sep-12 14:09
memberpasztorpisti16-Sep-12 14:09 
GeneralRe: CAsyncSocket Connect says in use Pin
bkelly1316-Sep-12 14:17
memberbkelly1316-Sep-12 14:17 
GeneralRe: CAsyncSocket Connect says in use Pin
pasztorpisti16-Sep-12 14:34
memberpasztorpisti16-Sep-12 14:34 
GeneralRe: CAsyncSocket Connect says in use [modified] Pin
bkelly1316-Sep-12 15:07
memberbkelly1316-Sep-12 15:07 
Questionbetter version of strcpy() and printf() Pin
bkelly1315-Sep-12 11:02
memberbkelly1315-Sep-12 11:02 
AnswerRe: better version of strcpy() and printf() Pin
Paul Watt15-Sep-12 13:33
mentorPaul Watt15-Sep-12 13:33 
GeneralRe: better version of strcpy() and printf() Pin
bkelly1315-Sep-12 16:34
memberbkelly1315-Sep-12 16:34 
GeneralRe: better version of strcpy() and printf() Pin
Paul Watt15-Sep-12 16:45
mentorPaul Watt15-Sep-12 16:45 
GeneralRe: better version of strcpy() and printf() Pin
bkelly1315-Sep-12 17:23
memberbkelly1315-Sep-12 17:23 
GeneralRe: better version of strcpy() and printf() Pin
pasztorpisti16-Sep-12 7:54
memberpasztorpisti16-Sep-12 7:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.150428.2 | Last Updated 30 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid