Search found 212 matches
- Tue Sep 18, 2012 12:51 am
- Forum: eC Language
- Topic: Strings in eC
- Replies: 5
- Views: 61561
Re: Strings in eC
I tried to compile the JString you listed above but I encountered an issue.I will paste the source code below.Given below code the compiler complained n is undeclared,why? class JString : struct { private: struct { uint len; char *data; uint size; } n; public: ... ... property char* { set { n.data...
- Thu Sep 06, 2012 12:34 am
- Forum: eC Language
- Topic: Can I define my own template functions?
- Replies: 13
- Views: 101052
Re: Can I define my own template functions?
Appreciated.
Btw,does CopyString do the same as strdup?
The more I study deep into eC,the more I love.Keeping its features within a deeply thoughtful range other than bloated as c++ makes eC more beautiful and powerful.
Btw,does CopyString do the same as strdup?
The more I study deep into eC,the more I love.Keeping its features within a deeply thoughtful range other than bloated as c++ makes eC more beautiful and powerful.
- Wed Sep 05, 2012 9:11 pm
- Forum: eC Language
- Topic: Can I define my own template functions?
- Replies: 13
- Views: 101052
Re: Can I define my own template functions?
Thanks a lot.Got the point(maybe not yet ^_^) for(i=0;i<10;i++) { char result[255]; sprintf(result,"This is line %d",i); strVec.push(result); } As a practice I want to make it by pure char array instead of PrintString(),but still it prints This is line 9 ten times.Even if I use anoth...
- Wed Sep 05, 2012 8:01 pm
- Forum: eC Language
- Topic: Can I define my own template functions?
- Replies: 13
- Views: 101052
Re: Can I define my own template functions?
Hi Jerome, Thanks a lot.For the private scope,noted. For the generic Stack function,double and int are fine after tested.But not for char* (String): ... Stack<String> strVec{}; String str; int i; for(i=0;i<10;i++) { sprintf(str,"This is the %d line",i); strVec.push(str); } while(!s...
- Wed Sep 05, 2012 12:26 am
- Forum: eC Language
- Topic: Can I define my own template functions?
- Replies: 13
- Views: 101052
Re: Can I define my own template functions?
As an exercise,I've tried to implement a generic data structure Stack.First I wrote a plain version for int,given below code: import "ecere" #include <assert.h> #include <stdlib.h> #include <math.h> #define maxStack 16 class Stack { private: int arr[maxStack]; int top; public: void pus...
- Mon Sep 03, 2012 9:17 pm
- Forum: GUI Toolkit & 2D Graphics
- Topic: SmartOpenFile issue [OP]EditBox.HasXXScroll issue
- Replies: 16
- Views: 199833
Re: EditBox.HasXXScroll issue
Sorry my bad.Just re-ran the program and found it works perfect now. Btw,the SmartFileOpen function is really great!!It works perfect as well with asia (Chinese) characters!! import "ecere" File SmartFileOpen(char * fileName) { bool opened = false; HTTPFile f { }; char relocation[MAX_LOCAT...
- Mon Sep 03, 2012 7:44 pm
- Forum: GUI Toolkit & 2D Graphics
- Topic: SmartOpenFile issue [OP]EditBox.HasXXScroll issue
- Replies: 16
- Views: 199833
Re: EditBox.HasXXScroll issue
Just wanna know whether this issue has been fixed or not.tks.jerome wrote:Thanks Sam!
I've created a Mantis issue for you: http://ecere.com/mantis/view.php?id=734
I will look into this. It might have to do with an optimization I did for scroll bars last week.
Regards,
Jerome
- Wed Aug 29, 2012 8:41 pm
- Forum: GUI Toolkit & 2D Graphics
- Topic: Web browser control the like
- Replies: 3
- Views: 48128
Re: Web browser control the like
This is very impressive.wxWidget added wxWebKit recently in its 2.9 series while there is no such implementation in its 2.8 series for years.I did not expect you've worked a simple version already since I've though this may be a long hard work for at leat 1 to 2 years to achieve!This is really somet...
- Wed Aug 29, 2012 1:03 am
- Forum: GUI Toolkit & 2D Graphics
- Topic: Web browser control the like
- Replies: 3
- Views: 48128
Web browser control the like
Greetings!
Wish we can have the subjected in the Ecere IDE.
Regards,
Sam
Wish we can have the subjected in the Ecere IDE.
Regards,
Sam
- Mon Aug 20, 2012 4:19 am
- Forum: GUI Toolkit & 2D Graphics
- Topic: sqlite3 data binding to DataBox
- Replies: 1
- Views: 37490
sqlite3 data binding to DataBox
Hi ,
Could you please post here a piece of very simple code to demonstrate how to bind sqlite3 database to a (Saving)DataBox control?Thanks.
Regards,
Sam
Could you please post here a piece of very simple code to demonstrate how to bind sqlite3 database to a (Saving)DataBox control?Thanks.
Regards,
Sam