Search found 609 matches
- Sat Apr 03, 2010 7:14 pm
- Forum: eC Language
- Topic: Strings in eC
- Replies: 5
- Views: 39917
Re: Strings in eC
The short answer to 'Where is the eC string class?' is 'Somewhere in the future'. We just haven't gotten there yet. eC having been developed to provide a better framework to organize the Ecere SDK API, which originally was in C, it was not a part of the original goals. However we do realize how impo...
- Sat Apr 03, 2010 6:05 pm
- Forum: eC Language
- Topic: Exception Handling
- Replies: 2
- Views: 12582
Re: Exception Handling
Sadly (if exception handling is your thing), no :( You can use the C mechanism of longjmp() ('throw') and setjmp() ('catch') if you really need it. However I like to code without exception handling, by writing in a way some describe as the staircase effect... Here is an example of loading something ...
- Fri Apr 02, 2010 5:28 pm
- Forum: Compiler Errors
- Topic: Linker Error: cannot find -lecere
- Replies: 2
- Views: 30478
Re: Linker Error: cannot find -lecere
You need to setup the paths in File / Global Settings, Compilers Libraries should contain: C:\Program Files (x86)\ECERE SDK\bin And executable files should contain: C:\Program Files (x86)\ECERE SDK\bin C:\Program Files (x86)\ECERE SDK\mingw\bin Ecere is spreading from computer to computer :shock: Ch...
- Fri Apr 02, 2010 10:40 am
- Forum: GUI Toolkit & 2D Graphics
- Topic: Resizing Windows
- Replies: 1
- Views: 10484
Re: Resizing Windows
To resize a window, just do size = { 300, 400 } if you want to specify the size of the entire window including decorations, or clientSize = { 300, 400 } if you want to specify the size excluding the decorations. I have no idea about that mouse hot-box issue, might be something to do with other windo...
- Fri Apr 02, 2010 10:32 am
- Forum: System Library
- Topic: Files manipulation in Ecere
- Replies: 1
- Views: 26506
Re: Files manipulation in Ecere
Quick answers: Checking if a file exists: FileExists Loading a text file's contents in a char *: File f = FileOpen(...);, f.Read() (works just like fread in C) You can also use other functions in the File class, such as GetLine(), etc. Saving a char *'s contents in a text file: File f = FileOpen(......
- Fri Apr 02, 2010 10:23 am
- Forum: eC Language
- Topic: Memory Handling
- Replies: 3
- Views: 13752
Re: Memory Handling
Hi fedor, The idea of a 'thread' is that each thread has its own stack. That's how you can be in different functions in each thread, all function local variables are allocated on that stack. My suggestion is that if you just follow the guidelines I just outlined, you should find things to go smoothl...
- Fri Apr 02, 2010 10:19 am
- Forum: eC Language
- Topic: Memory Handling
- Replies: 3
- Views: 13752
Re: Memory Handling
Dear fedor, eC provides some tools to simplify memory management. However it doesn't take care of it all for you, so you can't be careless. First, it is important to understand exactly what memory eC manages for you... Instances of classes (Either those declared as 'class MyClass { }', and those dec...
- Fri Apr 02, 2010 8:52 am
- Forum: Windows
- Topic: Getting the 0.44pre1 (Or latest git) SDK running on Windows
- Replies: 9
- Views: 63226
Re: Getting the 0.44pre1 SDK running on Windows
Hi Lou, If you do at that same command prompt 'gcc --version', what do you get? The version that the Ecere SDK 0.43 installer installs should read 'gcc (GCC) 4.3.0 20080305 (alpha-testing) mingw-20080502' I suspect you already had a MinGW installation that has precedence in the path and that is why ...
- Wed Mar 31, 2010 8:57 am
- Forum: eC Language
- Topic: Does the renew operator delete the previously allocated mem?
- Replies: 1
- Views: 9706
Re: Does the renew operator delete the previously allocated mem?
Hi fedor. Yes the renew allocator either reuses, or frees then allocates a new block of memory. It works similarly to the C function 'realloc'. Typical usage: byte * mem = new byte[10]; mem = renew mem byte[20]; Use with complete peace of mind. No memory leaks. Also note the zeroing versions: byte *...
- Tue Mar 30, 2010 9:38 pm
- Forum: GUI Toolkit & 2D Graphics
- Topic: Custom data row drawing: e.g. adding icons to a drop box
- Replies: 1
- Views: 10194
Custom data row drawing: e.g. adding icons to a drop box
Hey guys, Here is some sample code showing how to define a custom data type for use in data controls. http://www.ecere.com/forums/download/file.php?id=21 It overrides the data type's OnDisplay() and OnGetString() methods to show the little flags next to each country. I had to do a little patch for t...