Advice needed/Coding an app help - Windows Mobile Development and Hacking General

Hi mates, i need an advice about programing a simple app for WM6 actually for my Diamond, which should #include a simple main menu with settings, and most important a Homescreen plugin to show some text depending on a time of a day, and maybe some pics(small pics)
so here is the question, what coding programe would you recommend me to use? i know C and Pascal and a bit of C++
The app i want to do is about foreign language learning, and should show some frases or idioms during a day on the home screen,so you can observe the new words when you simple look at the homescreen
Thank you in advance for any kind of advice

Luckyfox777 said:
Hi mates, i need an advice about programing a simple app for WM6 actually for my Diamond, which should #include a simple main menu with settings, and most important a Homescreen plugin to show some text depending on a time of a day, and maybe some pics(small pics)
so here is the question, what coding programe would you recommend me to use? i know C and Pascal and a bit of C++
The app i want to do is about foreign language learning, and should show some frases or idioms during a day on the home screen,so you can observe the new words when you simple look at the homescreen
Thank you in advance for any kind of advice
Click to expand...
Click to collapse
I'm not a pro on legacy today plugins, but in order to make a today plugin .dll you'll need to instal visual studio .net (I use 2008, sometimes). Here's an interesting pick on how to get started with today plugins: http://msdn.microsoft.com/en-us/library/ms839442.aspx .
It would be a lot easier to make a plugin for WM 6.5 Titanium, which requires les BS . You could use basic4ppc or mortscript for this purpose, which are a lot like visual basic.

rpereira thanks a lot , i'll give it a study.
hope i can create smth worth the effort

Related

WMP plug-in

Hi all,
This is my first post in this forum and I hope that I will find some help here :wink:
I am a c++, c# and vb programmer, and I am very good in VC++, DLLs, ..., you know that stuff..
I want to develop a plugin for pocket windows media player but I dont know where to start!!
can anybody shade some light please :wink: , any references , articles ,examples, tutorials, anything you might find useful is welcome :lol:
Thank you,
Mohammad Gdeisat
mohgdeisat said:
Hi all,
This is my first post in this forum and I hope that I will find some help here :wink:
I am a c++, c# and vb programmer, and I am very good in VC++, DLLs, ..., you know that stuff..
I want to develop a plugin for pocket windows media player but I dont know where to start!!
can anybody shade some light please :wink: , any references , articles ,examples, tutorials, anything you might find useful is welcome :lol:
Thank you,
Mohammad Gdeisat
Click to expand...
Click to collapse
Salam Brother,
I am not interested in the WMP plug-in but I can give you a suggestion.
Why not develop a Plug-in behind the plug-in...?
Hmmmm.... what is that.
What is that...!
Hmmm. There it is...
Develop a Clock Plug-in but instead of ordinary today plugin... This plug-in is displayed behind the other today Plug-in...
See my attached image for some idea......
Thanks..
rmercado: that would be quite difficult, because the Windows API has a built in routine to make today plugins "transparent", which basically paints the today wallpaper through onto the plugin.
In order to do what you say, I think you'd have to subclass every today plugin and intercept its WM_PAINT, monitor screen draws and then squirt in your background plugin at the end of the screen draw. But this would still not account for different screen draws by the various plugins, so you would also have to force a syncronised refresh every so often, otherwise bits of the background would be out of sync.
There are much easier ways to achieve what you want, basically by writing a replacement for the today screen with today plugin emulation.
mohgdeisat: download the sdk. There are good examples in there.
Also check out PocketPCDN, and I recommend the book, “Programming Windows CE.NET” by D. Boling.
V
Thanx alot friends for ur replys,
Actually, I think I might have been missunderstood, I am not planning to write a "today plugin" to be displayed on the today screen, I am planning to write a plug-in for the WMP application, for example an equalizer for WMP.
I need to get the sound data that are being played, adjust them based on equalizer settings, then play the new data.
I dont know if Pocket WMP is designed to support such "functionalty extensions", and I really have no idea where to start my work, I can work with .NET or with C++, and I think I can learn it fast..
Any light can be shaded here?? waiting for your help guys :wink:
Mohammad
What would be really awesome would be to use the microphone of the phone to get ambient background noise, and then with some clever signal processing superimpose the negative waveform of the background noise over the audio output of WMP - effectively, a noise cancelling plugin that uses the microphone on the phone.
Not sure if the Wizard could handle it though, especially if it's streaming bluetooth audio!
Afraid I can't help on where to start writing a plugin...
Oliy
Thanx Oily,
It would be really a great idea, but I think that ourbeloved wizards cant perform heavy sound processing, maybe this would be more feasible on XDA Atom which has a faster processor.
Thanks for ur idea, but where should I start???????????? :wink:
Mohammad
Try the media player SDK.
V
thanx vigay,
I am taking a look on MSDN WMP sdk, seems to have good information, but still needs time to be understood well.
Just a note guys, I dont like to duplicate others work, so are there any plug-ins available for Pocket WMP, and what kind of plug-ins are out there?
Mohammad
Hi friends,
I really wonder what is the best approach with regard to performance when processing and displaying images:
1. is it DDBs??
2. DIBs?
3. OpenGL?
4. DirectX?
or maybe other??
plz provide me with ur advice.
Thank you,
Mohammad
mohgdeisat: you might want to open another thread in the development section for this question.
AFAIK - Microsoft is pushing DirectX, but it's WM5 only for now, not WM2003. Otherwise, depends on what you're working with. OpenGL is unlikely to be great, due to lack of good hardware acceleration.
V
I do not know if you have looked at this but it might help you.
http://msdn.microsoft.com/mobility/windowsmobile/howto/starterkits/default.aspx
I do not know if you have looked at this but it might help you.
http://msdn.microsoft.com/mobility/windowsmobile/howto/starterkits/default.aspx
Click to expand...
Click to collapse
Yes its great, and I will study.
Thanks,
Mohammad
I'm sure this has been mentioned but i thought id post a link to the media player 10 SDK
http://msdn.microsoft.com/library/d.../wmplay10/mmp_sdk/windowsmediaplayer10sdk.asp
Some useful info on plugins.

Creating a tabbed interface in WM5\WM6

Hi
I'm trying to create a tabbed dialog for wm5\WM6 (something like BatteryStatus setttings). However I'm quite lost on how to do it. Umpteen searches on google cudnt get me anything specific. I have tried using the "Tab Control" in MFC, but coudnt figure out how to add things to tabs other than the first one..
I'm quite poor in U/I coding, so would appreciate a more wysiwyg kinda solution for adding things (After that I can manipulate them thru code no prob)..And moreover I need a solution in Native C++\MFC...
TIA
Hi shantzg,
I had use "Tab Control" in MFC App long back on PC but not in PPC.
I think it will still be similar.
The "Tab Control" only lets u define no of tabs and will also fire events on the basis of selection.
You hv to programatically show ur UI controls on the basis of these events.
you can look how they handled it in their source
https://sourceforge.net/projects/claunch/
http://www.nakka.com/soft/ptools/
Check out wxwidgets...
you can create the interface using a wysiwyg program like wxformbuilder, and you can try compiling it on windows using something like wxdevcpp. However to make it run on ppc, you'll need to install either .net professional ide, or embedded visual c++. Anyway, you'll have to spend a bit of time going through the wxwidgets wiki to get it working.
Thnx for the replies guys, I'll check out the recommended things and get back to u..
There are quite a few extras in there, but you can check out the code for LVMTime. I used tabbed dialog for its settings (using C++). Basically each tab is a separate dialog with its own handling function and I show the one needed when the parent dialog receives a message from the tab control.
Thnx for that levenum, ill take a look..havent been able to check out any of things suggested so far due to paucity of time..will do so arnd weekend..thnx a lot all u guys..

Getting into WM5/WM6 programming?

I am interested in dabbling a little in programming for my Kaiser. I have programming experience, mainly php / mysql, though I have done some C and lots of scripting in my time. My biggest project so far though was an open source google maps mod to put on your website - thousands of lines of php / js code, mysql backend and AJAX tieing it together, some graphics routines etc, so I am no drooling n00b when it comes to coding.
How easy is it to develop basic stuff in WM?
I have access to MSDN, so I can get Visual Studio (2005 for sure, maybe later versions), so I think I have access to the apps I would need. I just ordered some books to help me along, but was wondering if I would likely face a steep learning curve.
All the stuff I want to do is today screen plugins - was thinking of having a bash at writing my own quick contacts plugin - *very* basic - just a vertically scrolling list of names over a transparent PNG button with maybe photos from the address book - I want it to be able to scroll by vertical gesture within an ultimatelaunch tab - is this likely to be quite easy and quite a good "first app" to program?
I was also looking at writing a lite repacement for phoneweaver as the only feature I use is to turn on BT when it detects power but no activesync (ie auto turn on BlueTooth when I am in the car and the device is cradled) - maybe a hack to force the keyboard backlight on in the same situation.
I have bought:
Microsoft® Visual C#® 2005 Step by Step (Microsoft)
Microsoft® Mobile Development Handbook [Paperback] by A. Wigley; Daniel... (Microsoft)
Comments / suggestions?
I would also be very interested in a thread or good reference on how to start to program app for mobile gadgets. Actually i'm a Delphi coder, and i would like to implement some applications on WM platform, but when i search over internet there's plenty of information, but no usefull information with "real-life" recomendations.
depend on the platform and language one wish to use really
there is c#.net, vb.net c++.net
c++ miniMFC, c++ PureWin32 sdk
oldVB
...
here are some other posts asking pretty much the same thing from the forum
http://forum.xda-developers.com/showthread.php?t=225405&highlight=programming
http://forum.xda-developers.com/showthread.php?t=237932&highlight=programming
http://forum.xda-developers.com/showthread.php?t=241670&highlight=programming
http://forum.xda-developers.com/showthread.php?t=245426&highlight=programming
http://forum.xda-developers.com/showthread.php?t=228043&highlight=programming
http://forum.xda-developers.com/showthread.php?t=317913&highlight=programming
http://forum.xda-developers.com/showthread.php?t=302548&highlight=programming
http://forum.xda-developers.com/showthread.php?t=327164&highlight=programming
http://forum.xda-developers.com/showthread.php?t=305926&highlight=programming
http://forum.xda-developers.com/showthread.php?t=336251&highlight=programming
http://forum.xda-developers.com/showthread.php?t=226412&highlight=programming
codeguru.com got examples of various windows mobile programs too today items and such
about delphi i dont know if anybody got some info i would say borlands site
Thanks rud. I was aware of various other posts, but my question was more of a "How steep is the learning curve?" rather than "How do you do it?".
There was also an element of "How do you do it?" insofar as there seem to be better or worse ways of going about various kinds of app (eg today apps with gesture support) which I am finding a bit of a minefield, but I feel that the new post was valid because I am giving an indication of my experience level and what I am trying to acheive - none of the posts you listed cover the combination of stuff I am trying to do. Reqs like pulling from outlook db and allowing gesture scrolling in a today plugin, I dunno, I may waste ages with C#, for example, only to realise it is a breeze with C++... I also note that a google search for wm programming gesture scroll today screen currently ranks this very thread #5. By tomorrow that'll be a googlewhack then.
Yes, there are various posts about how to get started, but I think maybe a sticky would be in order with a bit of info on the various paths - the vb/c++/c# options are quite bewildering - stuff like
levenum said:
Your question is mainly a matter of personal preference.
Here is my opinion on C++ vs. C#:
C++ advantages:
- Native code is faster than .NET
- Easier access to Win32 APIs
- Ability to write system components like keyboards and today plugins.
C# advantages:
- Saves on coding time
- Allows use of many .NET CF components to quickly accomplish complex tasks.
Please note that I am bias. I hate .NET and want nothing to o with it. Specially on mobile devices that do not have the processing power to spare for the .NET overhead.
Click to expand...
Click to collapse
is really useful, maybe if it were expanded upon, info such as for this route you need visual studio, etc, etc it would make a really good sticky for the dev section.
evilc said:
I am interested in dabbling a little in programming for my Kaiser. I have programming experience, mainly php / mysql, though I have done some C and lots of scripting in my time. My biggest project so far though was an open source google maps mod to put on your website - thousands of lines of php / js code, mysql backend and AJAX tieing it together, some graphics routines etc, so I am no drooling n00b when it comes to coding.
How easy is it to develop basic stuff in WM?
I have access to MSDN, so I can get Visual Studio (2005 for sure, maybe later versions), so I think I have access to the apps I would need. I just ordered some books to help me along, but was wondering if I would likely face a steep learning curve.
All the stuff I want to do is today screen plugins - was thinking of having a bash at writing my own quick contacts plugin - *very* basic - just a vertically scrolling list of names over a transparent PNG button with maybe photos from the address book - I want it to be able to scroll by vertical gesture within an ultimatelaunch tab - is this likely to be quite easy and quite a good "first app" to program?
I was also looking at writing a lite repacement for phoneweaver as the only feature I use is to turn on BT when it detects power but no activesync (ie auto turn on BlueTooth when I am in the car and the device is cradled) - maybe a hack to force the keyboard backlight on in the same situation.
I have bought:
Microsoft® Visual C#® 2005 Step by Step (Microsoft)
Microsoft® Mobile Development Handbook [Paperback] by A. Wigley; Daniel... (Microsoft)
Comments / suggestions?
Click to expand...
Click to collapse
Hey!
Congrats on getting your hands on with Windows Mobile...
The easiest way is to download Visual Studio 2005(2008 You have it on MSDN) - and create a new application with it.
It's sooo easy if you know your object oriented programming, as long as you want to create ordinary "office" applications... But if you want to do more advanced things(like creating a today-plugin) you need to go over to c++(even though you can download a .net home-plugin-container which acts like a "loader" for your plugin written in c++) - and also, if you want to create good GUIs, I think you are better off with c++... But then again, I think you need a bit more effort in learning c++ then using c#...
Hope this helps...
Still slogging my way thru this...
I got hold of an MSDN disc, first off I installed visual studio 6 - bad move.
Had to uninstall before trying to install VS 2005, now I think it has screwed something up, every time I try and create a "Smart Device Win32" project, I get a "Project creation failed" error. I may have to re-GHOST my OS to get rid of it
So much time just finding out what apps I need and what options to choose to start a project...
I found http://channel9.msdn.com/wiki/default.aspx/MobileDeveloper.HomePage which seems helpful
Thanks for responses!
Evilc, you link of msdn is excellent point, many thanks!
I have also just started programming in C++ ..i dnt have any knowledge of any type of codes..i learned every thing frm MSDN libraries ( i have many many of them caz i have VS 2006 VS 2005 and VS 2008 )..i recommend you to work with C++ because it uses less system resources and is fast..hope this helps..check out my Kitchen coded in C++ ( link in signature )
Yeah, I think C++ is definately more what I am looking for from what I have learned thus far.
Re-Ghosted OS - totally fresh XP SP2, installed Visual Studio 2005, still the same error. GRRR!
Visual C++ --> Smart Device --> Win32 Smart Device Project == "Project Creation Failed"
Other Languages --> Visual C# --> Smart Device --> Windows CE 5.0 --> Device Application == Project created OK.
Some posts I have found on the net say it is an IE7 issue, I may try uninstalling that or flashing back to an OS image with IE6 only, but this is really winding me up and taking a *lot* of my time...
I uninstalled IE7 and the problem went away. Woohoo!!
starting programming windows mobile
hello
1. see my web site.
2. see my book recommendations, especially the 'programming windows ce' by douglas boling. It has an example for many things and a today sample too. Most is based on visual c++ 3.0/4.0. Embedded Visual C 4 can be loaded free of charge at ms.
regards
josef
Nice site, thanks.
The windows mobile 6 sdk actually has a today screen sample, along with samples of most of the things I need to do.
neofix said:
It's sooo easy if you know your object oriented programming, as long as you want to create ordinary "office" applications... But if you want to do more advanced things(like creating a today-plugin) you need to go over to c++(even though you can download a .net home-plugin-container which acts like a "loader" for your plugin written in c++) - and also, if you want to create good GUIs, I think you are better off with c++... But then again, I think you need a bit more effort in learning c++ then using c#...
Hope this helps...
Click to expand...
Click to collapse
Are we using the same language?? Cos this (C++ Win32 for Mobile Devices) is by far and above the most difficult programming language to get into that I have ever tried. Yes, worse than ASM.
Trying to code an app that prints "Hello World" has taken me over 5 hours with no success yet - most languages I have a go at it's 5 minutes.
From http://msdn2.microsoft.com/en-us/library/ms901121.aspx :
Code:
int DrawText(
HDC hDC,
LPCTSTR lpString,
int nCount,
LPRECT lpRect,
UNIT uFormat
);
It gives a brief description of what the parameters are, but absolutely no examples and no explanation of what all the parameters do or how to initialize them, so even browsing an example is no use to me.
u can simply try
MessageBox::Show(" your message ");
ather90 said:
u can simply try
MessageBox::Show(" your message ");
Click to expand...
Click to collapse
Isn't that .NET ?
I thought the consensus was that Native Win32 or whatever it is called was the better way to go?
This is part of the problem. I cannot even work out what to put in a search engine to pull out info on the right "flavour" of C and for the pocketpc. It's *so* bewildering.
Hello evilc.
First I noticed you have some trouble with VS 2005. It probably won't be easy now, but if you ever get to format your machine again don't install it (unless you absolutely need some other features).
For C / C++ programming for WM device I strongly recommend eVC 4 as it is much lighter and responds quicker. (It's a free download as well)
Second, though you can program for WM in C# and VB .NET which are both .NET Object based languages and are probably much closer in form to PHP and Java then C, you can not write system components such as today plugins in those languages.
You need native code so C / C++ is the only way to go.
(Actually, there is a trick to combine C# and C++ DLLs to create a today plugin where C# will do the main stuff, but its pretty complicated)
What you need is to learn basic Win32 programming and using the windows API. They are almost identical for Windows Mobile and Desktop windows versions so any book on Win32 should teach you the basics.
(Personally I started with MS book on MFC and studio 6 but I would not recommend it)
Finally:
I would gladly explain the parameters of DrawText but I am not quite clear on how much familiarity you have with the Win32 mechanics, since the languages you are used to obscure them unlike C which gives you extra power but also makes you work much harder to get anything done.
Do you know how to handle messages, and how windows manages all abjects using handles? Any familiarity with GDI?
If not, it will be pretty difficult to explain.
levenum said:
Hello evilc.
Click to expand...
Click to collapse
Hello! <waves>
First I noticed you have some trouble with VS 2005. It probably won't be easy now, but if you ever get to format your machine again don't install it (unless you absolutely need some other features).
Click to expand...
Click to collapse
I tracked down the problem when I got home and installed on my desktop. When doing it on the laptop, whilst installing SP1 for studio 2005, I had hit "Not Now" to a reboot request and it had said installation failed. When I installed SP1 on my desktop and said "Yes" to the reboot request, the problem went away, so I guess it was fixed in SP1 but the installer is a bit picky.
For C / C++ programming for WM device I strongly recommend eVC 4 as it is much lighter and responds quicker. (It's a free download as well)
Click to expand...
Click to collapse
Wish I had that advice before as I wasted a day messing around with an MSDN CD, trying to work out what to install and what not. So does the eVC 4 download include an IDE? If not, what do you use?
Second, though you can program for WM in C# and VB .NET which are both .NET Object based languages and are probably much closer in form to PHP and Java then C, you can not write system components such as today plugins in those languages.
You need native code so C / C++ is the only way to go.
(Actually, there is a trick to combine C# and C++ DLLs to create a today plugin where C# will do the main stuff, but its pretty complicated)
Click to expand...
Click to collapse
You don't have to tell me twice to avoid the bloatware ****e
What you need is to learn basic Win32 programming and using the windows API. They are almost identical for Windows Mobile and Desktop windows versions so any book on Win32 should teach you the basics.
(Personally I started with MS book on MFC and studio 6 but I would not recommend it)
Finally:
I would gladly explain the parameters of DrawText but I am not quite clear on how much familiarity you have with the Win32 mechanics, since the languages you are used to obscure them unlike C which gives you extra power but also makes you work much harder to get anything done.
Do you know how to handle messages, and how windows manages all abjects using handles? Any familiarity with GDI?
If not, it will be pretty difficult to explain.
Click to expand...
Click to collapse
No GDI Experience. I take it this would be the library of choice for drawing the screen of a today screen app? Stuff like the HTC Home clock or the new Face Contacts - they would likely use Native C++ and GDI? Doesnt strike me as something you would do with a form.
Also, anyone got the skinny on vertically scrolling by click-and-drag inside a today screen app? Just a case of enabling a parameter? Has to be coded manually? Best way to do it smoothly? If you have seen the Conduits Pocket Player 3.x browse list - how it "eases in" and "eases out" at the ends of the list, has inertia so you can "flick" down the list, the alphabetical bar instead of the regular scroll bar - is that all coded manually or is there an api or something that can help?
Thanks for the help!
I just noticed your apps in your sig - checked out LVM time - noticed there was source - wooohoo! I generally pick these things up by example.
All that code just for a (configurable) clock on one line - wow. Great though, a really good example of a today app - minimal enough in functions so it is easier to suss how it all slots together, but full featured enough (implimented example of an options screen - yay!) to show how to do various things.
And Gnu as well! Nice, this will be the basis of my first test project too I think - at least now I have a framework to test out what I want to do and how to go about it without having to work out how to code the basis of the application.
I thank you from the bottom of my heart sir.
I tried to build it in VS2005, but I got a
fatal error C1083: Cannot open include file: 'todaycmn.h': No such file or directory
A quick google search showed todaycmn.h was part of the SDK, I found the file, dropped it into the headers section of the project, but no joy. I will probs just try eVC.
Oh, and having developed a today plugin, maybe you can answer this one:
As far as I can tell so far, debugging isn't very easy with a today app - something to do with the fact that the dll is not releasable? Is this an issue I will come up against? I hope its not a case of "reinstalling" the app each time you want to test... I was thinking maybe along the lines of have it as a normal app for debugging, then make it a today plugin when you want to build to use it?
I dunno, probably trying to run before I can walk, my books shoulda been here today, oh well. Sorry for all the questions...
@evilc:
Are you using standard Win32 or MFC?
You may want to try using MFC since you get the flexibility of native development but with some nice class libraries that make your life easier.
As for click and drag behavior, that is usually implemented by handling the WM_LBUTTONDOWN, WM_LBUTTONUP and WM_MOUSEMOVE.
When you get wm_lbuttondown you set a flag that says the user is dragging. You use wm_mousemove to update the stylus position as long as this flag is set, then you unset it on wm_lbuttonup.
That's the basic idea anyway. Someone made a post about gesture recognition in this forum a few weeks ago with sample code. You should see if you can find that.
Managed Today Screen plugins
See:
http://msdn2.microsoft.com/en-us/library/ms839442.aspx
for some background on the concept.
And:
http://www.christec.co.nz/blog/archives/279
Outlines what I think is a very ingenius technique for managed today screen plugins.
For those of you that want an easy way to make a today screen app in c#. Chris did all the C++ work for you.
Also I forgot to mention that the SDK samples cover all most every application type you can think of. Most of the good ones are Win32 though.
Also, keep in mind that you can use P/Invoke from your C# apps to call native APIs. So don't let people tell you you need to use C++ just because you can access more api's. I will say that you should use C++ for games, or other apps that require high speed or advanced GUI's (it is VERY hard to do interesting gui techniques with C# and interop, trust me).
And finally, I would highly recommend using the most recent version of visual studio you can get (especially if you're using vista), unless your machine can't handle a newer version. I say so because visual studio gets more and more powerful as an editor with each new iteration and I personally can't go back after I get used to the new features they introduce. And the new versions are almost necessary if you're going to do .net development.

[Q][Help] Need code for editing and saving file in VB.NET

Hay,
i'm trying to develop a program, in VB.NET. i call it wDiary stands for Workout Diary.
The purpose is to let the user choose 4 (or more) sports to save progess/daynotes of, and to view the txtfiles, like a dayly diary in a calendar.
i have comed to that part where i'm want to save a file in a spesific directory.
like save:
"Jogging - " + date".txt in %MyDocuments%\wDiary\Jogging\
print textbox1.text in line one and so on
like the this code
Code:
FileOpen(1, My.Application.Info.DirectoryPath & "\Jogging - "+date".txt", OpenMode.Output)
PrintLine(1, TextBox2.Text)
PrintLine(2, TextBox3.Text)
FileClose(1)
But thats a code i used for an Windows app. I want the same function for my Touch pro (WinCE 6.1) :/
Fraction
Reserved..
Just a quick one, and I understand English might not be your first language but a Dairy is where they bottle milk, and make other dairy produce like cheese and cream.
I think your app should have been called wDiary - as in a diary of events
I'm not taking the mick here, just offering a bit of help As for the file editing, what language are you doing it in? C++.net, C#.net, VB.net?
If it's vb.net you're using - this site has some decent basic file routines (checking if it exists, adding text, appending, closing etc)
Hope this helps
Doing a quick search, it points out to be VB.net indeed. Try stating which language you use next time.
The link in the above post should give you sufficient info.
FrederickUK said:
Just a quick one, and I understand English might not be your first language but a Dairy is where they bottle milk, and make other dairy produce like cheese and cream.
I think your app should have been called wDiary - as in a diary of events
I'm not taking the mick here, just offering a bit of help As for the file editing, what language are you doing it in? C++.net, C#.net, VB.net?
If it's vb.net you're using - this site has some decent basic file routines (checking if it exists, adding text, appending, closing etc)
Hope this helps
Click to expand...
Click to collapse
****, now i'm embarrassed. no, english is not my primar language. hehe.
Visual basic.net
EVILRipper said:
Doing a quick search, it points out to be VB.net indeed. Try stating which language you use next time.
The link in the above post should give you sufficient info.
Click to expand...
Click to collapse
i have edit the topic, and the first post. thanx, i forgot.
Fraction
You should be able to use the standard System.IO.StreamReader and System.IO.StreamWriter Functions. I can code this in c# if you can translate to VB.net.
Change of direction
Actually let me make another suggestion. Sometimes when writing a small app to collect data I use a very lazy yet very usefull feature of .net DataSets.
I databind the controls to the dataset by dropping the dataset on the form and assiging the bindings via autogenerated bindinsource component. All I do now to read and save are the following lines of code
Read:
Code:
dataSet1.ReadXml("mydb.xml");
Write
Code:
dataSet1.WriteXml("mydb.xl", XmlWriteMode.WriteSchema);
It might not be pretty but it does the trick. Also less code and no need for parsing XML
yes please
cornelha said:
You should be able to use the standard System.IO.StreamReader and System.IO.StreamWriter Functions. I can code this in c# if you can translate to VB.net.
Click to expand...
Click to collapse
Yes, please
I have one more thing, if sombody can help. the Design seems perfectly in Visual basic. put when i deploy it to the emulator it looks smal and rubbish. the buttons (png.files) gets streched in width and pressed in the height. so, how can i design in 480x640 (VGA) for my Touch pro :/
I've set my emulator settings to USA WM 6.1 Classic and it works fine when deployed to my touch pro. If your screen resolution is fairly high (I use 1280x1024) you could use USA WM 6.1 VGA but it filled my entire screen. You might have better luck if you use 1600x1280 or whatever (or run multi-monitor)
Hope this helps
FrederickUK said:
I've set my emulator settings to USA WM 6.1 Classic and it works fine when deployed to my touch pro. If your screen resolution is fairly high (I use 1280x1024) you could use USA WM 6.1 VGA but it filled my entire screen. You might have better luck if you use 1600x1280 or whatever (or run multi-monitor)
Hope this helps
Click to expand...
Click to collapse
i Also use 1280x1024, and i (usa?)VM 6.1 profesional.
and yes it it fills my hole screen ;P

Please help,where should I start to learn programing for android?

Hello XDA forum members.I want to be able to make my own Android applications that could work via internet.I would like to create small and simple social network with some simple functions.I'm starting with learning of programing in C++ because I always wanted to know to program in that language.But first I would like to create an application that would be used in Android.So I'm willing to learn an additional language just so I could make this idea that I have and I'm sure that I will use this knowledge in future.
So my question is in what program do you code applications for Android smartphones,what is the best way to learn it and when I learn it I want to be able to make application like Badoo(social,meeting application) Badoo is the best example of what I'm trying to do because it is downloadable application that connects to their website.Because this idea that I have will have similar interface and similar features.Please help me with your advice so I don't loose time on mistakes and trying on different languages.Thank you in advance.
Try Aide
From google play it teaches you how you can create applications.
Press thanks
Regards
banerjeeayan1996
Hello
the native language to learn for Android app is java but you should have OO notions before, like with C# (very similar) or C++.

Categories

Resources