So im going to try and write a simple instant message program using MFC. Basically, Im wondering the concept of how the client server process works. I need to write a server that is its own seperate .exe, then a client which contains the gui and the information to contact the server? Any tips would be helpful, thanks.
You make it sound as if I was asking for source code. Ive already got a server program going, and am working on a client to connect. I was just looking for someone who knows some MFC to lend me some tips or advice. As of now, Im stuck on trying to connect ot me server. Reread OP.
There are basically two methods of interaction for MFC.
AFXSocket (which is the MFC implementation of winsock2) or socket (C-Style library for winsock2)
First you need to set up your method of communication, then choose which type of transmission protocol (TCP/UDP) and finally decide on your application protocol (how it receives/parses/transmits messages)
For more information than that I recommend you use Google as there are plenty of tutorials out there for both afx and standard sockets.
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...
OK, so HostGator for some reason no longer allows gcc/g++ access unless you have a Designated Server account, which is a lot of money to spend just to compile my "Hello World" program. Thus I figured I'd compile at home, then upload. Program is your regular old bare-bones Hello World ...
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.