Thread: simple chat program

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    13
    yes it does have the ES_MULTILINE style on it. It really has to do with the cstrings they act different than I expected. This is so frustrating cause I'm so close to have something actually working but just can't seem to figure it out

  2. #2
    Registered User
    Join Date
    Aug 2005
    Posts
    13
    Just wanted to bump to try and get some help. Its the wierdest thing when I have a char* buf and then add it to the end of the edit box it all comes up in chinese. Also, normally when I have a char* then if I want to turn it into a c++ string then I just pass it to a string like string(char*). But when I'm doing it in my project only the first character of the char* gets passed to the new string. Any ideas on how to work with these c-style strings so I get more desired result?

    edit: I think I found out what may be causing my problem. In some of the winAPI methods I am using it requires that you pass it a LPWSTR and I just cast a normal char* and passed it well I think this may be why my results are coming up in chinese. Does anyone have any insight if this seems plausible and if so how to get around this?
    Last edited by daioyayubi; 12-07-2005 at 11:54 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple window program
    By baniakjr in forum C++ Programming
    Replies: 5
    Last Post: 03-11-2006, 03:46 PM
  2. Help with simple program
    By nik2007 in forum C++ Programming
    Replies: 4
    Last Post: 02-27-2006, 09:54 AM
  3. Replies: 4
    Last Post: 07-05-2004, 07:41 PM
  4. simple frontend program problem
    By gandalf_bar in forum Linux Programming
    Replies: 16
    Last Post: 04-22-2004, 06:33 AM
  5. Simple Math Program
    By RazielX in forum C Programming
    Replies: 3
    Last Post: 03-04-2004, 06:22 PM