|
As a practical example, I'm just trying to package up our latest project. The handheld on which it runs, a ruggedised device with integrated barcode scanner, WiFi, GPRS and Bluetooth radios, has only 11.75MB of virtual address space free - and due to the number of device driver threads running, less than 1MB free in device.exe, so it's always right on the margin of failing.
On a previous device, we had to resort to stopping some drivers loading and removing some of the Today screen plugins to get a usable environment.
We're asking the OEM to replace the copy of .NET Compact Framework that's execute-in-place in the ROM with .NET CF 2.0 SP2. The customer is large enough, and ordering enough units, that they're considering it.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
Gag. So I'm getting the impression that developing for CE is a royal PITA, particularly if the .Net framework in installed. Am I being unfair here?
And from what you're saying, 3rd party libs, like what I'm writing, will be very difficult to use due to memory restrictions and the presence of all sorts of Microsoft crud.
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
Save an Orange - Use the VCF!
VCF Blog
|
|
|
|
|
Good Day,
I just made a Mobile Web Application using VS2005. Whenever I compile, it launches the website using my web browser.
How can I test my Mobile Web Application using the built-in Pocket PC 2003 emulator?
Thanks!
It is said that the most complex structures built by mankind are software systems. This is not generally appreciated because most people cannot see them. Maybe that's a good thing because if we saw them as buildings, we'd deem many of them unsafe.
|
|
|
|
|
When you create the application.. make sure you created a windows smart device NOT a windows application..
|
|
|
|
|
I am using VS2008(VB.NET) and SQL Server2005 to make a Pocket PC application.The program is running successfully into PDA to connect Sql Server2005.But when I try connect PDA with Sql Express.Then it shows sql server access denied.For express I used SERVER=.\SQLEXPRESS.But its not working.Pls help me.
|
|
|
|
|
|
Whats your connection string with sql2005??
in your connection to sqlexpress you are using the piriot ".\sqlexpress", doesnt that mean local? or is sqlexpress installed in pda?
Alexei Rodriguez
|
|
|
|
|
I have written theConnection String for Sql Server 2005:-"Server=MyServer;Initial Catalog=MyDatabase;Uid=sa;PWD=".Surface Area Configuration Manager->Remote Connections->Using both TCP/IP and named pipes.
|
|
|
|
|
Hi all,
I am creating an application which will send/receive messages, whenever a message comes in it should play a sound file(wave/mid or any other format).
How can we do it?
I am using C#.NET, Windows Mobile Smartphone SDK, Compact framework 2.0
Thanks in advance
|
|
|
|
|
From my experience, audio support with compact framework 2
is far more tedious than in ce3, you have to make do with very little,
so it may be a good idea to use 3, but of course
there are situations when you have to use ce2.
Using compact framework 3 you have access to far more including the
[SoundPlayer] class which has support for many many audio files
and does the work for you.
>> whenever a message comes in it should play a sound file
The most common way of playing a sound for ce2 would be to use
[PlaySound]... this is probably your best solution.
Once you add the class at this link you can create your own objects, either by passing
a file path or a nice way is to refer to your Resources and get the files byte array...
Sound sound = new Sound(YourApplication.Properties.Resources.SoundFile);
sound.Play();
Now the class at that link doesnt seem to work when using the stream constructor, so
add the following constructor to the class... You need to add this for the byte
array constructor example above to work...
public Sound(byte[] sound_bytes)
{
m_soundBytes = sound_bytes;
}
Now, unfortunately from what I have tested this only supports .WAV files.
You can either do this... or try using WaveOut to play your sounds, which will still
only support .WAV files but can be built upon to support more...
Or you can play any file the phone supports by calling the local systems Media Player
with a file as the argument file to execute...
db
There are 10 kinds of people, those that understand binary, and those that don't...
|
|
|
|
|
Hi
I have done some coding in c# for smartphones previously, but now I need to write a small app in C++ which is definitely not my preferred language coming from a Java world
I would like to log errors with a timestamp, but I have no idea how to get the current time in c++ for smartphones.. I tried to include time.h and use _strtime and _strdate, but the linker complains when compiling this.
Could someone please help me out? a small code sample would be nice
- Lou
|
|
|
|
|
hi Lou,
I hope this shd work
SYSTEMTIME currentTime={NULL};
GetlocalTime( & currentTime );
Sorry i had to put space between & and currenttime ,b\c its not showing properly.u remove that while compiling.
|
|
|
|
|
I need to develop a web page that can be accessed locally through deivce by developing a wireless Intrant between application server and PDA.
I want to transfer the Order data from device to Application server.
Device Specifications are:
Data GPRS Class 10 (4+1/3+2 slots), 32 - 48 kbps
HSCSD No
EDGE Class 10, 236.8 kbps
3G No
WLAN Wi-Fi 802.11b
Bluetooth Yes, v1.1
Infrared port Yes
USB Yes v1.1, miniUSB
Features OS Microsoft Windows Mobile 5.0 Smartphone
Messaging SMS, MMS, Email, Instant Messaging
Browser WAP 2.0/xHTML, HTML (PocketIE)
Complete Specifications:
http://www.gsmarena.com/i_mate_sp5-1267.php#[^]
C#.
.NET Compact framework.
ASP.NET
etc.
Any idea or suggestion.
modified on Thursday, July 24, 2008 4:04 AM
|
|
|
|
|
Good Day,
I'm developing a mobile application and it is already working perfectly in the Pocket PC 2003 Emulator in VS2005.
What I want now is to create an "installer" to deploy my application. How do I proceed?
Thanks,
Ian
It is said that the most complex structures built by mankind are software systems. This is not generally appreciated because most people cannot see them. Maybe that's a good thing because if we saw them as buildings, we'd deem many of them unsafe.
|
|
|
|
|
You can use smart device cab project under setup and deployment project type.
Hope this will help you.
regards
Parasmani Swamy
|
|
|
|
|
Hi,
I developped a small app using VisualStudio 2005, CF 2.0 C# that targets the Windows Mobile 6.0 Professional operating system.
It tries to send sms in 2 different ways:
Direct:
string NumTelefono = textBox1.Text;
string Messaggio = textBox2.Text;
if (Messaggio.Length > 255)
Messaggio = Messaggio.Substring(0, 255);
SmsMessage sendMsg = new SmsMessage();
Recipient recpt = new Recipient(NumTelefono);
sendMsg.Body = Messaggio;
sendMsg.To.Add(recpt);
sendMsg.RequestDeliveryReport = true;
sendMsg.Send();
Using Pocket Outlook:
string NumTelefono = textBox1.Text;
string Messaggio = textBox2.Text;
if (Messaggio.Length > 255)
Messaggio = Messaggio.Substring(0, 255);
using (OutlookSession session = new OutlookSession())
{
SmsAccount smsAccount = session.SmsAccount;
SmsMessage smsMessage2 = new SmsMessage(NumTelefono, Messaggio);
smsAccount.Send(smsMessage2);
}
I tried both with the emulator and a real device, the sms gets sent but it's not stored in the "SMS\Sent Items".
Is there a way to implement such functionality ?
Ciao
Marco
|
|
|
|
|
how to p/invoke ImageCodecInfo on .net CF 2.0?
i want to change jpeg compresion:
http://www.bobpowell.net/jpeg_compression.htm
maybe there is another solution?
|
|
|
|
|
I have a WM5 .NetCF 2 C# application written in VS2005.
It has alot of menus and at runtime I change which ones are displayed depending on which screen is being shown to the user. After a while the MenuItem.Click event stops working, strangly the MenuItem.Popup event still works. I've trimmed back to test appliction to reproduce the problem:
Create a new application, add a button with the following Click code:
private void button_Click( object sender, EventArgs e )
{
for ( int i = 0; i < 5000; i++ )
{
button1.Text = i.ToString();
Application.DoEvents();
mainMenu1.MenuItems.Clear();
mainMenu1.MenuItems.Add(menuItem1);
}
}
Create a menu structure with 20 items like the following:
MyMenu
|
1--1A
| 1B
| 1C
|
2--2A
2B--2BX
| 2BY
| 2BZ
2C
...
Add the following code to some of the menu items:
private void menuItem_Click( object sender, EventArgs e )
{
MessageBox.Show("Click");
}
Run the application, test the linked up menuItem to check the message is shown, press the button, wait for it to finish, try to press the menuItem, nothing happens. Please help.
Mark
|
|
|
|
|
This has now been added to the MS Connect Portal:
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=358752
|
|
|
|
|
Is there a way to make the standard controls (created by CreateWindow) to look transparent (to see the background under them)?
I'm writing in native C++ with VS2005 for WM 5.0.
P.S. Since WM_EX_TRANSPARENT constant is not declared I assume it doesn't work.
(o boy, I'm getting sick of so many things that don't work on WM 5.0)
|
|
|
|
|
Hi,
I have developed a compact framework application with target platform as Windows mobile 6.0, Now I am trying to run the application on Windows Mobile 5.0 too, for that I change the target platform to "Windows Mobile 5.0 Pocket PC SDK" for each of the project in my solution.
When I debug my application from Visual Studio, the application runs fine but when I try to run application from installing using Cab setup project, it shows the "InvalidProgramException". Kindly reply if I am missing some step.
After changing the target Platform, I add the project output again, and also I am using localization resources for multiple language support.
Thanks in advance
|
|
|
|
|
When I use mapirule.dll like this way:http://msdn.microsoft.com/en-us/library/aa446561.aspx[^]
I get a error "Could not find P/Invoke dll 'mapirule.dll' "
Who can help me to resolve this problem?
I'm sure the mapirule.dll is exist both the program's directory and ./Windows directory.
Thanks very much.
|
|
|
|
|
Hi,
unmanaged code DLLs are looked up through the PATH evironment variable, which holds a list of folders.
So they all must reside in folders from that list.
Furthermore if one such DLL calls for another one, the second one must be either in the same folder,
or in a folder DOWN the list (not sure which it is).
It is often a good idea to prefix ".;" to the PATH so the own folder is looked in first.
Hope this helps.
|
|
|
|
|
|
I tried to write a program that involved a file opening, reading, and wrting to a text file in vb.net 2003. It works well in vb.net 2003 but when I use it in vb.net 2003 for my pocket pc application, it does not read, nor write, only opens the file. Can you help me??
Here is the code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim sFileName As String = "\Test.txt"
Dim myFileStream As System.IO.FileStream
Try
'We have our variables, lets attempt to open it
myFileStream = New System.IO.FileStream(sFileName, _
FileMode.OpenOrCreate, FileAccess.Read, FileShare.ReadWrite)
Catch
'Make sure that it exists, and if it doesn't display an error
MessageBox.Show("Cannot not open the file. Make sure in the location shown.")
Finally
'It works, but we are going to try one last method
If myFileStream.CanRead = True Then
'This is where we would read from the file
Label6.Text = "File opened!"
txtFileDisplay.Text = "File opened!"
'We are done with the file now, so close it
myFileStream.Close()
End If
End Try
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
'Declare those variables!
'Dim sFileName As String = Application.StartupPath & "\VB.txt"
Dim sFileName As String = "\Test.txt"
Dim myFileStream As New System.IO.FileStream(sFileName, _
FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.None)
'Create the stream writer
Dim myWriter As New System.IO.StreamWriter(myFileStream)
'Write in what is in the text box
'myWriter.WriteLine("It works, thank God!")
myWriter.WriteLine(txtFileDisplay.Text)
'Flush before we close
myWriter.Flush()
'Close everything
myWriter.Close()
myFileStream.Close()
'Clear the text
Label6.Text = ""
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
'Declare any variables
Dim sFileName As String = "\Text.txt"
Dim myFileStream As New System.IO.FileStream(sFileName, _
FileMode.OpenOrCreate, FileAccess.Read, FileShare.Read)
'Create the StreamReader and associate the filestream with it
Dim myReader As New System.IO.StreamReader(myFileStream)
'Read the entire text, and set it to a string
Dim sFileContents As String = myReader.ReadToEnd()
'Print it to the textbox
'Label6.Text = sFileContents
txtFileDisplay.Text = sFileContents
'Close everything when you are finished
myReader.Close()
myFileStream.Close()
End Sub
End Class
|
|
|
|
|