Click here to Skip to main content
15,896,118 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalsendto(); question. Pin
esepich28-Sep-03 6:28
esepich28-Sep-03 6:28 
GeneralRe: sendto(); question. Pin
Steve Mayfield28-Sep-03 18:45
Steve Mayfield28-Sep-03 18:45 
GeneralCustom RichEdit Control Pin
Ph@ntom28-Sep-03 5:53
Ph@ntom28-Sep-03 5:53 
QuestionHow to implement custom 'protocol' handler for IE? Pin
Robert Mao28-Sep-03 5:20
Robert Mao28-Sep-03 5:20 
AnswerRe: How to implement custom 'protocol' handler for IE? Pin
Ryan_Roberts28-Sep-03 5:57
Ryan_Roberts28-Sep-03 5:57 
GeneralMFC Application Pin
MrGee28-Sep-03 5:06
MrGee28-Sep-03 5:06 
GeneralRe: MFC Application Pin
Gary R. Wheeler28-Sep-03 5:18
Gary R. Wheeler28-Sep-03 5:18 
GeneralSyntactical blunder. Pin
esepich28-Sep-03 2:32
esepich28-Sep-03 2:32 
I know that it's there, I just can't figure out why this error is occuring.

Compiling resources...
Compiling...
StdAfx.cpp
Compiling...
SSPing.cpp
SSPingDlg.cpp
C:\DOCUMENTS AND SETTINGS\ADMIN\DESKTOP\SSPROJECT\SSPing\SSPingDlg.cpp(204) : error C2664: 'sendto' : cannot convert parameter 2 from 'struct tagECHOREQUEST' to 'const char *'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
Generating Code...
Error executing cl.exe.

SSPing.exe - 1 error(s), 0 warning(s)

int CSSPingDlg::SendEchoRequest(SOCKET s, SOCKADDR_IN lpstToAddr)
{
static ECHOREQUEST echoReq;
static nId = 1;
static nSeq = 1;
int nRet;

echoReq.icmpHdr.icmp_type = ICMP_ECHOREQ;
echoReq.icmpHdr.icmp_code = 0;
echoReq.icmpHdr.icmp_cksum = 0;
echoReq.icmpHdr.icmp_id = nId++;
echoReq.icmpHdr.icmp_seq = nSeq++;

for (nRet = 0; nRet < REQ_DATASIZE; nRet++)
echoReq.cData[nRet] = ' '+nRet;

echoReq.dwTime = GetTickCount();

echoReq.icmpHdr.icmp_cksum = checksum((u_short *)&echoReq, sizeof(ECHOREQUEST));

-----> nRet = sendto(s, echoReq, sizeof(ECHOREQUEST), 0, lpstToAddr, sizeof(SOCKADDR_IN));
return 0;
}
GeneralRe: Syntactical blunder. Pin
Ted Ferenc28-Sep-03 3:02
Ted Ferenc28-Sep-03 3:02 
GeneralRe: Syntactical blunder. Pin
Gary R. Wheeler28-Sep-03 5:22
Gary R. Wheeler28-Sep-03 5:22 
QuestionWhy open two projects in the same VC IDE? Pin
George227-Sep-03 20:41
George227-Sep-03 20:41 
AnswerRe: Why open two projects in the same VC IDE? Pin
Andrew Walker27-Sep-03 23:38
Andrew Walker27-Sep-03 23:38 
GeneralRe: Why open two projects in the same VC IDE? Pin
Mike Dimmick28-Sep-03 0:02
Mike Dimmick28-Sep-03 0:02 
GeneralRe: Why open two projects in the same VC IDE? Pin
George228-Sep-03 4:00
George228-Sep-03 4:00 
GeneralRe: Why open two projects in the same VC IDE? Pin
Mike Dimmick28-Sep-03 4:16
Mike Dimmick28-Sep-03 4:16 
GeneralRe: Why open two projects in the same VC IDE? Pin
George229-Sep-03 3:41
George229-Sep-03 3:41 
GeneralRe: Why open two projects in the same VC IDE? Pin
George228-Sep-03 3:59
George228-Sep-03 3:59 
Questionwhat this error means? Pin
coda_x27-Sep-03 20:20
coda_x27-Sep-03 20:20 
AnswerRe: what this error means? Pin
Mike Dimmick28-Sep-03 0:05
Mike Dimmick28-Sep-03 0:05 
Generalcomplicated problem Pin
coda_x27-Sep-03 19:41
coda_x27-Sep-03 19:41 
GeneralRe: complicated problem Pin
Terry O'Nolley28-Sep-03 3:59
Terry O'Nolley28-Sep-03 3:59 
GeneralDebugger can not find debugging information of a MFC project. Pin
George227-Sep-03 19:32
George227-Sep-03 19:32 
GeneralRe: Debugger can not find debugging information of a MFC project. Pin
Mike Dimmick28-Sep-03 0:10
Mike Dimmick28-Sep-03 0:10 
GeneralRe: Debugger can not find debugging information of a MFC project. Pin
George228-Sep-03 4:03
George228-Sep-03 4:03 
QuestionHow does DLL share functionality with other application? Pin
Link260027-Sep-03 17:15
Link260027-Sep-03 17:15 

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.