|
Thanks for you comment and your suggestion.
Right now, the synchronisation is triggered by manually pressing a button,
so suspended mode is not a topic. Since it will only work when the user is
in range of the wireless network (before and after a tour) there are currently
no plans to add automatic synchronisation at this time. Maybe later sending
the data using GRPS will be a topic but not yet.
I am not using multithreading either.
About me, I am quite experienced in general windows programming, but I am still
learning new things concerning .NET and mobile development.
|
|
|
|
|
I m trying to Run black berry application on simulator after installing JDK,JRE, Eclipse And Appache Ant etc
But when i Run build.xml As RunAs Ant then get some building erorrs like this
Buildfile: E:\Current\BlackBerry Projects\4th\mfunds-java\build\build.xml
[typedef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
buildAndPackageTarget:
[typedef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
clean:
[delete] Deleting directory E:\Current\BlackBerry Projects\4th\mfunds-java\preprocessed\${alias}
[delete] Deleting directory E:\Current\BlackBerry Projects\4th\mfunds-java\classes\${alias}
[echo] Target ${alias} was cleaned
[typedef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
preprocess:
[mkdir] Created dir: E:\Current\BlackBerry Projects\4th\mfunds-java\preprocessed\${alias}
[wtkpreprocess] **************************************************************
[wtkpreprocess] * Antenna 1.0.1 initialized for project "telSPACE Java" *
[wtkpreprocess] * Using Sun Wireless Toolkit 2.5 (CLDC-1.0; MIDP-2.0) *
[wtkpreprocess] **************************************************************
[wtkpreprocess] Preprocessing 40 file(s) at E:\Current\BlackBerry Projects\4th\mfunds-java\src
[echo] Pre-processed successfuly with: ${platform}, ${platformver}, ${alias}, ${alias2}
[typedef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
compile:
[mkdir] Created dir: E:\Current\BlackBerry Projects\4th\mfunds-java\classes\${alias}
BUILD FAILED
E:\Current\BlackBerry Projects\4th\mfunds-java\build\build.xml:334: The following error occurred while executing this line:
E:\Current\BlackBerry Projects\4th\mfunds-java\build\build.xml:377: Problem: failed to create task or type if
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
Total time: 18 seconds
plzzzzzzz suggest some solution
|
|
|
|
|
Hi,
for normal .net framework, we can use the existing ini class that uses kernel32.dll.
Is there any similar class for the compact framework?
what is the way i can read an ini file on compact framework???
Thanks.
|
|
|
|
|
The standard Windows functions for INI files are not in the Windows Mobile SDKs so I doubt there's a way to call them from the Framework. You have to implement your own INI file interface (or maybe there's a class available somewhere!?). Otherwise, I suggest using the registry instead...
|
|
|
|
|
|
Hi Everyone,
I am new to smart phone and pocket pc development using visual studio 2005.
I have applied lots of search to get the help for obtaining IMEI number of PPC and Windows mobile using VC++ but could not succeed, if any one know some stuff about that how to get IMEI no of mobile please guide me.
I need only logic how to get it, not need any dll. Though I found some sample in C# I am not sure how to use that. Please concern my thoughts.
Thanks in advance,
Programmer...
|
|
|
|
|
Have you find any way to get IMEI number. If yes, then please can you reply me.
|
|
|
|
|
I could not find any way to get the IMEI number using VC++. So instead of IMEI number,I am using Unique Device ID of the mobile phone which equally serves my purpose.
|
|
|
|
|
|
Hi,
I just want to develop an application where I can turn my PDA or the Storage Card of the PDA to a USB Mass Storage in VB.NET?
Thanks.
|
|
|
|
|
The OEM has to implement that. You won't be able to add that to a WM device on your own. There also has to be certain hardware support for it.
|
|
|
|
|
WM 6.0
Pocket PC
C#
Visual Studio 2008
I have been trying to get the above command to work in order that I can allow the user to lock the device and stick it in his pocket between jobs without it bumping around and entering spurious data.
The instructions seem quite striahtforward and I have followed them.
Declare as ......
[DllImport("aygshell.dll")]
public extern static IntPtr SHDeviceLockAndPrompt();
and call it with....
IntPtr hresult=SHDeviceLockAndPrompt();
When I run the code I get a 0 return but nothing happens.
I have signed the app and I don't get any errors or prompts on the PDA when executing. I can use the lock functionality on the PDA directly and it is fine. I have no passwords set up.
I have a few questions:
1. Does anybody have any idea what I may be doing wrong
2. Does anybody know what should happen. I added a button to one of the forms (launched by another form) in my app and used the on_click event to make the function call. I am trying to picture what should happen to the UI.
3. Assuming that I can't get this to work, does anybody have any suggestions as to how I can disable/enable the app quickly and easliy by the user. I realise that the user could just put the forms into the background and click the WM Lock button but I really need a single click solution.
Thanks
|
|
|
|
|
Hello,
I've got the following problem. We use rapi.dll with the OpenNetCf wrapper api to transfer files to and from Windows Mobile devices. This works perfectly unless ActiveSync is actively synchronising data (e.g. Calendar information). Then the called method just hangs.
Now my question (and I haven't found a solution to this so far):
How do I detect from the desktop application if ActiveSync (or its Vista counterpart - forget that name as soon as I hear it) is currently synchronising to prevent file exchange during synchronization?
I know there's Microsoft.WindowsMobile.Status, but as far as I understand this only works from the mobile device and I need it from the desktop. At least I haven't been able to import it into my desktop solution.
We use .NET 3.5 with VB.NET but any usable solution would do.
Thanks in advance.
Marcus
|
|
|
|
|
HI all,
i m using rapi function to connect with windows based mobile first time when device is connected than i run my application than its establish connection successfully.
but in mid if i reconnect the device than after connection when i chek connection with my application than it shows this error message this is i get by CeRapiGetError "the device is not ready".
please tell me what can i do.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
If the RAPI server on the device does not correctly shut down after disconnection, you will see that error. Are you using a custom RAPI extension?
Regards,
João Paulo Figueira
DAD MVP
|
|
|
|
|
i m using RAPI api those are given in MSDN
like CeRapiUnint(),CeRapiInit()
Joao Paulo Figueira wrote: If the RAPI server on the device does not correctly shut down after disconnection
how can i correctly shut down it.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
To shut things down you must call CeRapiUninit (as you probably are), but please make sure that all device handles are closed. I usually get that when my custom RAPI extension DLLs hang for some reason and the RAPI server becomes unavailable. I never experienced this situation with straight RAPI calls.
There's also something worth investigating: the version of ActiveSync on your PC (if you use XP, that is). For Vista / 7 make sure you use WMDC 6.1.
Regards,
João Paulo Figueira
DAD MVP
|
|
|
|
|
Hi,
I'm also using RAPI Api to connect to a Windows Mobile based Device.
And I'm also facing the problem mentioned in first thread.
Is there any way to shut down the RAPI Server on the device and restart it afterwards?
My problem seems to be exactly the same like mentioned above.
When I first connect the Device I can communicate with it perfectly and everything is
working fine.
But once I reconnect the Device I get an Error that says:
hr = 0x80070015 which is "Device not ready".
Can anyone help?
Best regards.
|
|
|
|
|
If your device (or RAPI extension DLL) somehow crashed, you will get this error. From my experience, the only solution to this problem is to reset the connection (disconnect and connect the device again).
Regards,
João Paulo Figueira
DAD MVP
|
|
|
|
|
Hey,
thanks for your reply.
Joao Paulo Figueira wrote: From my experience, the only solution to this problem is to reset the connection (disconnect and connect the device again).
But that is exactly the point.
This is why the error occurs.
I just found out that once CeRapiInit() is called many Libraries are loaded.
But they will not be unloaded when CeRapiUnInit() is called.
And I think that this is the point.
There are still Handles open that will block the connection upon reconnect.
I will try to figure out how to unload those Libraries and give you feedback whether that was helpfull or not.
|
|
|
|
|
Hey guys and girls ,
I got the clue.
There are two very bad errors.
First thing is, that rapi.dll does NOT export a function called CeRapiUnInit() .
But it does export a function called CeRapiUninit() . So most of the scripts around do have a typo.
Due to this fact you won't be able to get a pointer on that function. Thats why it will never execute.
So if you change this in your scripts you will be able to call that function.
Second thing is that CeRapiUninit() does not clean up everything for you.
You have to free the handle on rapi.dll by yourself.
If you do so, you App will free that handle and won't block another connection (e.g. on reconnect).
I now can connect und reconnect my Device as often as I like and everything works fine.
Thanks for your help again.
|
|
|
|
|
Hello,
I am using VS 2005 (VB.NET) for a WinCE 5.0 device (CF).
I am trying to create a form that is unmovable (locked) and full screen (with no taskbar).
I am able to create the form locked and make the taskbar disappear, but it doesn't make it full screen (it leaves a small section below where the taskbar was before as a blank area, it which is the desktop area).
I tried changing the properties for the form to no avail.
Can anyone help me? Thanks.
|
|
|
|
|
|
Do you have a sample VB.NET code that I can test using these libraries?
Thanks.
|
|
|
|
|
Disregard my previous message, I finally found out, thanks for your help!!!
|
|
|
|