Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Development ➜ Can't send command after compiling under Windows 7 / Visual Studio 14

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

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Vbeau   (9 posts)  Bio
Date Fri 12 Aug 2016 06:23 AM (UTC)

Amended on Tue 16 Aug 2016 08:32 AM (UTC) by Vbeau

Message
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?
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 12 Aug 2016 06:43 AM (UTC)
Message
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?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Vbeau   (9 posts)  Bio
Date Reply #2 on Fri 12 Aug 2016 08:17 AM (UTC)

Amended on Fri 12 Aug 2016 08:40 AM (UTC) by Vbeau

Message
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.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #3 on Tue 16 Aug 2016 04:20 AM (UTC)
Message
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

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Vbeau   (9 posts)  Bio
Date Reply #4 on Tue 16 Aug 2016 08:30 AM (UTC)
Message
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?
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #5 on Tue 16 Aug 2016 08:41 PM (UTC)
Message
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).

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Vbeau   (9 posts)  Bio
Date Reply #6 on Wed 17 Aug 2016 01:11 PM (UTC)
Message
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?
Top

Posted by Fiendish   USA  (2,534 posts)  Bio   Global Moderator
Date Reply #7 on Wed 17 Aug 2016 02:33 PM (UTC)

Amended on Wed 17 Aug 2016 02:41 PM (UTC) by Fiendish

Message
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/

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #8 on Wed 17 Aug 2016 08:41 PM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


27,486 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.