Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: template question Pin
Joaquín M López Muñoz9-Oct-03 20:53
Joaquín M López Muñoz9-Oct-03 20:53 
GeneralRe: template question Pin
Steve Messer9-Oct-03 21:04
Steve Messer9-Oct-03 21:04 
GeneralRe: template question Pin
Joaquín M López Muñoz9-Oct-03 21:08
Joaquín M López Muñoz9-Oct-03 21:08 
GeneralRe: template question Pin
Steve Messer9-Oct-03 21:11
Steve Messer9-Oct-03 21:11 
GeneralRe: template question Pin
Joaquín M López Muñoz9-Oct-03 21:23
Joaquín M López Muñoz9-Oct-03 21:23 
GeneralRe: template question Pin
Steve Messer9-Oct-03 21:30
Steve Messer9-Oct-03 21:30 
GeneralRe: template question Pin
Steve Messer9-Oct-03 21:08
Steve Messer9-Oct-03 21:08 
GeneralStrange things with parameters. Pin
esepich9-Oct-03 19:10
esepich9-Oct-03 19:10 
There is surely something I do not understand here. I would very much appreciate if someone could explain to me how I screwed this up.

Thank you.

--------------------Configuration: TCPIPwatch - Win32 Debug--------------------
Compiling...
TCPIPwatchDlg.cpp
C:\DOCUMENTS AND SETTINGS\ADMIN\DESKTOP\SSPROJECT\TCPIPwatch\TCPIPwatchDlg.cpp(235) : error C2664: 'bind' : cannot convert parameter 2 from 'struct CTCPIPwatchDlg::TCPIPWConnectSock::SOCKADDR_IN *' to 'const struct sockaddr *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.

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

void CTCPIPwatchDlg::TCPIPWConnectSock(SOCKADDR_IN *dest, SOCKET &theTrgSock)
{
dest->sin_family = AF_INET;
dest->sin_port = 80;

if(dest->sin_port == INVALID_SOCKET)
AfxMessageBox("Port is invalid.",MB_OK);

theTrgSock = socket(AF_INET, SOCK_RAW, IPPROTO_IP);

const char RCVTIMEO[50] = "5000";
setsockopt(theTrgSock, SOL_SOCKET, SO_RCVTIMEO, (RCVTIMEO), 4);
bind(theTrgSock, (struct SOCKADDR_IN*) dest, sizeof(dest));
}
GeneralRe: Strange things with parameters. Pin
Anand Paranjpe9-Oct-03 19:52
Anand Paranjpe9-Oct-03 19:52 
GeneralDefine triangle class Pin
Anonymous9-Oct-03 18:40
Anonymous9-Oct-03 18:40 
GeneralRe: Define triangle class Pin
W. Hammer -sledge-11-Oct-03 9:29
W. Hammer -sledge-11-Oct-03 9:29 
GeneralHello ÕâÊÇʲôѽ£¿ Pin
hy_huangh9-Oct-03 18:36
hy_huangh9-Oct-03 18:36 
GeneralRe: Hello ÕâÊÇʲôѽ£¿ Pin
David Stone9-Oct-03 18:56
sitebuilderDavid Stone9-Oct-03 18:56 
GeneralFloating point calculation Pin
act_x9-Oct-03 18:20
act_x9-Oct-03 18:20 
GeneralRe: Floating point calculation Pin
Anand Paranjpe9-Oct-03 20:05
Anand Paranjpe9-Oct-03 20:05 
GeneralRe: Floating point calculation Pin
Anthony_Yio10-Oct-03 1:09
Anthony_Yio10-Oct-03 1:09 
GeneralRe: Floating point calculation Pin
JWood10-Oct-03 9:59
JWood10-Oct-03 9:59 
QuestionXML parsing with DOM?? Pin
xxhimanshu9-Oct-03 17:45
xxhimanshu9-Oct-03 17:45 
AnswerRe: XML parsing with DOM?? Pin
act_x9-Oct-03 18:28
act_x9-Oct-03 18:28 
AnswerRe: XML parsing with DOM?? Pin
Anand Paranjpe9-Oct-03 20:09
Anand Paranjpe9-Oct-03 20:09 
AnswerRe: XML parsing with DOM?? Pin
Ravi Bhavnani10-Oct-03 3:25
professionalRavi Bhavnani10-Oct-03 3:25 
Questionwhat does this mean? Pin
FlyingDancer9-Oct-03 17:34
FlyingDancer9-Oct-03 17:34 
AnswerRe: what does this mean? Pin
Anand Paranjpe9-Oct-03 20:15
Anand Paranjpe9-Oct-03 20:15 
GeneralRe: what does this mean? Pin
FlyingDancer9-Oct-03 21:26
FlyingDancer9-Oct-03 21:26 
GeneralRe: what does this mean? Pin
David Crow10-Oct-03 6:02
David Crow10-Oct-03 6:02 

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.