(New message)
Subject review (reverse sequence)
Pages: 1
2
Posted by
Nick Gammon
Australia (18,770 posts) bio
Forum Administrator
Date
Tue 31 Jul 2007 04:52 AM (UTC) [ quote
]
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
Posted by
Zeno
USA (2,867 posts) bio
Moderator
Date
Tue 31 Jul 2007 01:02 AM (UTC) [ quote
] 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 (18,770 posts) bio
Forum Administrator
Date
Mon 02 Apr 2007 06:08 AM (UTC) [ quote
]
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,867 posts) bio
Moderator
Date
Mon 02 Apr 2007 05:31 AM (UTC) [ quote
] 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 (18,770 posts) bio
Forum Administrator
Date
Mon 02 Apr 2007 05:27 AM (UTC) [ quote
]
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,867 posts) bio
Moderator
Date
Mon 02 Apr 2007 05:03 AM (UTC) [ quote
] 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 (18,770 posts) bio
Forum Administrator
Date
Mon 02 Apr 2007 05:01 AM (UTC) [ quote
]
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
Nick Gammon
Australia (18,770 posts) bio
Forum Administrator
Date
Mon 02 Apr 2007 04:59 AM (UTC) [ quote
] 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
Zeno
USA (2,867 posts) bio
Moderator
Date
Mon 02 Apr 2007 04:51 AM (UTC) [ quote
]
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 (18,770 posts) bio
Forum Administrator
Date
Mon 02 Apr 2007 04:43 AM (UTC) [ quote
]
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
Nick Gammon
Australia (18,770 posts) bio
Forum Administrator
Date
Mon 02 Apr 2007 04:40 AM (UTC) [ quote
]
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
Zeno
USA (2,867 posts) bio
Moderator
Date
Mon 02 Apr 2007 04:36 AM (UTC) [ quote
]
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 (18,770 posts) bio
Forum Administrator
Date
Mon 02 Apr 2007 04:30 AM (UTC) [ quote
]
Message
Posted by
Zeno
USA (2,867 posts) bio
Moderator
Date
Mon 02 Apr 2007 04:21 AM (UTC) [ quote
] Amended on Mon 02 Apr 2007 04:23 AM (UTC) by Zeno
Message
Yep, 3rd one worked. I appear to be missing icons now.
.\MUSHclient.rc(5102) : error RC2135 : file not found: icons\Cdrom01.ico
.\MUSHclient.rc(5103) : error RC2135 : file not found: icons\Wrench.ico
.\MUSHclient.rc(5104) : error RC2135 : file not found: icons\Clock05.ico
.\MUSHclient.rc(5105) : error RC2135 : file not found: icons\Earth.ico
.\MUSHclient.rc(5106) : error RC2135 : file not found: icons\Graph08.ico
.\MUSHclient.rc(5107) : error RC2135 : file not found: icons\Handshak.ico
.\MUSHclient.rc(5108) : error RC2135 : file not found: icons\Mail16b.ico
.\MUSHclient.rc(5109) : error RC2135 : file not found: icons\Net01.ico
.\MUSHclient.rc(5110) : error RC2135 : file not found: icons\Point11.ico
.\MUSHclient.rc(5111) : error RC2135 : file not found: icons\Clip07.ico
.\MUSHclient.rc(5119) : error RC2135 : file not found: graphics\Colour logo copy.BMP
I have no icons or graphics folder.
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org top
Posted by
Nick Gammon
Australia (18,770 posts) bio
Forum Administrator
Date
Mon 02 Apr 2007 04:17 AM (UTC) [ quote
] Amended on Mon 02 Apr 2007 04:18 AM (UTC) by Nick Gammon
Message
Quote:
strData = (char) (unsigned char) iMessage & 0xFF;
Try:
strData = CString ( (unsigned char) iMessage & 0xFF);
Or maybe:
strData = (char) ((unsigned char) iMessage & 0xFF);
Or:
strData = (char) ((unsigned char) (iMessage & 0xFF));
- 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.
6,111 views.
This is page 2, subject is 2 pages long:
1
2
Reply to this subject
Start a new subject
  Refresh page
Go to topic:
(Choose topic)
Area Editor: Bug reports
Area Editor: General
Area Editor: News and updates
Area Editor: Suggestions
Area Editor: Tips and tricks
Dawn of Time: Administration
Dawn of Time: Configuration
Dawn of Time: Installing/compiling the server
Dawn of Time: New Dawn Muds Announcements
Dawn of Time: Playing
Dawn of Time: What is Dawn of Time (Dawn)?
Electronics: Microprocessors
Electronics: Operational Amplifiers
Forum: About
Forum: Announcements
Forum: Mailing other users
Forum: Problems
Forum: Registering
Forum: Searching
Forum: Subscribing
Forum: Suggestions
Forum: Test
Forum: Time zones / time display
Forum software: Administration
Forum software: Installation
MUDs: Announcements
MUDs: General
MUDs: MUD Design Concepts
MUSHclient: Announcements
MUSHclient: Beta testing
MUSHclient: Bug reports
MUSHclient: Development
MUSHclient: General
MUSHclient: Getting Started
MUSHclient: International
MUSHclient: Jscript
MUSHclient: Lua
MUSHclient: Miniwindows
MUSHclient: MXP and Pueblo
MUSHclient: Perlscript
MUSHclient: Plugins
MUSHclient: Python
MUSHclient: Suggestions
MUSHclient: Tips and tricks
MUSHclient: VBscript
MUSHclient: Wine
PennMUSH: Compiling the server
PennMUSH: Running the server
Programming: General
Programming: STL
Quilting: General
ROM: Compiling the server
ROM: Running the server
SMAUG: Commands
SMAUG: Compiling the server
SMAUG: Lua
SMAUG: Running the server
SMAUG: SMAUG coding
Search the forum
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )