Click here to Skip to main content
15,887,442 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Free memory allocated by std::multimap Pin
pasztorpisti11-Oct-12 22:53
pasztorpisti11-Oct-12 22:53 
Questionhow to import COM interface methods in Win32 dll? Pin
litu kumar30-Sep-12 19:58
litu kumar30-Sep-12 19:58 
AnswerRe: how to import COM interface methods in Win32 dll? Pin
«_Superman_»1-Oct-12 21:29
professional«_Superman_»1-Oct-12 21:29 
GeneralOff topic Pin
Richard MacCutchan2-Oct-12 2:55
mveRichard MacCutchan2-Oct-12 2:55 
GeneralRe: Off topic Pin
«_Superman_»2-Oct-12 3:00
professional«_Superman_»2-Oct-12 3:00 
GeneralRe: Off topic Pin
Richard MacCutchan2-Oct-12 3:23
mveRichard MacCutchan2-Oct-12 3:23 
QuestionTooltip for ATL toolbar Pin
Sakhalean24-Sep-12 18:43
Sakhalean24-Sep-12 18:43 
QuestionCAsyncSocket Send( arguments ) Pin
bkelly1318-Sep-12 16:13
bkelly1318-Sep-12 16:13 
Windows 7, Visual Studio 2008, MFC, C++

Intellisense says the arguments for this method are:

C++
Send( const void *lpBuf, int nBufLen, int Flasg = 0 )

An MSDN web page has example code that looks like this:

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


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

C++
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 21:50
mveRichard MacCutchan18-Sep-12 21:50 
GeneralRe: CAsyncSocket Send( arguments ) Pin
bkelly1319-Sep-12 12:13
bkelly1319-Sep-12 12:13 
AnswerRe: CAsyncSocket Send( arguments ) Pin
pasztorpisti29-Sep-12 23:52
pasztorpisti29-Sep-12 23:52 
GeneralRe: CAsyncSocket Send( arguments ) Pin
Richard MacCutchan30-Sep-12 1:07
mveRichard MacCutchan30-Sep-12 1:07 
GeneralRe: CAsyncSocket Send( arguments ) Pin
pasztorpisti30-Sep-12 3:16
pasztorpisti30-Sep-12 3:16 
GeneralRe: CAsyncSocket Send( arguments ) Pin
Richard MacCutchan30-Sep-12 4:00
mveRichard MacCutchan30-Sep-12 4:00 
GeneralRe: CAsyncSocket Send( arguments ) Pin
pasztorpisti30-Sep-12 4:07
pasztorpisti30-Sep-12 4:07 
GeneralRe: CAsyncSocket Send( arguments ) Pin
pasztorpisti30-Sep-12 4:03
pasztorpisti30-Sep-12 4:03 
GeneralRe: CAsyncSocket Send( arguments ) Pin
Richard MacCutchan30-Sep-12 4:13
mveRichard MacCutchan30-Sep-12 4:13 
GeneralRe: CAsyncSocket Send( arguments ) Pin
bkelly1330-Sep-12 5:44
bkelly1330-Sep-12 5:44 
GeneralRe: CAsyncSocket Send( arguments ) Pin
Richard MacCutchan30-Sep-12 6:10
mveRichard MacCutchan30-Sep-12 6:10 
GeneralRe: CAsyncSocket Send( arguments ) Pin
pasztorpisti30-Sep-12 6:38
pasztorpisti30-Sep-12 6:38 
GeneralRe: CAsyncSocket Send( arguments ) Pin
bkelly1330-Sep-12 6:16
bkelly1330-Sep-12 6:16 
GeneralRe: CAsyncSocket Send( arguments ) Pin
pasztorpisti30-Sep-12 6:31
pasztorpisti30-Sep-12 6:31 
Questionget instance of object (in exe) from dll caller Pin
MrKBA17-Sep-12 4:38
MrKBA17-Sep-12 4:38 
AnswerRe: get instance of object (in exe) from dll caller Pin
pasztorpisti17-Sep-12 6:57
pasztorpisti17-Sep-12 6:57 
GeneralRe: get instance of object (in exe) from dll caller Pin
MrKBA17-Sep-12 9:32
MrKBA17-Sep-12 9:32 

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.