Search found 17 matches

by nemok
Fri Mar 28, 2008 3:08 am
Forum: wxWidgets Development (Chinese)
Topic: setup.h 设定了#define wxUSE_UNICODE 0却可以通过unico
Replies: 4
Views: 2757

重整过思路

wxUSE_UNICODE 我理解为WX库是否支持 UNICODE
_UNICODE 为C RUNTIME HEADER
UNICODE 为 WIN HEADER

MAKE里的UNICODE 原意可能只是WX是否支持UNICODE.
而platform.h 里的那几段#ifdef 判断和重定义 则将当前所用到的编码进行了统一
by nemok
Fri Mar 28, 2008 3:03 am
Forum: wxWidgets Development (Chinese)
Topic: wxLocale::IsAvailable(wxLANGUAGE_SERBIAN)
Replies: 6
Views: 3597

morya wrote:谢谢关注!
那么,虽然这个bug不是很重大,但是,谁可以帮忙反应一下。

我发现它是因为为了学习I18n 我直接抄了所有的 wxLanguage
然后用循环赋值,

Code: Select all

locale.Init( wxLan_X );
locale.GetSystemName();
想看看到底出来什么。
这个倒也不算BUG吧.wx提供了AddLanguage接口,可以添加类型。.不过在他的array里没有做是否已经存在的判断。.在添加已经存在的东西的时候不知道会有啥问题,么做过测试。.
by nemok
Fri Mar 28, 2008 12:58 am
Forum: wxWidgets Development (Chinese)
Topic: wxLocale::IsAvailable(wxLANGUAGE_SERBIAN)
Replies: 6
Views: 3597

有关wxLanguage的定义

1.在intl中定义了enum结构wxLanguage;定义了支持的各种类型语言; 2.从设计上来看,wxLocale在对wxLanguage类型操作的时候,都先会根据当前wx版本定义的wxLanguage来建立wxLanguageInfoArray,然后在使用到具体wxLanguage时类似morya样的用IsAvailable去判断是否是支持的语言. 3.至于morya碰到的问题....好吧。我想或许是wx的遗漏,虽然在wxLanguage的enum中定义了wxLANGUAGE_SERBIAN类型,但是在建立wxLanguageInfoArray时(见intl.cpp InitLangua...
by nemok
Wed Mar 26, 2008 12:29 am
Forum: wxWidgets Development (Chinese)
Topic: wxWidgets前景看好,寻找伙伴一起开发项目
Replies: 3
Views: 2667

Re: wxWidgets前景看好,寻找伙伴一起开发项目

...看了下LZ的连接介绍..又要C++底层..用qt或者wx那就最少跨了2个平台...能对wx有半年以上开发经验的爱好者..估计在其他领域开发经验也都不会少。..4500-5999...即使是CODER..也这么廉价了么。..
建议LZ和LZ老板重新评估下...或者干脆招一帮计算机毕业的学生。.你象北大青鸟一样的系统培训下。..

话说。.舍不得孩子套不住狼

BTW..CITY8的某些图片接缝处理实在是。.MICOSOFT的某软件处理的比这好太多了。..
by nemok
Tue Mar 25, 2008 1:15 am
Forum: wxWidgets Development (Chinese)
Topic: setup.h 设定了#define wxUSE_UNICODE 0却可以通过unico
Replies: 4
Views: 2757

感觉上来看,是为了统一吧?

wxUSE_UNICODE,_UNICODE,UNICODE 3者只要有一个define了。系统就全部define了。.
可以避免在C RUNTIME HEADER和WINDOWS HEADER之间unicode定义上的混淆.
config也好,setup也好,结果都是一样的.
by nemok
Thu Mar 13, 2008 5:40 am
Forum: wxWidgets Development (Chinese)
Topic: 关于config.vc
Replies: 6
Views: 3801

shared对应wxWidegt最后生成怎样的库形式
0 .lib
1 .dll

dynmic == /MD
static == /MT
by nemok
Thu Mar 13, 2008 1:27 am
Forum: wxWidgets Development (Chinese)
Topic: 关于config.vc
Replies: 6
Views: 3801

使用static时,对应VC的/MT,dynamic对应/MD
否则可能会在发布时造成link error,

以VC系列来讲.
/MD 使用msvcrt.dll,在发布时需要额外的msvcr80.dll,动态连接;
/MT 则不需要.静态连接;

另一个角度来看:
使用静态连接,会把用到的内容复制一份到程序中,所以最后生成的程序文件会比较大;动态的会比较小;
实际情况或许根据实际的应用平台来选择会比较好;
by nemok
Thu Mar 13, 2008 1:01 am
Forum: wxWidgets Development (Chinese)
Topic: bug report 关于 wxSplitterWindow
Replies: 2
Views: 2389

maybe..

或许你要的是SplitVertically....

SplitHorizontally指上下分;SplitVertically左右分.
by nemok
Mon Mar 10, 2008 1:15 am
Forum: wxWidgets Development (Chinese)
Topic: 关于DLL的问题
Replies: 4
Views: 2197

smallwolf wrote:非常感激nemok!

我按照你的例子写,成功篇译了.
后来我想出口一个 window, 老问题又来了,有很多linker errors.
我看了一个不完整的代码,发现如出口window,就要做很多的初始化在
dll main 里面.

我有尝试,还是失败.

可不可以再给个完整的代码.( dll.h,dllmain.cpp; DLL出口一个
wxMessageBox).

have a nice day!:)
我想你可以去看下VC技术内幕 22章节,动态链接库的介绍.从原理到应用都有比较详细的说明.针对WIN32平台.
by nemok
Fri Mar 07, 2008 4:43 am
Forum: C++ Development
Topic: wxTextCtr setSelection problem.
Replies: 5
Views: 548

sorry, that's my mistake, I am actually not passing '1', i pass the start position and end position. I think the problem is that the index i passed is based on UNIX, but SetSelection interprets the message string to "\r\n", which adding one more character to the end of each line, so the index is no...
by nemok
Fri Mar 07, 2008 1:32 am
Forum: C++ Development
Topic: wxTextCtr setSelection problem.
Replies: 5
Views: 548

Re: wxTextCtr setSelection problem.

Hi, all I am working on a text editor which using wxTextCtr. windows platform. ... I think you mean use the wxTE_MULTILINE with a wxTextCtrl. and your exampe must be "ABC \n DEF" if not...then .. /n isn't a line ending ...and it of course is two characters... when wxTextCtrl meet "/n" and the style...
by nemok
Fri Mar 07, 2008 12:57 am
Forum: wxWidgets Development (Chinese)
Topic: 有关wxWidgets中术语的中文解释
Replies: 0
Views: 1400

有关wxWidgets中术语的中文解释

先开个坑。.等大家来填.. :D
by nemok
Fri Mar 07, 2008 12:52 am
Forum: wxWidgets Development (Chinese)
Topic: [Translation]wxWidgets FAQ
Replies: 2
Views: 6623

人还不多,我先暂时接下..

General questions
Questions common to all platforms
MS Windows questions
Questions common to all Unix (GTK+/X11/Motif) ports
GTK+ questions
Motif questions
X11 questions
Mac questions

我接手
General questions
Questions common to all platforms
MS Windows questions
这几个部分....
by nemok
Fri Mar 07, 2008 12:50 am
Forum: wxWidgets Development (Chinese)
Topic: 关于DLL的问题
Replies: 4
Views: 2197

a simple object about create DLL in windows

it's similar like create a lib file; at first we will create a dll named test.dll you should have code like this; VC++ Create project; type "Win32 Dynamic-link library" add two files /* filename:test.h */ #ifndef TEST_H #define TEST_H /* here you declare the interface*/ extern "C" int __declspec(dll...
by nemok
Fri Mar 07, 2008 12:31 am
Forum: General Forum Issues
Topic: Any thoughts about the UNICODE problem in the title?
Replies: 17
Views: 3598

you all are so efficient!

the wxWidgets Development (Chinese) look good now ,thanks very much