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 ➜ General ➜ Notes about compiling MUSHclient source under MVC++ .NET 2003

Notes about compiling MUSHclient source under MVC++ .NET 2003

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


Pages: 1  2 

Posted by Nick Gammon   Australia  (23,166 posts)  Bio   Forum Administrator
Date Reply #15 on Mon 02 Apr 2007 04:30 AM (UTC)
Message
Icons are now at:

http://www.gammon.com.au/files/mushclient/src/icons.zip

I don't think the logo is used, just delete it from the resource list.

- Nick Gammon

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

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #16 on Mon 02 Apr 2007 04:36 AM (UTC)
Message
Ah okay.

These are linker errors I'm getting. I'm a bit confused about the lua one, as it was looking for Lua in ../../ before and now it's ../
LINK : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
MUSHclient.obj : warning LNK4229: invalid directive '/DelayLoad:lua5.1.dll' encountered; ignored
LINK : fatal error LNK1104: cannot open file '..\lua51_dll\Release\lua5.1.lib'

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Nick Gammon   Australia  (23,166 posts)  Bio   Forum Administrator
Date Reply #17 on Mon 02 Apr 2007 04:40 AM (UTC)
Message
The library path is here:


  // Lua 5.1
  #pragma comment( lib, "..\\lua51_dll\\Release\\lua5.1.lib" )
  // however we will allowed delayed load
  #pragma comment(linker, "/DelayLoad:lua5.1.dll")


You could take out the path, and bang the lua5.1.lib into the same directory as the source, eg.


#pragma comment( lib, "lua5.1.lib" )


I don't know about the delayload warning, perhaps they have changed how that works?

- Nick Gammon

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

Posted by Nick Gammon   Australia  (23,166 posts)  Bio   Forum Administrator
Date Reply #18 on Mon 02 Apr 2007 04:43 AM (UTC)
Message
Quote:

it was looking for Lua in ../../ before ...


That was the .h include files, as required here:


  #include "../../lua-5.1.1/src/lua.h"
  #include "../../lua-5.1.1/src/lauxlib.h"


The other one was the .lib file, which was the pragma directive.

- Nick Gammon

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

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #19 on Mon 02 Apr 2007 04:51 AM (UTC)
Message
Ah okay. Anyway, it compiled and is running. Your change for OnInitMenuPopup worked as well.

There were quite a few warnings (200 to be exact). I don't know if your copy compiled without warnings because of your version. Are you interested in the warnings that I'm getting?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Nick Gammon   Australia  (23,166 posts)  Bio   Forum Administrator
Date Reply #20 on Mon 02 Apr 2007 04:59 AM (UTC)

Amended on Mon 02 Apr 2007 05:00 AM (UTC) by Nick Gammon

Message
I probably have a different warning level than you do.

I cranked the warning level up from 3 to 4 and got 493 warnings.

It will be a bit tedious getting rid of all of them, but some may well warn of things that will go wrong under obscure circumstances.

Here is an interesting case:


  if (App.m_iCounterFrequency)
    QueryPerformanceCounter (&start);

  pcre_callout = NULL;
  count = pcre_exec(prog->m_program, prog->m_extra, string, strlen (string),
                    start_offset, options, offsets, NUMITEMS (offsets));

  if (App.m_iCounterFrequency)
    {
    QueryPerformanceCounter (&finish);
    prog->iTimeTaken += finish.QuadPart - start.QuadPart;  // <--- warning here
    }


The warning was "warning C4701: local variable 'start' may be used without having been initialized".

Now "start" is conditionally initialized, it is true, in the first couple of lines. However the *same* condition is used in the code that *uses* "start". Thus in this case the problem will never arise.

- Nick Gammon

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

Posted by Nick Gammon   Australia  (23,166 posts)  Bio   Forum Administrator
Date Reply #21 on Mon 02 Apr 2007 05:01 AM (UTC)
Message
Quote:

Anyway, it compiled and is running.


Cool! So it compiles under .NET 2003. That is something, anyway.

- Nick Gammon

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

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #22 on Mon 02 Apr 2007 05:03 AM (UTC)

Amended on Mon 02 Apr 2007 05:09 AM (UTC) by Zeno

Message
*nod* I wasn't sure if the new version was a bit more strict or the like.

I'm actually planning on upgrading to 2005 (I think), so I may end up getting more errors again. Thanks for the help. :)

I'll probably be spending this week looking through the code and the like. I doubt I'll tackle the client mod I'll be making for my MUD any time soon.

[EDIT] First successful test edit:
http://img.photobucket.com/albums/v123/rebirthseph/mc_zeno.jpg
;)

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Nick Gammon   Australia  (23,166 posts)  Bio   Forum Administrator
Date Reply #23 on Mon 02 Apr 2007 05:27 AM (UTC)
Message
Good to see I didn't leave too many important files out. :)

- Nick Gammon

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

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #24 on Mon 02 Apr 2007 05:31 AM (UTC)

Amended on Mon 02 Apr 2007 05:38 AM (UTC) by Zeno

Message
Strangely enough, I kept getting errors about graphics\Colour logo copy.BMP even though I had removed it from the Resources.

I also get this on startup of the program:
cannot open MUSHclient\source\mushclient\WinDebug\spellchecker.lua: No such file or directory

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Nick Gammon   Australia  (23,166 posts)  Bio   Forum Administrator
Date Reply #25 on Mon 02 Apr 2007 06:08 AM (UTC)
Message
Are you sure you removed it from the resource list? You need to be in the resource editor, I removed it with no problems.

As for the spellchecker, it looks for that file in the same directory as the executable. I put a "stub" spellchecker.lua in my WinDebug directory, like this:


dofile (utils.info ().app_directory .. "..\\spellchecker.lua")


That effectively finds the app directory, goes up one level, and then uses the "real" spellchecker.lua there.

- Nick Gammon

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

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #26 on Tue 31 Jul 2007 01:02 AM (UTC)

Amended on Tue 31 Jul 2007 03:41 AM (UTC) by Zeno

Message
I'm getting what seems to be a new error.
mushclient\StatLink.cpp(27): error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall CStaticLink::* )(CPoint)' to 'UINT (__thiscall CWnd::* )(CPoint)'


Strange. The change made to fix a 2005 error seems to have caused this error.

[EDIT] I can't run MC either.
Quote:
---------------------------
Microsoft Development Environment
---------------------------
Unable to start debugging.



The debugger is not properly installed. Run setup to install or repair the debugger.
---------------------------
OK
---------------------------


[EDIT 2] Great, now I get an error while repairing VSC++. I really want to debug this. *continues to fiddle around*

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Nick Gammon   Australia  (23,166 posts)  Bio   Forum Administrator
Date Reply #27 on Tue 31 Jul 2007 04:52 AM (UTC)
Message
In statlink.cpp, try changing:


LRESULT CStaticLink::OnNcHitTest(CPoint point)


to:


UINT CStaticLink::OnNcHitTest(CPoint point)


And in statlink.h, change:


afx_msg LRESULT OnNcHitTest(CPoint point);


to:


afx_msg UINT OnNcHitTest(CPoint point);

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


76,976 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

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.