System.Diagnostics.Process alternative to launch an app - Windows Mobile Development and Hacking General

Hi,
I want to launch an app/file from within my C# program. The common way to do this is to use System.Diagnostics.Process class
e.g. System.Diagnostics.Process.Start(@"MyFile.txt");
This class does not seem to be available in CFv1.0. Is there an alternative way to run a file from within my code?
Dev Env: C#, VS2005, WM5.0 PPC and Compact Framework v1.0 (I have to stick with CFv1.0)
Thanks for any help and code given

Any takers? I'm still struggling to find a way to run another file from within my c# program. I can do in VB if it helps me. I don't think this should be difficult but I am coming up blank without being able to use System.Diagnostics.Process class (only available in CFv2.0)

This class was missing in the v1.1 CF Framework... and as such, there is no way to launch a thread.
You must upgrade to the v2.0 framework.

I need to find an alternative to using the System.Diagnostics.Process class. I have to support CFv1 devices with the install so cannot upgrade to CFv2

You can do it by P\Invoking the CreateProcess function.

Related

Question for developers

I want to learn how to develop small apps for the pocket pc platform.
What language should I learn. What software do u use?
Visual Basic? c++ ? I am kinda stuck.
Can someone point me in the right direction... also where can I find good documentation on developing for this platform?
Thanks
visual studio .net 2003 let you make applications for the xda in c++, c# and basic
embedded visual studio let you make applications for the xda in c++ using mfc and win32
you can also use powerbuilder i think it's called
and gc as in the gnu compiler
which language you want to use is up to you really
Hi,
i just decompressed a .cab file found in my MDA compact extended rom:
Default_PhonePad_ITA_RC10.CAB
i found a lot of files....
0CeSetup.001
0CeSetup.999
IN05D9~1.020
IN71C6~1.016
etc..
etc...
the question is easy...
how can i open these files? What kind of language are those files programmed with?
thanks in advance
how can i open these files? What kind of language are those files programmed with?
Click to expand...
Click to collapse
they would be Binary files as in already compiled files you it matter not which language they are written in as when they are compiled they are nothing but 0's and 1's
how you open them really depend on what you mean by opening them
if you mean that you want to run the application then you should not extract the files just doubleclick on the cab file and it autoinstall
if you mean how you edit cab files then there are many cab file editors
try doing a search in the forum or on google
if you mean that you want to decompile them back to code then i'm sure there are tools for that too but code which have already been compiled and then taken back to code looks very very bad
and you need to really understand win32 sdk to understand much of whats going on
decompilers should be able to decompile to what ever langauge they support no matter which language the program originaly was written in
Additional Programs
For Cabs: use the WinCE CAB Manager, download here: sorry forgot the link, just search here.
For ms_.nbf: use the windows mobile 2003 ROM Editor, download here: http://forum.xda-developers.com/download.php?id=3208
Rudegar said:
visual studio .net 2003 let you make applications for the xda in c++, c# and basic
embedded visual studio let you make applications for the xda in c++ using mfc and win32
you can also use powerbuilder i think it's called
and gc as in the gnu compiler
which language you want to use is up to you really
Click to expand...
Click to collapse
Incorrect. Visual Studio.net 2003 lets you make c# questions for PocketPC, but nothing else. For C++ you needed embeddded visual studio.
Visual Studio.Net 2005 does add everything, but thats in beta.
btf
they would be Binary files as in already compiled files you it matter not which language they are written in as when they are compiled they are nothing but 0's and 1's
Click to expand...
Click to collapse
ok, got it
if you mean that you want to decompile them back to code then i'm sure there are tools for that too but code which have already been compiled and then taken back to code looks very very bad
and you need to really understand win32 sdk to understand much of whats going on
decompilers should be able to decompile to what ever langauge they support no matter which language the program originaly was written in
Click to expand...
Click to collapse
yes, i meant this. Decompiling the cab file to read the code.
I thought there was a compiler for each language, that's why i was asking.
If somebody could suggest a free good decompiler....
well a cab file is not a program is more like a zip file
use the cab thingy mentioned and get the dll and exe files out of the cab file
here is what you would look for if the programs like most games is in pure ARM code
http://www.google.dk/search?q=arm+decompiler&btnG=Søg&hl=da
maybe this would help if you are trying to access .net
http://www.programmersheaven.com/search/download.asp?FileID=38892
how you go about it when you know something about the arm asm and maybe want to write your own decompiler
http://list.cs.brown.edu/pipermail/plt-scheme/2004-August/006284.html
maybe this
http://compilers.iecc.com/comparch/article/01-09-046
or if you feel luckey
http://www.google.dk/search?hl=da&q=pocketpc+decompiler&btnG=Søg&meta=
cab
my apology...cab is not a program...

REQUEST : getting started with wm5 development

can anyone point me in the direction of some help or a guide to getting started with wm5 dev ?
just looking for a "hello world" level walk through at the moment.
thanks in advance.
WM5 Dev
Get hold of Visual Studio .NET 2005 and examine the example programs Goodluck!
do i need to install the dotnet framework on wm5 or is it built-in ?
cheers
You need Active Sync 4 during development. You may wish to run the sample program in your WM5 device OR using a WM5 emulator. If you chose to run it on your device, cradle your device and VS.NET 2005 will install .NET compact framework on your device before it attempts to run your sample program using your device
thanks for taking the time to answer. i would have thought that the dotnet framework would have been built-in with wm5.
no-one likes to have to install extra programs to get an app to work.
I am not sure with the "newer" WM5 devices out there. I have an XDA II with the first leaked WM5 ROM and it does not have the latest .NET CF...
If you have a WM5 device, verify the .NET CF version you have by running: \Windows\cgautil.exe
i have 1.0.4292.00 installed on my wizard.
how does this compare to dotnet v1.1 or v2 ?
cheers.
I guess it is not the latest version. VS.NET 2005 needs CF v2 in order for programs to run properly.
Hi there.
I'm planning on embarking on PPC development journey as well.
Yet to get hold of VS.NET.
I was just wondering, if anyone would know how the app in the link works:
http://www.pocketpcfreewares.com/en/index.php?soft=338
Does it link to the registry, etc?
It obviously does not work on WM5, and I would appreciate if anyone could gimme a headstart on working one for WM5.
Thanks!
steelorange said:
I guess it is not the latest version. VS.NET 2005 needs CF v2 in order for programs to run properly.
Click to expand...
Click to collapse
You can develop .net CF 1.0 applications in VS.NET 2005. Then you don't need to install the .net CF 2.0 on the device. There are some handy things that's missing in 1.0, but almost everything can be done... just not as easy as in 2.0
Øystein

HOWTO start MIDP Application development - some questions ..

Hey guys,
Currently I am Java programmer (applications and applets for PCs), but I want to try something new, and so I am instersted in developing apps for cellphones. Hope you can answer my questions:
1) MIDP 2.0 does support animated gifs and allows me to access the phones memory (for loading files) when the phone supports this, right? Whats the name of the API that allows me to access the phones memory?
2) Whats the best free development platform for MIDP 2.0 at the moment? Currently I use Eclipse, but I guess I need something else for mobile development.
3) Are there any websites with tutorials that give me a lil introduction to MIDP? Any links are welcome.
Just started to look at this myself, though not fully understanding it yet, managed to get a MIDP helloworld class compiled and .jar created just using javac / command line so far, but haven't managed to get it working on the device yet, need to look into preverifying so i'm told.
2) J2ME toolkit perhaps, free with registration on java.sun.com, explanation of it is in the link in reply (3), might be worth a look first to see if it's what you're after.
3) http://www.codeguru.com/Cpp/W-P/ce/networking/article.php/c7911/
If anyone has any further info, please respond.
http://today.java.net/pub/a/today/2005/02/09/j2me1.html?page=2
works

Doubts with Using Xamarin to develop Android App

Hi All,
We are developing Android App using C# with Xamarin.
I have task to integrate existing C source with App developed. This done by loading corresponding *.so.
Sorry in advance if these questions are naive....
Questions:
1 > I am using Windows. To generate the *.so what is the suitable IDE? Can the windows be used to generate *.so(static object)?
2> If I were to go with Eclipse , Do I need to install the plugins like SDK ,NDK etc...?
3> Do I need to care for processor architecture's , If need to compile the source?....I mean cross compilation
Thanks
sanddune008 said:
Hi All,
We are developing Android App using C# with Xamarin.
I have task to integrate existing C source with App developed. This done by loading corresponding *.so.
Click to expand...
Click to collapse
I'm not sure if I understand you question but I assume you want to extend an existing app -build in C# using Xamarin- with native android Java?
I'm not sure that's even possible. Xamarin is utilizing mono for android to create android (Linux) executable files. When decompiling my own Xamarin build apk with APK Studio I did see the mono .so libraries, but my own code was compiled. Referenced .Net (Windows!) dll's where added to the apk. I assume the mono libraries deal with how they are used in the compiled C# code.
Since there's no quick conversion I see a few options:
A - Change the Xamarin/C# android project to a library project (dll). Compile it using Xamarin and find out (google) how to utilize this dll using mono for android in your Java development environment (eclipse). There are mono .so files...
B - Convert the Xamarin/C# source to java source code. There are some commercial tools which claim to be able to convert C# to Java. Go java all the way.
C - Stick to Xamarin/C#
I think option A will lead to lots of headache assuming you referenced some .Net assemblies in your C# source. However it might be worth a try. Though keep in mind that if you keep using the Xamarin/C# part, you keep needing the Xamarin license to upgrade/update code in the future.
I would go for either B or C depending on the codebase. If it's a lot of code a Xamarin license renewal might be cheaper then a rewrite (conversion). In my experience code converters are reasonable tools, but I've never saw a one-click conversion happen. There's always extra work to make the converted code even compile.
In conclusion: Mixing Xamarin/C# and native Java code might be technically possible, I would rather make a choice for either one of them.
I can't answer your questions about eclipse and required libraries, but I hope my answer is of some use.
Regards,
Alex

Android app with Gradle in Eclipse

Greetings!
I just started my internship in a company that develops android applications., but i have a problem. My boss insists that i work in Eclipse, but I'm unable to follow instructions from android developers site because my eclipse app doesnt have gradle.
To be precise, my job is to implement push messages into existing app but I'm stuck at these lines:
Add the dependency to your project-level build.gradle:
classpath 'com.google.gms:google-services:1.5.0-beta2'
Add the plugin to your app-level build.gradle:
apply plugin: 'com.google.gms.google-services'
dependencies {
compile "com.google.android.gmslay-services:8.4.0"
}
Is there a way to work around using gradle, and do this other way, or alternatively is there a way to add build.gradle files to my project.
I'm pretty worried because this is my first job, and I'd like to do and learn as much as possible but I'm just stuck. If someone could explain to me step by step what to do when i stumble upon a gradle, would appreciate it immensely.
Thanks
You can try to use Gradle (STS) Integration for Eclipse, but it's very hard
If you need to use Eclipse for Android development it is highly recommended to use ADT plugin: http://developer.android.com/tools/sdk/eclipse-adt.html
It is developed by Google for Android development and was the only choice few years ago. Now they support only Android Studio but you can of course use Eclipse. You may find an Eclipse ADT bundle as well somewhere which is an eclipse integrated with ADT. If I remember well it do have a Gradle plugin but if not then use Gradle STS from Eclipse marketplace
why dont you use Android studio?

Categories

Resources