|
hi!!
I am trying to build an application using .net and C# which will allow me to push objects from my desktop to all nearby devices. Its like a program to alert all nearby devices.
I have been trying to find ways to access the bluetooth stack on my desktop using .net but havent been able to do so.
Can any one tell me how can i achieve this?
thanks
p.s :I am eagerly waiting a reply ..its kinda urgent!!
|
|
|
|
|
if your still looking for a solution, you can use Peter Foot's library.
www.32feet.net
Although you are limited to using only he Microsoft Bluetooth stack.
|
|
|
|
|
Does anyone know how to read an email message from the inbox of an account with VB.net and WM 5.0?
I have been able to iterate through the various email accounts, but can't figure out how to select the inbox and iterate throught the email messages.
Any help would be greatly appreciated.
-Duffy-
|
|
|
|
|
How to install the .NET CF in a Pocket PC 2003 device prior to deployment of the application.? The installation can be done through Visual Studio IDE but I need to do it independently of the IDE. The users who will be using the application need to have .NET CF on their device. I cant find any solution.
Please help....
Thank You
|
|
|
|
|
You have to build an installer project that bundles the dependent cabs with your project's cabs. There's an article on MSDN as well as a couple here that can get you started.
This statement is false.
|
|
|
|
|
Hi All,
We currently have a client-server application written in Win32 and we're in the process of trying to create a slimmed down version of the client software for the Pocket PC. Our application is a fair size, and uses a few in-house developed DLLs for drawing areas etc. We want to be able to use code contained in these .DLLs on our Pocket PC app to avoid multiple copies of the same code in two projects. We're using VS2003.NET for the Win32 development, and eVC 4.0 for the PPC stuff.
Has anyone been in these shoes before? How have they solved the problem?
I thought of creating a similar .DLL in my PPC application, and actually link in the sources files from the original.DLL while adding #ifdefs to the .DLL to include functions that I require, then compile them using the evC compiler, realizing that not all the calls we make the .DLLs will be available in the PPC environment. This could be quite messy, but would eliminate the maintenence issue.
I realize that some of the calls that the Windows .DLL will make, will not be available in the PPC Edition. We will need to address these individually I think.
Any suggestions? Thank you very much.
Mike
|
|
|
|
|
That's generally the right approach. I've never really done much desktop drawing code, although there have been a couple of occasions when I've prototyped something on the desktop since desktop development is typically more rapid.
I don't know if you're using MFC or not. MFC for Windows CE as supplied with the Pocket PC 2003 SDK is basically a cut-down version of MFC 6.0. You should also be aware that the compilers in eVC 4.0 are based on the Visual C++ 6.0 front-end, and their standards compliance is therefore similar to VC 6.0.
If you are using MFC, you'll find most APIs are present. If not, there are a significant number of drawing APIs which aren't available on Windows CE, because they were redundant (for example, MoveToEx , LineToEx are not present because Polyline can do single and multiple line segments) and were therefore removed to make space. MFC simply wraps up these APIs.
Windows CE does not support mapping modes. All drawing is done in pixel units, equivalent to the desktop's MM_TEXT mapping mode. You can only create very simple pens (one-pixel-wide dashed pens, any width solid pens, null pens). The path APIs are not available.
I had thought that there was a difference between how Windows CE did FillRect and how the desktop does, with regard to filling the right-hand and bottom edges, but it appears that if it was ever a problem it was fixed before Pocket PC 2003 - I can't reproduce it. Perhaps I'd become confused between this and BitBlt .
If what you're doing isn't device specific (for example making use of barcode scanner hardware or other OEM APIs), I've found that making use of the emulator does speed up development a little (not relying on a physical connection). If you're going to use an emulator, use the one from VS2005 because it's ARM-based, like the devices, rather than being x86-based like the ones supplied with the Pocket PC 2003 SDK. If you don't have VS2005, download the Microsoft Device Emulator 1.0 package[^] and the appropriate emulator images. To use this with eVC 4.0, run the Device Emulator Manager from VS2005 or from the Device Emulator install directory (DvcEmuManager.exe). Right-click the image you want to use and choose Connect - the emulator starts up. In ActiveSync, ensure you have 'DMA' selected under 'Allow connections to one of the following' in Connection Settings. Make sure nothing's currently connected to ActiveSync. Then right-click the image in Device Emulator Manager and select Cradle. The emulator should now connect to ActiveSync. Now you can use the emulator as if it were a device.
If you're feeling brave you can try the Device Emulator 2.0 CTP, which is supposed to have performance improvements. You must use the 'Register' feature for any of the new components to be used and to get the performance improvement - the installer just copies the new files.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hi Alls,
I look for a framework like MFC for my Smart Device .NET project.
I just looked CAB but if I understand well it is just for PC applications.
Any idea ?
|
|
|
|
|
Hi,
I'm trying to make an alarm function in my own program, but whole program goes asleep
when pocketpc sleeps.
Think I've seen related article with alarm function, but couldn't find it after numerous
searches(it suggested some kinda separating sub-module, and waking the sub-module up)
how could I wake up from sleep mode?
(would be better by C#)
|
|
|
|
|
To cause the device to wake up, you need to get the operating system to tell the hardware to wake up at a certain time. The very old way to do this was the CeRunAppAtTime API. The slightly newer way is CeSetUserNotificationEx .
I don't think .NET exposes this function directly. I think there's a wrapper for it in the OpenNETCF[^] libraries.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Can anyone point to a easy tutorial on writing Windows Mobile apps? I basically want to just write a few easy apps that do simple registry edits to improve performance and such. Any help would be greatly appreciated.
Thx,
Mike
|
|
|
|
|
MSDN has some pretty good stuff for getting started. They have the SDK's and devce emulators along with AtciveSync 4.1.
-Duffy-
|
|
|
|
|
I am trying to create a user control in C#, Visual Studios 2005, for a Smart Device. I have tried the following article from Microsoft:
http://msdn2.microsoft.com/en-us/ms180788.aspx[^]
I can not get it to work as described. I can build the control without errors. I can add the project that references the User Control. However, once in the new project the control does not show up in the toolbox as promised by the article. I have right clicked on the toolbox to try to add the control manualy, and the control is already set up to be displayed. I right click the toolbox and choose "show all". I can find the control within the toolbox, but it is disabled. What am I doing wrong?
Any help would be greatly appreciated.
Jepthy
|
|
|
|
|
I think I have figured out the problem. If I placed my project in a folder that had C# in the name, such as "C:\TEMP\C#" then I would not be able to have access to the control from the Toolbox. But if I put it in the "C:\TEMP" directory, it would work just fine. So I believe it had to do with the directory that the control was in. Maybe it can't handle anything that isn't a letter? Not sure, but if any one runs into this, this worked for me.
|
|
|
|
|
hi , consider the following url
http://localhost/test/(ma13nyrs2jxhgb55fi41b3zz)/Default.aspx?&lang=en
then how i could remove the bold code , iam using vb.net mobile web
application
thanks
Tamimi - Code
|
|
|
|
|
I believe ASP.NET adds this to the URL if it is configured not to use cookies (which I think it can detect the lack of support for certain mobile devices) and you use session state. To remove it you would have to turn off session support, or somehow else store the session identifier (perhaps in a hidden INPUT element), if that's possible. I'm afraid I'm not a web developer so I can't give much more information than that.
See HttpSessionState.IsCookieless for more information.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
hi
could someone give me a reference or article on how to use
the mobile softkeys on .net mobile web application ?? or Guide me
to deal with them.
thank you all
Tamimi - Code
|
|
|
|
|
Well, the subject is, I am developing a project for my study on C#, and I have selected to develop it on Pocket PC :s, This project cares at first concern with PPC owner's privacy. I wanted to make it like an access controller, to allow only allowed files to be opened by others and to control also sending via bluetooth and deleting files to protect personal or important files from nosy people.
But when developing this idea,, my researches gave me a lose of hope... So, because of this and because lake of time, I changed the idea, to implement an Encryption/Decryption algorithm, or maybe functions already available in Compact FrameWork. The problem is: Decryption has solved the problem of nosy people who might have interest in your files,, they can't open encrypted files, and even won't get any use of it, when sending them via bluetooth, BUT..What if an important file is encrypted and somebody delete it!! or rename it??
The help that I'm seeking from you, is to suggest an easy, light way of encrypting/decrypting files on Pocket PC (How nice if it's in C#), and what to do in renaming,deleting troubles??
Really I would be so grateful if you gave me any kind of help..
Thanx in advance..
|
|
|
|
|
Oh,,,Oh,, I found a solution to make nosy people don't delete my encrypted files,, or even alter them any way..
Simply, I would encrypt the file and then move it to a hidden folder... like that people who might use my pocket pc wont even know that I had that file...
But again a problem appeared what way to use in encryption?? and how to set a folder property to hidden??
plzzzzzzzzzzzzzzzz reply to me soon ... it's a matter of life or death
|
|
|
|
|
Anyone can help me to give a solution about this question?
How to transfer data from Mobile Wireless Application to Web Application using GPRS in .Net?
|
|
|
|
|
Hello,
I'm trying to do an application for my pocket-pc in order to easily rename pictures, I don't know where to start for reading a jpg on pocket, any suggestion?
I've seen that CF's System.Drawing.Image doesn't have .FromFile, how can I do that?
Thanks
Paolo
|
|
|
|
|
Hello All,
If I have a smartphone device, and say both the WAN and phone connection are connected to the network at the same time. How do you choose which connection to use in your application to connect to say, a webservice or something? I haven't even started developing yet, just trying to get a few questions answered.
Thanks in advance!
Ryan
|
|
|
|
|
In my asp.net 1.1 mobile project I have two ListControl. In both ListControls, Items As Links property is true. I want to navigate from first card where I have first ListControl to second card where I have second ListControl in case of click on any LinkControl on first card. I have alredy bind the DataTextField of firstListControl to database. I have tried to pass the id of second card to DataValueField of first card. But it is giving an error. Can any one tell me what is the right way to navigate in between mobile cards/forms from links of ListControl.
Saurabh
Saurabh
C#, ASP.Net
|
|
|
|
|
Hello all.
I have a problem. I have a CDialog-derived class with one CEdit control. This class is catching the ON_EN_SETFOCUS and ON_EN_KILLFOCUS messages for such CEdit. What I want is to show the SIP (System Input Panel, that is, the little keyboard, if available) when the CEdit gets the focus, and hide it when it looses the focus. I have some research, and here's what I've got:
<br />
<br />
BEGIN_MESSAGE_MAP(CCapDescargaBatch, CDialog)<br />
ON_EN_SETFOCUS(IDC_EDIT_BATCH, OnSetFocusEditBatch)<br />
ON_EN_KILLFOCUS(IDC_EDIT_BATCH, OnKillFocusEditBatch)<br />
END_MESSAGE_MAP()<br />
<br />
... <br />
<br />
void CCapDescargaBatch::OnSetFocusEditBatch() <br />
{<br />
SipShowIM(SIPF_ON); <br />
}<br />
<br />
void CCapDescargaBatch::OnKillFocusEditBatch() <br />
{<br />
SipShowIM(SIPF_OFF); <br />
}<br />
<br />
I found that SipShowIM shows and hides the keyboard. However, when I click the CEdit, the keyboard appears for 2 secs and then it "disappears", as if it were not handling the WM_PAINT.
Any thoughts would be appreciated.
Regards,
FG.
A polar bear is a bear whose coordinates has been changed in terms of sine and cosine.
|
|
|
|
|
Welcome to the fun that is the Windows Mobile/Pocket PC shell, where it thinks it knows better than you do.
If you're programming for Pocket PC/Windows Mobile, use SHSipPreference rather than SipShowIM . Also be aware that MFC calls numerous SHXxx APIs on your behalf, specifically SHInitDialog , SHHandleWMActivate and SHHandleWMSettingChange . To stop it doing this, set m_bFullScreen to FALSE in your dialog's constructor, then call SHInitDialog with your own preferences. Handle WM_ACTIVATE and WM_SETTINGCHANGE yourself if you want to avoid these methods being called - call CWnd::OnActivate or CWnd::OnSettingChange to pass the message down to DefWindowProc, avoiding the implementation in CDialog.
One of the values set in the call to SHInitDialog in the framework code is to put the SIP down (SHIDIF_SIPDOWN ); it could be that this is being called after the call to your OnSetFocusEditBatch function, or that using the old API does not clear the timer used by the shell to delay putting the SIP down. It may also be that using the API you're using doesn't send WM_SETTINGCHANGE and therefore your form is not resized when the SIP is dropped.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|