mfc-networking

Getting the list of shares connected to a machine

hi All, Consider that i have connected to multiple shares of a remote machine( \\machineA\share1, \\machineA\share2....) along with shares on other remote machines. Now my question is how to find only those shares which are connected to a particular machine. For eg, only those shares which are connected to machineA. I already came acr...

Why won't MFC::CHttpFile 'PUT' for me?

My code talks to a little Java application provided by a vendor. This Java app sets up a web server at localhost:57000 which is used to control the state of 'the machine'. For the purpose of this question, I need to change the state of 'the machine' from 'off' to 'on'. To make this happen I'm supposed to HTTP PUT the following string ...

CAsyncSocket and threading

I'm using a MFC CAsyncSocket to do some network communication in a multi-threaded environment. After several hours of trying to get the accepted sockets to accept incoming data I came across a page that states that for a CAsyncSocket's OnReceive function to be called the socket has to be in the context of the main GUI thread. Moving it...

Using MFC in Windows service?

I'm starting to develop a Windows service. I want to use some classes from my own, that has little dependencies to some MFC classes like CString, CSocket, CArchive, CMemFile and CObject. MSDN says you need to be very careful about which pieces of MFC you use in the Windows service, but don't specifies it and don't describes the problems ...

NTier with MFC... ?

I am writing a Visual C++ MFC application and getting stumped over what seems to be simple issue. There is a server and database (MSSQL) Open ports are HTTP, HTTPS There is the MFC client. It needs to connect a TCP/IP stream (possibly HTTP, SOAP, REST) to the server. Sometimes the MFC client goes off-line and then the MFC client store...