troubleshooting Question

Compile Error

Avatar of turbot_yu
turbot_yuFlag for Singapore asked on
System Programming
50 Comments1 Solution1214 ViewsLast Modified:
Hi Experts,

I added the following lines into my code and compile then has errors.
May you give any suggestion?

Need I add more include .h file or something else?

Thank and Regards,

Turbot

    SOCKET m_hListeningSocket;
    WSAEVENT m_hAcceptEvent;
    HANDLE m_hListeningThread;
    HANDLE m_hStopListenEvent;

error code

Compiling...
try4Dlg.cpp
D:\backup\desktop\power grid\pqhub\DTP\code\socket class by its\corrected\try4\try4Dlg.cpp(65) : error C2065: 'WSAEVENT' : undeclared identifier
D:\backup\desktop\power grid\pqhub\DTP\code\socket class by its\corrected\try4\try4Dlg.cpp(65) : error C2146: syntax error : missing ';' before identifier 'm_hAcceptEvent'
D:\backup\desktop\power grid\pqhub\DTP\code\socket class by its\corrected\try4\try4Dlg.cpp(65) : error C2065: 'm_hAcceptEvent' : undeclared identifier
Error executing cl.exe.

try4Dlg.obj - 3 error(s), 0 warning(s)

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 50 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 50 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros