Search found 340 matches

by samsam598
Sat Jun 06, 2009 1:17 pm
Forum: C++ Development
Topic: How to print Unicode(wchar) characters to console
Replies: 5
Views: 3259

[/quote] No it isn't. The only way is to use cout from the c++ standard library. But it is c++ integrated, and you can use it from everywhere by using std:: so I don't know where is the problem.[/quote] I do know no problem using std in general.I rememberd in the wx Doc or somewhere I read that impo...
by samsam598
Fri Jun 05, 2009 9:50 am
Forum: C++ Development
Topic: How to print Unicode(wchar) characters to console
Replies: 5
Views: 3259

[quote="orbitcowboy"]Have you tried wxString msg(wxT("欢迎来到中国!")); std::cout << msg.mb_str() << std::endl; Thank you so much for your help. The above code works. But I am curious now isn't there such an equivalent method in wxWidgets?One has no other choice to do such task except ...
by samsam598
Fri Jun 05, 2009 2:12 am
Forum: C++ Development
Topic: How to print Unicode(wchar) characters to console
Replies: 5
Views: 3259

How to print Unicode(wchar) characters to console

Hello eveyone! A simple question again but it is still hard to me.Try to print a welcome msg to console,using both wxPuts and wxPrintf to print an unicode string,say Chinese characters just faied.Nothing printed: wxWidget2.9.1 Unicode build under Windows XP: #include <wx/wx.h> void main() { wxPuts(w...
by samsam598
Fri Jun 05, 2009 1:40 am
Forum: wxWidgets Development (Chinese)
Topic: wxPuts输入文字到控制台
Replies: 6
Views: 6288

Re: wxPuts输入文字到控制台

kabuka wrote:初学wxWidgets,有很多不明白的东西.

#include <wx/string.h>
#include "wx/wx.h"

int main()
{
wxPuts(wxT("这是一个控制台程序"));
system("pause");
return 0;
};

这一段程序本意是想将"这是一个控制台程序"一行文字在控制台输出,却没有实现,不知道问题出在哪儿
我也有遇到过同样的问题,好象是不能显示中文。
by samsam598
Thu Jun 04, 2009 9:54 am
Forum: wxWidgets Development (Chinese)
Topic: 开源数据库
Replies: 12
Views: 7684

编译 wxSqlite 和编译 wxWidgets 差不多,只是需要额外配置好 sqlite 的动态链接或者静态链接库的位置,当然也需要配置 wxWidgets 库的位置。
不好意思,请恕我说话直。我也知道配置好了就能行,不行的话肯定是没配置好,问题是一个wxWidget2.9(2。8。9也行)+mingw3.45+C::B环境,一个wxSqlite3.1.95最新包,俺就是编译不了,不知道哪里出问题了,所以想请教一下具体一点的编译步骤。

感谢解答。
by samsam598
Tue Jun 02, 2009 12:50 am
Forum: Database Related
Topic: wxSqlite3 issue
Replies: 11
Views: 5742

Re: wxSqlite3 issue

In my pc wxDev-cpp contains wxWidgets2.8.9 ,I tried to compile the sample this time use wxDev-cpp +mingw3.4.5: This shouldn't be a problem. wxSQLite3 is known to work with wxWidgets 2.8.x. ] Thank you again for all your help.I have tried my best but still failed.I think maybe this is an issue of mu...
by samsam598
Sun May 31, 2009 1:31 am
Forum: Database Related
Topic: wxSqlite3 issue
Replies: 11
Views: 5742

Re: wxSqlite3 issue

Read the another thread mentioned that wxSqlite was built on wxWidgets2.8.9. In my pc wxDev-cpp contains wxWidgets2.8.9 ,I tried to compile the sample this time use wxDev-cpp +mingw3.4.5: Compiler: Default GCC compiler Building Makefile: "F:\CodeBlocksProject\samples\Makefile.win" Executin...
by samsam598
Sat May 30, 2009 1:10 pm
Forum: wxCode
Topic: Next DatabaseLayer release
Replies: 22
Views: 13936

Thank you so much for all your help.Error message provide in *database* thread.

Regards,
Sam
by samsam598
Sat May 30, 2009 1:06 pm
Forum: Database Related
Topic: wxSqlite3 issue
Replies: 11
Views: 5742

Re: wxSqlite3 issue

Thank you so much for all your help!! Move here--- Please do not cross-post. Yes,Sir! How to set up a workable wxSqlite lib and all needed stuffs to get started with wx+database programming? My wxSQLite3 distribution contains several build files for different platforms and compilers. And even if thi...
by samsam598
Sat May 30, 2009 11:07 am
Forum: wxCode
Topic: Next DatabaseLayer release
Replies: 22
Views: 13936

Thanks! The latest code is released as version 1.8 at http://sourceforge.net/project/showfiles.php?group_id=51305&package_id=45182&release_id=337692 So glad to find the DatabaseLayer writer here! Actually I've posted a help wanted in anohter thread in this forum,maybe the question is so bas...
by samsam598
Sat May 30, 2009 10:57 am
Forum: Database Related
Topic: wxSqlite3 issue
Replies: 11
Views: 5742

wxSqlite3 issue

Move here--- Hello Sirs and Madams, How to set up a workable wxSqlite lib and all needed stuffs to get started with wx+database programming? I am sorry for asking such a silly question.I notice ppl here using wxSqlite and it seems it is so simple to install or compile.But to me it is so difficult to...
by samsam598
Sat May 30, 2009 5:29 am
Forum: C++ Development
Topic: wxDatabase Library Issue
Replies: 0
Views: 430

wxDatabase Library Issue

Hello Sirs and Madams, How to set up a workable wxSqlite lib and all needed stuffs to get started with wx+database programming? I am sorry for asking such a silly question.I notice ppl here using wxSqlite and it seems it is so simple to install or compile.But to me it is so difficult to get it done....
by samsam598
Sat May 30, 2009 2:59 am
Forum: wxWidgets Development (Chinese)
Topic: 开源数据库
Replies: 12
Views: 7684

轻小的可以使用wxSQLite3访问SQLite。非常好。 MySQL也非常好。 两者均开源免费。 -Utensil 俺想请问一下wxSqlite从哪里获取?俺有wxCode 的 wxSqlite,但是试了多次都无法编译.俺是用mingw345,makefile.gcc编译,为了简单,俺将WXCODE包里的WXSQLITE3和SQLITE3所有的LIB\.H\.CPP\.DEF等等全都放在一个文件夹(E:\TEST),然后在各个文件里把INCLUDE 路径做了相应改动)是不是方法不对? 版本:WX2.9+MINGW3.4.5+CB+WXSQLITE3_1.9.5 麻烦指点一下行吗?有什么需要...
by samsam598
Wed Jan 21, 2009 12:59 am
Forum: wxWidgets Development (Chinese)
Topic: Windows 下如何用ENTER键代TAB键在窗体控件之间
Replies: 1
Views: 2131

Windows 下如何用ENTER键代TAB键在窗体控件之间

各位大哥早上好!
如题,窗体控件之间的焦点切换,默认是TAB键,如何改用ENTER键实现相同的功能,请指教,谢谢啊
by samsam598
Wed Dec 31, 2008 5:38 am
Forum: wxWidgets Development (Chinese)
Topic: wxWidgets自带例程如何学习
Replies: 11
Views: 6291

大哥:2.9在哪里?
另外,Controls 和 dialogs 例程也都好大啊,从哪里开始分析呢?