|
-
Mar 9th, 2005, 04:19 AM
#1
Thread Starter
Member
Re: simple problem with mobile pc applicaiton
thanks strider!!!
1.can u explain...the below code...that you write in sample class
<DllImport("coredll.dll", EntryPoint:="FindWindow")> Private Shared Function FindWindow(ByVal lpClassName As String, ByVal lpWindowName As String) As IntPtr
End Function
Private Const SHFS_SHOWSTARTICON As Integer = &H10
Private Const SHFS_HIDESTARTICON As Integer = &H20
-- here what is <dllimport > and &H10
2. i want to BEEP or play sound when timer reaches a certain time.. i am using beep function, but no sound is coming... any other alternative to make a big alarm sound.
3. when i use your SHfullscreen functions i can hide START button, but still the VOLUME icon, phone icon, etc are visible in top. how to hide them....the problem is that if we dont hide them, then user can click on them and then we he click the taskbar, the start button is again appearing, which is completly destroying the purpose of using SHFULLSCREEN.
4. i want to store just hour and minute in my database. but if we use date/time datatype, seconds are automatically get 00. however when i convert table into xml, the time is ok, but it is taking as today's date in date portion of variable. i just want hour and minute in my data. .. i also dont want to use string or integer variables...
-
Mar 9th, 2005, 04:49 AM
#2
Fanatic Member
Re: simple problem with mobile pc applicaiton
1. Here the code is using the core.dll which is located on the device. Coredll.dll is the main system dll for Windows CE and contains Win32 API functions, such as those shown in the code (Hiding SIP, Taskbar etc) and more.
Look at microsoft site to find other function such as playing sounds and running threads etc.
2. Should be answered as part of the first question..
3. Answer you cant hide then, but disabling the taskbar and startmenu disables their functionality so if the user clicks on them it does NOTHING. This all works for me by simply in my main controller class of the application adding the following code
VB Code:
Dim bc As New BarControl
bc.HideStartButton()
bc.HideTaskBar()
bc.HideSIP()
Beware you need to enable all of these before exiting the appilcation otherwise they will stay disabled
4. It you want to extract part of the time use the substring function to just get the HH:MM part of the time or check out FormatDateTime() in .NET
Barry
Visual Studio .NET 2008/Visual Studio .NET 2005/Visual Studio .NET 2003
.NET Framework 3.0 2.0 1.1/ASP.Net 3.0 2.0 1.1/Compact Framework 1.0
SQL Server 2005/2000/SQL Server CE 2.0
If you like, rate this post
Compact Framework for Beginners
-
Mar 9th, 2005, 06:10 AM
#3
Thread Starter
Member
-
Mar 9th, 2005, 09:05 AM
#4
Thread Starter
Member
Re: simple problem with mobile pc applicaiton
Oops!
everything is working fine if we disable as per your code, BUTTTTT .. if the pocket pc is having phone facility and if you press phone button..then phone dialer is coming........how to disable this also........
2. what is the most efficient and easiest way to tranfer my XML file from my desktop pc to pocker pc and vice-versa. this i have to do atleast 2 times a week.. after installing the application....
my application will be storing the data in a xml file, this file we will get and generate reports..so we need to copy / collect xml files from all the pocket pcs (about 30 in different locations of city) atleast 2 times a week...
-
Mar 9th, 2005, 09:26 AM
#5
Fanatic Member
Re: simple problem with mobile pc applicaiton
1. No idea, never needed to do it as i dont work with pocket pc's. Use other WinCE devices
2. If you write your own FTP class using the winnet.dll, you could transfer them over GPRS to s server location. You could also buy this implementation from www.sapphire-solutions.co.uk
Or if you want to transfer them to a laptop that you carry around with you, you could use the desktop.communications of the opennetcf library where you can write an application to copy files to/from the device
Barry
Visual Studio .NET 2008/Visual Studio .NET 2005/Visual Studio .NET 2003
.NET Framework 3.0 2.0 1.1/ASP.Net 3.0 2.0 1.1/Compact Framework 1.0
SQL Server 2005/2000/SQL Server CE 2.0
If you like, rate this post
Compact Framework for Beginners
-
Mar 10th, 2005, 06:19 AM
#6
Thread Starter
Member
Re: simple problem with mobile pc applicaiton
Another big problem !!!!!!!
my pocket pc, as normal, go to sleep if not in activity for some time, and then my applicaiton, even though working, is not displaying on my device screen and even the alert is not ringing... i want to make sure that my application displays on screen , etc everytime. how to do ?????
any programming options to make pocket pc not to go into sleep.
-
Mar 24th, 2005, 01:52 AM
#7
Frenzied Member
Re: simple problem with mobile pc applicaiton
 Originally Posted by Strider
1. No idea, never needed to do it as i dont work with pocket pc's. Use other WinCE devices
2. If you write your own FTP class using the winnet.dll, you could transfer them over GPRS to s server location. You could also buy this implementation from www.sapphire-solutions.co.uk
Or if you want to transfer them to a laptop that you carry around with you, you could use the desktop.communications of the opennetcf library where you can write an application to copy files to/from the device
How do you use the opennetcf library???
i need to copy files from my pc to my pocket pc....
-
Mar 24th, 2005, 04:29 AM
#8
Fanatic Member
Re: simple problem with mobile pc applicaiton
there is a library (dll) that you can download here
this file will allow you do various things on the device from a desktop pc
download a sample here
Barry
Visual Studio .NET 2008/Visual Studio .NET 2005/Visual Studio .NET 2003
.NET Framework 3.0 2.0 1.1/ASP.Net 3.0 2.0 1.1/Compact Framework 1.0
SQL Server 2005/2000/SQL Server CE 2.0
If you like, rate this post
Compact Framework for Beginners
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|