Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Can somebody help me with sockets..

Can somebody help me with sockets..

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++comlounge
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SimCom
    wrote on last edited by
    #1

    Hello thug developers, I have a very anoying irritating problem here with my app. I've worked hard to understand VC++, searched all over the internet to find out how things work. So I managed to code an app like a very very simple chat application. A simple peer to peer connection for just sending each other a line of text, that's all. After solving all the errors and warnings, I finally completed my app. I started to test my app and found out that it can connect with the other pc and it can receive data from other pc, but I can't print the recieved text on the screen. I've checked msdn and everything, but I just don't understand what I did wrong. So I hope someone here is able to receive my sourcecode en check what I've done wrong. If there is someone to check it for me I'll be very very very very happy if he can solve my problem. If someone wants to help me via email, than this is my adres: ammeniar@hotmail.com Than you very very very much. If I was a gay I would tongkiss ya ;) thnx boyz and girlz!! If my application works, I forget all my problems.

    U 1 Reply Last reply
    0
    • S SimCom

      Hello thug developers, I have a very anoying irritating problem here with my app. I've worked hard to understand VC++, searched all over the internet to find out how things work. So I managed to code an app like a very very simple chat application. A simple peer to peer connection for just sending each other a line of text, that's all. After solving all the errors and warnings, I finally completed my app. I started to test my app and found out that it can connect with the other pc and it can receive data from other pc, but I can't print the recieved text on the screen. I've checked msdn and everything, but I just don't understand what I did wrong. So I hope someone here is able to receive my sourcecode en check what I've done wrong. If there is someone to check it for me I'll be very very very very happy if he can solve my problem. If someone wants to help me via email, than this is my adres: ammeniar@hotmail.com Than you very very very much. If I was a gay I would tongkiss ya ;) thnx boyz and girlz!! If my application works, I forget all my problems.

      U Offline
      U Offline
      User 1426359
      wrote on last edited by
      #2

      Why don't you post here the source code that handles the drawing of the message? Also you can search in the articles for CSocket - it's a chat program and you can look trough it to see how he does it. Actually where do you want to draw the message? In a listbox, or directly on the CDC?

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups