Search found 324 matches

by samsam598
Fri Sep 13, 2013 6:29 pm
Forum: wxCode
Topic: Reviving DatabaseLayer
Replies: 73
Views: 23249

Re: Reviving DatabaseLayer

// these functions should be used when the conversions really, really have // to succeed (usually because we pass their results to a standard C // function which would crash if we passed NULL to it), so these functions // always return a valid pointer if their argument is non-NULL // this function ...
by samsam598
Fri Sep 13, 2013 5:02 pm
Forum: C++ Development
Topic: Default Encoding changes to UTF16 under windows since 3.0
Replies: 3
Views: 1161

Default Encoding changes to UTF16 under windows since 3.0

Greetings! Learnt from the doc this change under windows but keeps UTF8 encoding under *nix.Just wondering whether there is anything I should change or pay attention to according to this change,talking about my source code,or encoding of my source editor (say C::B),or when trying to interact with wi...
by samsam598
Fri Aug 16, 2013 4:32 am
Forum: wxCode
Topic: Reviving DatabaseLayer
Replies: 73
Views: 23249

Re: Reviving DatabaseLayer

Thanks for the reply.I have MS Access 2003 in my Windows XP in this laptop;also I tried the same code in MS Access 2010+Win7 in my desktop,but no luck either. Sorry I have no SQL Server Express Edition installed.I realized maybe using sqlite3 is more convenient and cross-platform,I just want to work...
by samsam598
Thu Aug 15, 2013 7:42 am
Forum: wxCode
Topic: Reviving DatabaseLayer
Replies: 73
Views: 23249

Re: Reviving DatabaseLayer

Sorry for my stepping in~~ May I ask whether it works on the situation that I posted here before,regarding Asian/Chinese font or character sets or code page whatever caused the problem I mentioned before.I am really eager to know and find a solution.In my previuse post,I mentioned that either Chines...
by samsam598
Wed May 15, 2013 8:33 am
Forum: wxCode
Topic: Reviving DatabaseLayer
Replies: 73
Views: 23249

Re: Reviving DatabaseLayer

This is only for your easy reference as I guess the issue is still not fixed at some level.Please take note my wx is Unicode+static build.See signature for more information. In DatabaseStringConverter.cpp of DatabaseLayer (PS:I tested here just because it has a test case program),I made below modifi...
by samsam598
Wed May 15, 2013 1:29 am
Forum: The Code Dump
Topic: Check if Dir is Subset of a path
Replies: 18
Views: 13572

Re: Check if Dir is Subset of a path

Yes, from what I've seen until now, it seems to be OK. It helps.Thanks. In the source Find function if(fn.GetFullPath().Find("..")==0) May I ask does it mak any difference if I write Find(wxT("..")) instead of Find("..")? When I tried below: if(IsSubPath("c:\\小说","c:\\小说\\第一章")) return true; It ret...
by samsam598
Fri May 10, 2013 2:13 pm
Forum: wxCode
Topic: Reviving DatabaseLayer
Replies: 73
Views: 23249

Re: Reviving DatabaseLayer

I meant I forgot that in previous code ,there is a GetColumnTypeName(int i) function over there which will prevent the compiling from work.In the updated code,I removed it and replaced with GetColumnType.Now the code can be compiled . For GetColumnTypeName(int i),actually it is just a copy of GetCol...
by samsam598
Fri May 10, 2013 12:40 am
Forum: wxCode
Topic: Reviving DatabaseLayer
Replies: 73
Views: 23249

Re: Reviving DatabaseLayer

Appreciated.Please take your time.

Apologies for previous attached code.I forgot I added an custom funtion GetColumnTypeName(int i) for MetaData.I re-attached the source.

Btw,do you think the encoding of the source file matters?It is UTF-8.

Regards,
Sam
by samsam598
Thu May 09, 2013 12:44 am
Forum: wxCode
Topic: Reviving DatabaseLayer
Replies: 73
Views: 23249

Re: Reviving DatabaseLayer

Great thanks for the help in advance.

I've attached the C::B project.The MS Access file is under /DB/ folder.For wxDatabase,I included the whole source except sqlite3&,postgresql & mysql part.

Regards,
Sam
by samsam598
Wed May 08, 2013 8:28 am
Forum: wxCode
Topic: Reviving DatabaseLayer
Replies: 73
Views: 23249

Re: Reviving DatabaseLayer

Could you please consider to add ODBC in?I have issues on it when working with aisa characters and I can't fix it. Appreicated. Hi Sam, I cannot promise anything right now. But definitely, I would like to make the library as alive as possible. Let me see if I can undertake that as far as time resou...
by samsam598
Tue Apr 16, 2013 8:30 am
Forum: wxWidgets Development (Chinese)
Topic: wxWidgets的应用程序如果静态链接的话有多大的size?
Replies: 5
Views: 5707

Re: wxWidgets的应用程序如果静态链接的话有多大的size?

thanks 编译了一个minimal的带frame和菜单的example,用的vc+6.0,静态编译,1.25m,还是蛮小的 问一下大家,一些基础数据抽象比如string, hashmap, filestream等,大家倾向于直接用wxString, wxArray, wxHashMap等还是用STL的std::string, std::vector呢?理由是什么?谢谢 可以大概翻看一下setup.h (wx\include\wx\msw\setup.h) // ----------------------------------------------------------------...
by samsam598
Tue Apr 16, 2013 1:05 am
Forum: Database Related
Topic: wxSqlite3-3.03 missed wxRegex
Replies: 2
Views: 3614

Re: wxSqlite3-3.03 missed wxRegex

It's fixed,order does matters,yesterday I tried this but it seem I did not hit the right one.

Thanks a lot.
by samsam598
Mon Apr 15, 2013 9:19 am
Forum: Database Related
Topic: wxSqlite3-3.03 missed wxRegex
Replies: 2
Views: 3614

wxSqlite3-3.03 missed wxRegex

Greetings! Compiling most recent wxSqlite3-3.03 with most recen SVN wx2.9.5+mingW4.4.5 by making use of the makefile is pretty fine.The lib. has been generated,the minimal example works fine as well.However,when try to include wxSqlite3 in my project,the compiler always complains as below ,but actua...
by samsam598
Mon Apr 15, 2013 1:46 am
Forum: wxCode
Topic: Reviving DatabaseLayer
Replies: 73
Views: 23249

Re: Reviving DatabaseLayer

evstevemd wrote:See https://github.com/mtangoo/wxDatabase
All I have done now is to refactor some names and few other stuffs. I have few things to do before I turn back to do more work!
Really excited and appreicated.Would you please let me know how to build the lib or how to use ?
by samsam598
Tue Nov 27, 2012 7:12 am
Forum: wxCode
Topic: Getting wxSqlite3 version?
Replies: 12
Views: 4663

Re: Getting wxSqlite3 version?

I love wxSqlite3 and am always keep it as a must-have in wx workshop. Glad wxSqlite3-3.0.1has been released.I have two issues: 1.I can't build the sample ,unless I replace the existing makefile.gcc (inside /build folder) with a previous one (could be in wxSqlite3-2.x) and then everything goes fine;T...