Can't send command after compiling under Windows 7 / Visual Studio 14

Posted by Vbeau on Fri 12 Aug 2016 06:23 AM — 9 posts, 39,149 views.

#0
I get the source code from this link:
https://github.com/nickgammon/mushclient/archive/master.zip
The compiling is successful under Windows 7 / Visual Studio 14, but can't send command in world. The problem occured previously, referring to http://www.gammon.com.au/forum/?id=11983
Strangerly, there is no such problem in the release distribution of MUSHclient v5.02. It is worth mentioning, the size of MUSHclient.exe in the release distribution is 3.17MB, however the size of my WinRel MUSHclient.exe is 6.22MB.
Would you please tell me the reason why can't send command in world and the difference between the release distribution and my WinRel MUSHclient.exe?
Amended on Tue 16 Aug 2016 08:32 AM by Vbeau
Australia Forum Administrator #1
I can't really explain this, except maybe this is a Unicode issue. You could try changing the build options (to what, I don't know).

Are you typing English text, or Chinese or something different?
#2
The game world is a Chinese MUD. I am typing English text as well as Chinese, nevertheless I cannot send the commands to the MUD server. Echo of commands and receiving from MUD server is right.
Amended on Fri 12 Aug 2016 08:40 AM by Vbeau
Australia Forum Administrator #3
I can't explain that. I recompiled the code under Visual Studio 14 as described in the link below and it worked OK:

http://www.gammon.com.au/forum/?id=13695
#4
The size of MUSHclient.exe in the release distribution is 3.17MB, while the size of my WinRel MUSHclient.exe is 6.22MB.
Would you please tell me the size of your WinRel MUSHclient.exe?
Australia Forum Administrator #5
Using the latest current version (5.02) I get this:

  • WinRel / MUSHclient.exe: 6583 KB
  • WinDebug / MUSHclient.exe: 14981 KB


Both connect OK and I can type commands in (and have them sent and acted on).
#6
Excuse me, may I know why the size of MUSHclient.exe in the release distribution is 3.17MB and smaller than the WinRel MUSHclient.exe?
USA Global Moderator #7
Because the release versions are not compiled with VS14, but with VS6 which made smaller executables.

See, for instance: https://tedwvc.wordpress.com/2010/05/26/statically-linked-release-mfc-exe-size-in-visual-c-2010-vs-2008/

Microsoft's response with suggestions: https://blogs.msdn.microsoft.com/vcblog/2012/02/06/reducing-the-size-of-statically-linked-mfc-applications-in-vc11/
Amended on Wed 17 Aug 2016 02:41 PM by Fiendish
Australia Forum Administrator #8
It doesn't matter that much, with PCs these days having a GB of RAM or more.

However it is rather amusing that the new "improved" compiler generates code that is twice as big.