| | |
Calling SocketServer's constructor
![]() |
•
•
Join Date: Dec 2007
Posts: 5
Reputation:
Solved Threads: 0
Aight, so I know I just posted a few hours ago but I promise that after this bug I'll not posted for a couple of days... or weeks.
Aight, so I have two classes -> Connection, and SocketServer (which is inside of "socket.h" and "socket.cpp").
Inside of Connection.cpp, the code "sSocket(myPort, 1, BlockingSocket);" (which initializes sSocket), gives me this s error...
error C2064: term does not evaluate to a function taking 3 arguments c:\Users\Ben\Desktop\Documents\Visual Studio 2008\Projects\ConnectionDLL2\ConnectionDLL2\Connection.cpp 12
Connection.cpp #includes "socket.h" and same with Connection.h. The weird thing is that I don't get this problem if I run it in debugger mode, but I do get the problem when I run it in release mode. I need to run this program in release mode because I'm using openGL and, for some reason, it won't allow me to run it in debugger mode.
I tried using a forward declaration for SocketServer, but that still didn't work.
What's really odd is that Connection.cpp successfully compiles and runs SocketServer's functions, but it wont compile and run its constructors.
One last thing; the Connection.h file's intellisense lets me see SocketServer's constructors but Connection.cpp's intellisense will not.
Thank You,
~Ben S.
Aight, so I have two classes -> Connection, and SocketServer (which is inside of "socket.h" and "socket.cpp").
Inside of Connection.cpp, the code "sSocket(myPort, 1, BlockingSocket);" (which initializes sSocket), gives me this s error...
error C2064: term does not evaluate to a function taking 3 arguments c:\Users\Ben\Desktop\Documents\Visual Studio 2008\Projects\ConnectionDLL2\ConnectionDLL2\Connection.cpp 12
Connection.cpp #includes "socket.h" and same with Connection.h. The weird thing is that I don't get this problem if I run it in debugger mode, but I do get the problem when I run it in release mode. I need to run this program in release mode because I'm using openGL and, for some reason, it won't allow me to run it in debugger mode.
I tried using a forward declaration for SocketServer, but that still didn't work.
What's really odd is that Connection.cpp successfully compiles and runs SocketServer's functions, but it wont compile and run its constructors.
One last thing; the Connection.h file's intellisense lets me see SocketServer's constructors but Connection.cpp's intellisense will not.
Thank You,
~Ben S.
![]() |
Other Threads in the C++ Forum
- Previous Thread: c++ query
- Next Thread: Stop iteratively creating handle.
| Thread Tools | Search this Thread |
ace_thread api array based binary bitmap borland c++ c/c++ calling char class classes code coding compile console conversion count delete delete-line deploy desktop developer directshow dll download dynamic dynamiccharacterarray email embedded encryption error file forms fstream function functions game givemetehcodez graph gui homeworkhelp homeworkhelper iamthwee ifstream information input int integer java lib linkedlist linker loop looping loops map math mathhomeworkhelp matrix memory multiple news node number numbertoword output parameter pointer problem program programming project python random read recursion reference reverse richedit rpg string strings temperature template test text text-file tree url variable vector video win32 windows winsock word wordfrequency wxwidgets





