|
thankes its really good solution i already tried this but how can i handle KEYDOWN event on dialog box.
|
|
|
|
|
unless you don't need some special key input (arrows, tab) it is simple:
BOOL CALLBACK MenuDlgProc(HWND hWnd,UINT wMsg,WPARAM wParam,LPARAM lParam)
...
switch(message) {
...
case WM_KEYDOWN:...
}
If you need the special keys ... well I don't know simple answer. The problem is that you will not receive WM_KEYDOWN message. The only answer that I know is to sub-class all controls inside ... but if you have more 2-3 controls ... it is ... not good.
If somebody knows easy way to make MenuDlgProc to receive this special keys ... please share it.
|
|
|
|
|
hello code project.
i have created an application
-receives sms
-process data
-update on public ip sql server connection
-reply confirmation that work is done with status
now if i start internet explorer GPRS/EDGE connection starts automatically and before the data connection ends (opened for browser) my application update in sql server perfectly, but if i send sms for data update on sql server , when data connection was somewhere ended up automatically. it doesnt start a data connection to connect over internet ip sql server, so connection fails and i get my error sms that could not open sql connection, since there was no data connection to web.
it should start GPRS, but do not anyway.
my question is. what is important to be connected over GPRS, when my application needs it.
i am stuck.
please help.
struggle boosts the wisdom
|
|
|
|
|
Is there a preferred size to try and keep 3rd party DLLs under? I'm trying to port the VCF over to Win CE, and I'm guessing the final size of all three core libraries will be ~3 Mb. Is this too much for WinCE? Are there things to do with build settings that help keep the DLL size down? I'm building with code generation set to Multi-Threaded DLL and the MinSize optimizations on.
¡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
|
|
|
|
|
You need to understand the CE memory model[^]. This applies up to and including Windows CE 5.0, including all released versions of Windows Mobile. Windows CE 6.0 introduces a new virtual address space model, but Windows Mobile 6 is still based on CE 5.0.
I would strongly recommend making it available as static libraries, not DLLs. You're free to have as big an EXE as you like. Well, within the limit of whatever your device OEM left for you. That article doesn't illustrate it, but Windows Mobile has completely blown the new 32MB Slot 1 area for Execute-In-Place libraries. Devices generally ship with less than 16MB address space available. The Windows Mobile 5.0 Phone Edition VGA emulator shipped with Visual Studio 2005 has 18MB virtual address space free after a full reset; Windows Mobile 6's emulator raises this to about 25MB so they've clearly done some work on this.
Note that this only applies to native libraries; it doesn't apply to .NET DLLs as they are not loaded through the OS loader. They take up private process heap instead.
Working on large .NET applications, with a very large number of forms, it's very common to run into MissingMethodExceptions with an error message of "Can't find PInvoke DLL", which occurs simply because the address that the DLL would need to load into has already been taken by some other allocation.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
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)
|
|
|
|