Search found 609 matches
- Wed Mar 17, 2010 6:29 pm
- Forum: 欢迎使用中文讨论
- Topic: filecopy文件拷贝
- Replies: 1
- Views: 11464
Re: filecopy文件拷贝
I recently introduced a 'CopyTo' method in the File class. It takes an outputFileName, and you just go: File f = FileOpen("sourceFile.txt", read); if(f) { f.CopyTo("destFile.txt"); delete f; } Since it's not in any Ecere package yet, here's the source code for it: bool CopyTo(cha...
- Wed Mar 17, 2010 6:24 pm
- Forum: 欢迎使用中文讨论
- Topic: 登陆界面(login Interface)
- Replies: 1
- Views: 12140
Re: 登陆界面(login Interface)
Hi liqi, strcmp is quite standard in C/eC. I usually write it: if(!strcmp(str1, str2)) { PrintLn("Strings are the same!"); } Having a negative, zero, or positive value is very useful in sorting situations. eC also has an 'OnCompare' method accessible on all data types, including on 'String...
- Wed Mar 17, 2010 6:16 pm
- Forum: GUI Toolkit & 2D Graphics
- Topic: MouseOver and changing a Picture bitmap
- Replies: 0
- Views: 8700
MouseOver and changing a Picture bitmap
This morning nomoon asked on IRC about this. I was lacking sleep and I was under the impression that was indeed broken, but it turned out I was missing a proper path to my mouse over image. This code works: import "ecere" class MouseOverForm : Window { text = "Mouse Over / Picture T...
- Tue Mar 16, 2010 11:17 am
- Forum: C/C++
- Topic: Writing an export function in ec, accepting a pointer
- Replies: 5
- Views: 35047
Re: Writing an export function in ec, accepting a pointer
Dear fedor, If you are loading a method from a DLL, then I assume you are using function pointers? I am not sure if there are other ways to do it in C++. Loading functions from DLLs is a common topic for which Google will find you tons of tutorials. Just keep in mind eC definitions works just like C...
- Mon Mar 15, 2010 6:46 pm
- Forum: C/C++
- Topic: Writing an export function in ec, accepting a pointer
- Replies: 5
- Views: 35047
Re: Writing an export function in ec, accepting a pointer
Hi Fedor, In this respect eC is no different than C. You will need a proper 'matching' prototype to call it from the C/C++ program. Are you linking the DLL with the linker, or are you loading the functions yourself with the Windows API? eC has the 'stdcall' keyword to help you use stdcall convention...
- Fri Mar 12, 2010 5:14 pm
- Forum: General Discussion
- Topic: Google Summer of Code 2010
- Replies: 3
- Views: 28169
Re: Google Summer of Code 2010
I submitted our application to GSoC 2010!
Let's all cross fingers now.
Let's all cross fingers now.
- Fri Mar 12, 2010 1:24 am
- Forum: 3D Graphics
- Topic: Cameras, Skyboxes
- Replies: 1
- Views: 24623
Re: Cameras, Skyboxes
Sorry for the long delay :) Let's start with the Camera API. You must create a Camera object. You then use this camera object in a Window's OnRedraw method by 'setting it' on the surface to enter '3D graphics' mode, and then unsetting it to return to 2D mode: void OnRedraw(Surface surface) { display...
- Fri Mar 05, 2010 5:50 pm
- Forum: General Discussion
- Topic: Google Summer of Code 2010
- Replies: 3
- Views: 28169
Re: Google Summer of Code 2010
Thanks Joey for bringing this up again this year. Man does time fly, seems like yesterday we were applying for GSoC 2009. I will admit I am a little reticent in applying again this year. Do we really stand a chance or are the same organizations going to be picked up again? Last year I pretty much se...
- Thu Mar 04, 2010 7:42 pm
- Forum: General Discussion
- Topic: A little introduction to eC
- Replies: 1
- Views: 39051
A little introduction to eC
Hi guys, Well this is meant as a little introduction for those who haven't heard about eC yet... eC is yet another multiparadigm procedural/object-oriented language which has C for its foundation. This puts it alongside Java, C++, C#, D, Objective C and probably countless others less famous programm...
- Wed Feb 24, 2010 5:40 pm
- Forum: Linux
- Topic: Debian/Ubuntu packages available for Ecere 0.44pre1
- Replies: 20
- Views: 147894
Re: Debian/Ubuntu packages available for Ecere 0.44pre1
In the Debian community, we tend to prefer repositories to one-off packages, as they are easier to manage and update. For the "Linux" link on the website, I would bring the user to another page showing repository instructions for distro packages we've created. I am hoping to include that ...