• (2 Pages)
  • +
  • 1
  • 2

15 Replies - 2523 Views - Last Post: 31 December 2012 - 04:47 PM Rate Topic: -----

#16 chipicau   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 48
  • Joined: 15-May 12

Re: Winsock

Posted 31 December 2012 - 04:47 PM

Hey both jim and Sky.

I could do that, code both applications in C++, but it would take a lot of time, just to get a simple windows form for the server.
And going with C# is not really a good choice, because it requires the .Net Framework. You're saying .Net 2.0 is already included on Vista and later, it is. But not 2.0; 3.0 if I'm not mistaken.
"3.0 3.0.4506.30 6 November 2006 Expression Blend Windows Vista, Windows Server 2008"

And I am thinking of Windows XP, and even though you say it is waning, there are still some people who use it.

The main reason why I moved from C# to C++ was because of the .Net Framework. It has "haunted" me, like it does to every .Net programmer.

I think I'll try to do things the hard/faster way:
Not all of my clients will be Portuguese, so it kind of rules out that solution.
I'm tempted to convert the char array to UTF16/Unicode like you said.

Well, what I did was, I converted the whole C++ project to UNICODE and modified the C# code to this:
string data = System.Text.Encoding.Unicode.GetString(bytes, 0, read);

Now it all works. Thank you both very much :D
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2