p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

pro_nt_services thread: send() and recv() calls fail in atl service project


Message #1 by "cian reynolds" <cian.reynolds@p...> on Tue, 26 Feb 2002 16:37:59
Hi, 


I have a socket function that sends an email. I'm using VC++ 6.0

It works perfectly well in a Win32 Console Application but when I put the 
function into my ATL COM, type: service, it does not send the mail. I have 
put the wsock32.lib into the service app and I think everything else is 
the same. It connects successfully but returns -1 for every recv() and send
() call.


Can you help?

Cheers.

  Return to Index