请教Notepad2源码修改和编译的小问题。

HellKo 2010-08-09 10:07:47
感觉Notepad2很好用,但想修改一点小细节。
可惜由于本人不是学c++的,代码基本看不懂,想来请教一下这里的大侠们。
现在有几个小问题。

1. Notepad2右边的行号颜色在代码的哪里修改呢,默认是红色太刺眼,找了老半天没找出来...

2. 编译的时候应该如何优化设置呢,作者编译出的程序是600多kb的,自己编译是1.4M (用VS2008)。虽然运行起来占内存都一样...

3. 作者似乎是用WinDDK编译的,这个在哪有下载呢



另相关代码在这里有
http://www.flos-freeware.ch/notepad2.html
http://sourceforge.net/projects/scintilla/files/ Scintilla 2.03
...全文
370 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
HellKo 2010-08-09
  • 打赏
  • 举报
回复
C++真复杂,恨自己学到的东西太少了...
HellKo 2010-08-09
  • 打赏
  • 举报
回复
自己找出来了..原来就在Styles.c里,这么明显都没找到.
新建了一个配置编译大小又缩到600kb了,作者说明文档里说到确实是用WDK编译的..


Creating a Compact Executable Program File

Linking to the system CRT slightly improves disk footprint, memory
usage and startup because the pages for the system CRT are already
loaded and shared in memory. To achieve this, the release version of
Notepad2.exe is built using the Windows Driver Kit (WDK) 7.1.0 tools,
available as a free download from Microsoft. The appropriate build
scripts can be found in the "wdkbuild" subdirectory. Set %WDKBASEDIR%
to the directory where the WDK tools are located on your system.
HellKo 2010-08-09
  • 打赏
  • 举报
回复
确实是用Release配置编译的...
ayw215 2010-08-09
  • 打赏
  • 举报
回复
你是用release编译的么
也许作者用了些压缩的软件把压缩了EXE吧
ayw215 2010-08-09
  • 打赏
  • 举报
回复
DDK是编译驱动用的。。。

3,881

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 其它技术问题
社区管理员
  • 其它技术问题社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧