Hi, I am currently developing a networked game using TCP/IP. Im really a beginner with C++, however I do have programming experience with other languages.
Currently I need to send a double variable to a server client so it can compute some logic. However from skeleton code I have, there is a method using Message_PDU_Message, however this sends ASCII text from a textbox on the dialog box.
What I wanted to do was send a double via this method, but I need to convert the double to the PDU format so that it will send. This double will be sent to the server client when I press a particular button on my client dialog window.
If anyone has any suggestions on how to convert double to PDU format or a better way of sending a double to a server client (i am using windows sockets), then I would be really grateful!