Serial Port with cf.net on WM5. - Windows Mobile Software Development

I am trying to get the hang of serial port usage in VS2008 with VB.NET CF. Wanting to simply read from a serial port and send it to a textbox or listbox on a WM5 phone. Does anyone have the simplest of serial port examples to jumpstart this? I have not yet found a SIMPLE example of how this should work or anything that I can modify to my own needs.
Thank all.

There is a serial control UI in visual studio, which is very simple to use. You can just search google for it.

Related

Today plugins

Recently i was thinking about creating an app which would show me my remaining calltime with one of polish prepaid services. I imagine it would work like that:
1. receiving a specific text message with my account balance from my operator the app would capture it and store the value
2. after each call being made operator sends sms with call cost. this should be deducted from previously stored value. etc etc.
3. value should be displayed somewhere, like on today plugin...
seems simple, but theres a catch;] i can't code for WM5. i just got myself delphi 2006 today and i see it has limited CF support so i can create applicatons... but am i able to create Dlls? also i don't have clue about creating dll's at all, especialy those for WM5. is it even possible with .net? is there any chance for me?
i know, i know, i shoud start to use c++ long time ago, but i'm affraid it' might be a bit to late for me;]
ps. is there anything like WM5 sdk, any guide kit for programmers, specs of any kind? where to look for it? thanks for any help. please note, i'd like to become one of you guys, i could even be of some value;]
heard somewhere that today plugins
cant be written in .net
here is a link to the subject of today plugins
http://forum.xda-developers.com:80/showthread.php?t=234162&highlight=codeguru
thanks, gonna try it in a minute.
(today unbelievable happened - my wizards battery got empty )
interesting. i'll consider switching to c++. as far as i understand it's not normal C, its some kind of mobile oriented c? but no connection with .net? how does it work?
Ok.
C++ is an extension of C to include object oriented programming. The language is not specific for mobile devices, so any book / article on the subject will do for starters.
I taught my self C++ after learning Pascal (Delphi is for Pascal right?) in school and it was quite easy because the languages have similar structure.
Your second stop is to learn WIN32 programming. I don't know how Delphi deals with APIs and function exports (that's what you need for DLLs).
Basically WM programming is very similar to desktop windows programming, except for a few miner difference (like all APIs using only Unicode).
You can download a free development tool called eVC 4 from MS. It looks exactly like Visual Studio 6 if you have any experience with that.
Unfortunately system DLLs like plugins can not be written using .NET but if you search MSDN (I really don't remember the link), there is an article on how to use a basic C++ DLL for the plugin and delegate all the real functionality to a .NET DLL.
Good luck.
yes, delphi is much like pascal
i know it's not that hard if you mean the structure. i just don't know how to start. in fact i got myself evc yesterday, after what you say i'll take good lok at it as soon as i prepare some room on my HD.
Delphi does well with windows api - as far as i can tell, i played with theese a bit so it shouldn't be hard to catch up when starting with c++. other thing is i never did dll, although i know how it works in general, i also used other peoples dll's in my programs. will do i hope. also, Rudegar provided us with good tutorial/example on today dlls, so i hope i'll be able to expand it. the only thing, i'm a bit anxious. you say evc is good for starters? ok, going to give it a try.
what a week, four days, four new RAD environments already
delphi is object pascal which is an extention of pascal like c++ is of c
c programs should compile without any problems in c++
Hi,
I saw a way to develop today plugins in .net : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnppcgen/html/TodayScrn.asp?_r=1
I did not try and I guess it will slow down the device as .net is not very fast, but you can try...
Good luck

[Question] SIP Tutorial?

I've programmed in C++ before, and used all the Win32 apis etc., but I've never written a COM object in C++.
I had a look at the SIP sample in the WM6.5 SDK, and following some MSDN guides, I tried to use the wizards in VS2008 to create an ATL COM object. I think I got somewhere, because my SIP appeared in the list, however, none of my SIP functions ever got called, so I must have messed something up somewhere.
Does anybody know a decent tutorial or a blank SIP template I can look at?
Thanks

pomodoro coded with mortscript ?

Hi, I've just downloaded MortScript but haven't tried it yet on my htc touch dual. I wonder if it's possible coding something similar to this program
code.google.com/p/pomodairo/
MortScript is a scripting language without any UI capabilities.
The idea of a scripting language is mainly to automate things you could do manually.
So the answer to your question is no.
Well, I was thinking of something simpler as for the graphic interface. It would consist of a countdown and some input commands to introduce tasks and number of pomodoros, another control to read remaining tasks from a csv file and then show this information.
Could you provide some sample for a countdown in hh/mm/ss and reading from csv files ? How could I make visible the program so the user can activate easily the app without going to start/programs ?
Any help is very much appreciated! I'll post everything here

Registry Edit Apps for Dell Venue Pro

Have there been any tools written to work with the Dell Venue Pro for editing Registry?
All the registry hacks and programs written so far seems to be HTC specific, or at least only HTC compatible.
I can unlock my Dell Venue Pro with Chevron, deploy XAPs but I cannot modify the registry. Argh! No program I have tried can modify it.
Basically, I want to be able to spoof my Dell Venue Pro to an HD7 (just like what we've done with the HD2). - Maybe then my web2go plan can work the DVP after?
If not, IMEI spoofing is another consideration (but we all know why I can't ) - unless....
rebump. anyone?
Bump. I'm also interested in this. I would prefer a general WP7 registry hack though. It would help to keep development free flowing across devices.
dell - no com dlls...
ergo no provxml
no registry...it sucks
domineus said:
dell - no com dlls...
ergo no provxml
no registry...it sucks
Click to expand...
Click to collapse
sorry, i didnt understand that. can you reiterate? in layman's terms?
A com dll is a library for storing files that are shared between programs. Which brings me to my question. How can there be no com dll? We have read access to the registry but the write access is blocked right now. They are sharing essentially the exact same code with minor customizations for drivers and such. This does not remove the dll files from the device though. Or am I completely misunderstanding the idea of a dll file?
The LG, Samsung, and HTC phones have OEM-specific apps. To make those apps do useful work, the manufacturer has some COM DLLs exposing functionality not otherwise available to applications. Those COM DLLs are being exploited to create the hacks you see for other phones.
There are no Dell-specific apps and therefore no COM DLLs to exploit.
they do have some tmobile apps that come preloaded. can those work?
gosh! there must be some common exploit. this is stupid!
This is as close as an explot we can get the:
http://forum.xda-developers.com/showthread.php?t=929211
that is Dell's hidden diagnostic menu.
please someone find a way to hack this device!
Thanks for the clarification. I was not aware that the work around for ALL devices was coming from the pre installed manufacturer apps. Would the supposed password for the composite mode on the venue pro diagnostic mode be of any help? This is supposed to allow access to tethering according to pocketnow.com. The composite mode password is supposedly *#301# from what I have read.
Extremely unlikely.
The functionality exposed by the COM DLLs on Samsung HTC LG are things like being able to write to the registry and filesystem with elevated privs (to support provisioning apps and the like).
There is a com dll in the "connection setting" app from the store. Search for that title or "Dell" in the marketplace. Someone also posted the EM mode app. You could use that com dll as well

HTC registry liveid

can someone tell me where in the registry is your live id stored, Can't find it on a samsung focus anywhere but I was hoping on an htc device you could find it as I think your registry viewer is a little better then the samsung one.
You talk about this?
Live ID Activation Code
(Usefull on HD2 to bypass boring serial number step, need a valid serial!)
Code:
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\GwpCPC]
"ActivationCode"="*****-*****-*****-*****-*****"

Categories

Resources