Forum > PDAs and Smartphones

makeing interfaces for wince?

<< < (4/6) > >>

felipemdc:

--- Quote from: "roozbeh" ---well thanks.
although with this compiler also file size is around 9mg and after wince-arm-strip utility it gets down to 2.
--- End quote ---


But the executables do work, right?

Yes, here they are 9MB too =/

But don´t worry about it too much, this is probably just some features being added to the Compiler that are causing instability. In 2 weeks (a wild guess) it should be back to normal 2MB before strip again.


--- Quote from: "roozbeh" ---about lcl interfaces,is there any reason why they are not so alike win32 interfaces?
as they do almost very same tasks?
--- End quote ---


Well, only because I´m the only one so far to send patches to wince interface =) And I have a anormous amount of other things to do.

A simple copy isn´t possible (I tryed it) because WinCE lacks many API functions. Also, all functions that deal with strings must translate them to the appropriate charset as Lazarus IDE uses utf-8 or iso and WinCE is pure utf-16

We need to copy some parts, modify others and add some wince specific code to deal with charset, etc.


--- Quote ---i have implemented lots of other controls,just wondering how coding styles should be...
--- End quote ---


Great! I can´t wait to try it =)

The coding style is the Borland style.

There are 3 wiki pages you should read:

http://wiki.lazarus.freepascal.org/index.php/How_To_Help_Developing_Lazarus

http://wiki.lazarus.freepascal.org/index.php/DesignGuidelines

http://wiki.lazarus.freepascal.org/index.php/Creating_A_Patch


--- Quote ---for example i dont like calling and seeing MultiByteToWideChar whenever i want something to be trasfered to unicode and backward..so i've implemented strtounicode as a simple function.
for example is there a problem with doing so or not?
--- End quote ---


No, not a problem. Just put it at a suitable place. There is usually a unit on each interface for miscelaneous functions. I think for wince it should be called winceproc.


--- Quote ---anyway where to send modified sources?
--- End quote ---


Please, join the Lazarus Mailing List and send them as a attachment. Careful that attachment limit is 40kb, so you may need to compress them.

If you do not like mailling lists, you can use gmane to access it like a newsgroup.

server:news.gmane.org
Group:gmane.comp.ide.lazarus.general

Also, the accepted way to send modifications to Lazarus is by sending patches. If you are using the subversion Lazarus, please try to create a patch. If not, just send the source and I will try to make a patch out of it.

But in the future, send patches.

thanks,

Felipe

Anonymous:
well i think messages and messages handling is somehow not working in wince forms
my forms as far as i know doesnt recieve any messages?

is it anything i should develop or it is problem whithin fpc?

felipemdc:

--- Quote from: "Anonymous" ---well i think messages and messages handling is somehow not working in wince forms
my forms as far as i know doesnt recieve any messages?
--- End quote ---


Well, you just need to find out what does message handling on Win32 interface and then copy the code to the wince interface and after that do some modifications like:

* All string handling routines need to do calls to convert the strings

* All WinAPI functions that have Ansi and Wide version should call the Wide version

roozbeh:
well i figured that out..
now clicking on button,checkbox,radiobutton is working.
but is it possible to use lazarus for debugging?compiling?

becouse i saw lazarus use gdb for debugging...can i change it to gdb for wince and use it to debug on device?
also is it possible to use wince interfaces for compiling code and debugging it on win32?
becouse i mostly do the same for other programs in visual c...i write them in evc4,debug them in visual studio for windows and most of time it works good on device....

currently every event sent to main form causes exception....all other controls are fine but the main form!

roozbeh:
well i did work...i am going to like this lazarus...
i think it is usefull if added to wiki too.
with that  gdb for wince you can debug inside lazarus and even see local variables and....
but unfortunatly it is very slow to be that usefull...i dont know why...but very slow...maybe becouse of huge size of exe file!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version