Little question for C++ programming - Windows Mobile Development and Hacking General

Hello my friends,
I need to write a C/C++ apps very simple for windows mobile.
My apps won't have GUI and no console, it's just an apps in order to make some traitments on files.
So my question is, what kind of projet i need to select on Visual Studio 2008, because in Smart device, there is no "application console".
Is possible to just write a cpp file on configure the compilator in order to setting my programm for Windows Mobile device ?
Thanks a lot ,
regards,
Nixeus

Select a Mobile Project, under C++, then select Win32 project. It will start a wizard. in the wizard, select Console App.
That should do it [I use VS 2008, but that should be the same for all of them...]

Okkk
Thanks a lot
regards,
Nixeus

Related

tutorial needed - how to compile and distribute evb applicat

dear all
I have been practising with some sample codes in evb and would like to test them out on my xda. I need educating on how to compile (make) an evb application and package same for installation on my xda. thanks in advance. I looked in eVB tools and got nothing.
ajanaman
XDA's are PocketPC 2003 devices and can not be used for "live" debugging from within the eVB IDE debug environment. Also the 2003 devices need the eVB runtimes installed on them in order to run eVB programs. Checkout www.devbuzz.com for guidelines. HTH.

.NET Compact Framework 2

I have Visual Studio 2005 on my PC plus the WM5 SDK. I have been developing a WM5 application and using the emulator to debug. It is nearly ready and thought that I would debug through the Wm5 PPC. I was then confronted with a warning message that the Compact Framework 2.0 was not installed on my PPC. OK I thought so downloaded the NETCFSetupv2.msi from Microsoft. When I try to run this I am told that I already have the .NET 2 Framework - presumably because I have VS 2005 etc.
Is there any way for me to get the CF2 onto my PPC without having to uninstall VS 2005???
Hi there,
Yes you can....
...\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\wce500\armv4i
go to this folder and pick up the frame work that suits you
copy the cab file "NETCFv2.wce5.armv4i.cab" for Pocket PC to Pocket PC and install it.....
regards
Aftab Alam
If you go into the properties of your project within VS2005 you will see a tab page for Devices. On that tab page change the target device to that which you want to deploy it to and lower down the page you will see a check box to "Deploy the latest version of the .NET CF". Ensure that box is checked. Debug your project and the CF will be installed on the device.

VB.Net + mdb-Databases (Access) on WM6

How can I open Access Databases in VB.Net for WM6?
I want to use sql-commands to read, edit and write to the database
is this possible? thank you for help!
greetz SciLor
Ok, I have no idea about these things but I will still try it
Maybe this?
http://www.microsoft.com/downloads/...FamilyID=38ed2670-a70a-43b3-87f3-7ab67b56cbf2
Thank you that might be what i search know i need to know how to access on on the DLL's
i do not believe that compact framework differs from normal .net
when it comes to oleDB interface
i would check out
codeguru.com for code about conecting to an access db
Thank you for the site! very useful
I will try to find something, but my problem is i never used vb.net in connection with databases
i cant help you with anything vb related as i hate vb
but if you need a connection string
http://www.connectionstrings.com/
I only read about sdf files... these databases suck, i dont want to work with different file types on my computer and my phone
Portable Database
i'm using SQLite on my wharehouse program it's free fast and your database file is portable meaning you can access the data on your mobile as well as your destop, if you are coding in .net there is a net wrapper availiable too, you can connect with the database similar way as if it was sqlce database so i found it pretty easy, and the sql syntax is like typical SQL. you have to get a query analyzer separetaly though, or build your own it's not hard to implement.
So try Googling for SQLite and the .Net Wrapper basicaly you need only the Wrapper, and copy the wrapper .dll to your device in your app directory.
Ps. There are many open source projects availiable to learn how to use it just search
Ps2.Sorry for my bad english.

Modify SourceID of a contact

I tried to find on internet but found nothing on it.
I am trying to modify the SourceID of a contact on Windows Mobile.
I am using .Net, and by now i am sure that it cannot be done.
But if someone can possibly write me a small wrapper which has a function to do this.
I will use that in .Net and pass it an ItemID & SourceID as parameter, and it will modify SourceID of that ItemID.
I am not a guru in c++ and thats the reason i seek help if anyone could help me.
Just to add, Windows Mobile 5/6 SDK comes with a sample app called PimExProvider
It updates all contacts SourceID to a new available id.
This code will surely help to start with if someone can help me.
I was able to do it myself.
I created the c++ dll and called it in .Net.

[Q] How to trace C# code in Windows Mobile 6.5

Hi All,
I am using VS2008 to write C# codes for a Windows Mobile 6.5 device. I know that Trace.WriteLine could be used to trace a program for a non Windows Mobile project However, when I try to use Trace.WriteLine in a Windows Mobile 6 project, I receive the following compilation error :
CS0117: 'System.Diagnostics.Trace' does not contain a definition for 'WriteLine'
I find that if I use Debug.WriteLine, then the mobile project compiles OK. But due to some technical issues I have to stick to the "release" build in this mean time. Does anyone know of other ways to trace a C# program in a windows mobile project, i.e. write debug messages to the VS2008 output window.
Thanks for any suggestion.
Regards
Lawrence
How to trace C# code in Windows Mobile 6.5
Hi All,
In fact, I have a downloaded opensource VS2008 solution with a C++ DLL project and a C# Application Form project. The C# project calls the DLL created in the C++ project. Both the two projects have a "release" config but the C++ DLL project doesn't have a usable "debug" config. The original opensource solution could be compiled and run OK if both of the two projects are in "release" mode.
However, I want to turn the two projects into "debug" mode and add debug/trace statements (Debug.WriteLine, Trace.WriteLine) in the two projects. For the C# project it is trivial but for the C++ project I find no way to do this. If I turn the C# project in "debug" mode while keeping the C++ project in "release" mode, the solution rebuilds OK but when I deploy the projects into my Windows Mobile 6.5 device, an exception occurs complaining that the "debug" mode DLL (i.e. the DLL with an extra "D" in its name) could not be found.
Does anyone know of an easy way that I could create a "debug" config from the existing "release" config for the C++ project so that I could turn the whole solution into "debug" mode, or could I re-config the "debug" mode C# project so that it could use the "release" mode DLL created in the "release" mode C++ project ?
I am sorry if I have asked a too naive or too hard question as I am mainly using Java and am new to the VS2008 C++/C# environment.
Thanks for any suggestion and any pointer/link would be appreciated.
Regards
Lawrence

Categories

Resources