|
Hello,
We have developed a mobile application, but it does not work on Samsung mobiles. I uploaded both Jar and Jad files to my mobile.
Ahmed
|
|
|
|
|
i is an integer holding an 8 bit value of a joysticks position. How do i get an emulator on my pocket pc to see it as an input/button press?
|
|
|
|
|
Hello,
I maintained a program on the mobile device. (OS is wm 5)
The program has a dialog window, the dialog window contains some user-defined listboxes.
And the listbox has check marks and a vertical scroll bar.
If I clicked the up arrow and the down arrow on the scroll bar. The listbox can be scrolled successfully.
But if I dragged the scroll, sometimes the contents of the listbox is disappeared, but sometimes the contents still exists.
In my opinion, the function OnVScroll() must been existed in the program.
But after search within the program, I didn't find a function like OnVScroll to process the scrolling message.
So I thought the scroll message mighe be handled automatically by the OS.
But if the system automatically handle the scroll message, why sometimes success and sometimes fail ?
Then I searched the string "scroll" in whole project. The related result which I found only are
in .rc file :
LISTBOX IDC_LIST_EV,13,74,133,45,LBS_SORT | LBS_NOINTEGRALHEIGHT | LBS_DISABLENOSCROLL | WS_VSCROLL | WS_TABSTOP
in the user-defined listbox.cpp:
hWnd = ::CreateWindow(_T("button"), (LPCTSTR)lParam,
WS_VISIBLE | WS_TABSTOP | m_nStyle,
3, i * m_nItemHeight + 1,
rc.Width() - GetSystemMetrics(SM_CYHSCROLL) - 3,
m_nItemHeight - 1,
m_hWnd,
(HMENU)(i + BUTTONBASEID ),
hInst, NULL );
Can someone give me a suggestion for this strange problem ?
My environment : Visual Studio 2005 SP1 + Windows Mobile 5.0 Pocket PC SDK
Thanks
|
|
|
|
|
Hi guys,
I am developing a smart device application in visual studio 2005. I need to connect the compact device (PDA) to a mysql database which is supposed to be on another computer in the same office. Don't know how to do it. Is there a direct way to access it using oledb provider for mysql (if any) or i have to create a web service and use it? Please help me by providing the code for connectivity.
Thankyou.
|
|
|
|
|
Does WinCE support services?
Also, does anyone know of a good WinCE Logger? Looking for just about anything ATM.
|
|
|
|
|
WinCE certainly supports services. There is one great article about them in MSDN[^]
I don't know of any WinCE Logger. I usually open a file and append data to it. You can do this from a service - watch out for synchronization situations.
|
|
|
|
|
Most excellent! Every article I looked for on MSDN (via search) popped up vista related articles. Thank you very much!!
|
|
|
|
|
Here's the issue:
I'm painting a gradient background on a dialog via WM_PAINT.
For static controls to look transparent, we capture WM_CTLCOLORSTATIC and return a NULL_BRUSH.
This far all looks great, until a MessageBox hovers over any of the static controls - then their backgrounds do not get repainted, and instead end up looking pretty junky.
The controls are dynamically created / destroyed based on user input, so sub-classing them would be a painful workout.
The app is a wizard-type interface controlled by a script file, using just one dialog resource with a BACK and NEXT button for navigation.
I've tried just about all I can think possible to repaint the areas that get overlapped, but so far, nothing is working. I have verified that the WM_CTLCOLORSTATIC gets called during a 'need-to-paint' and I try to re-gradient the controls RECT from there, but that is not working..
Need some help-
(btw) I have a global memory DC containing the gradient image and use BitBlt to update the invalidated areas.
James
|
|
|
|
|
Hi,
I am running a WinCE6.0 Stream interface Driver on a DTE device which will open a handle to Serial port which is
connected to a modem.WriteFile API returns non-zero Value, but NumberofbytesWritten parameters is coming as Zero.
The Windows CE 6.0 device is a DTE terminal and when connected to PC (Another DTE)) over NULL Modem cable with hyperterminal, all the data from the are seen on the hyperterminal, and WriteFile API fills the NumberofbytesWritten is exactly the same as the
bytestoWrite.
When the CE6.0 DTE device is connected to DCE Modemdevice using a Straight serial cable, WriteFile API
is succedding by returning Non-Zero Value, but NumberofbytesWritten parameters is coming as Zero.
The following is the DCB in the driver:
dcb.BaudRate = m_BaudRate;(115200)
dcb.fBinary = TRUE;
dcb.fParity = TRUE;
dcb.fOutxCtsFlow = TRUE;
dcb.fOutxDsrFlow = FALSE;
dcb.fDtrControl = DTR_CONTROL_ENABLE;
dcb.fDsrSensitivity = FALSE;
dcb.fTXContinueOnXoff = TRUE;
dcb.fOutX = FALSE;
dcb.fInX = FALSE;
dcb.fErrorChar = FALSE;
dcb.fNull = FALSE;
dcb.fRtsControl = RTS_CONTROL_HANDSHAKE;
dcb.fAbortOnError = FALSE;
dcb.ByteSize = 8;
dcb.Parity = NOPARITY;
dcb.StopBits = ONESTOPBIT;
Also, I am setting EscapeCommFunction(m_hCOMHandle,SETDTR);
On the hyperteminal I have the following setting:
baudrate = 115200
Data bit = 8
Parity=None
StopBit=1
FlowControl=None
Also, with the same hyperterminal setting with PC(Hyperterminal) connected to Modem over Straight SErial cable,
I am able to fire the AT Commands from the PC(hyperterminal) to the modem.
Also CommTimeout, I have set the following:
CT.ReadIntervalTimeout = MAXDWORD;
CT.ReadTotalTimeoutMultiplier = 0;
CT.ReadTotalTimeoutConstant = 0;
CT.WriteTotalTimeoutMultiplier = 0;
CT.WriteTotalTimeoutConstant = 100;
-Can a timeout issue cause WriteFile Still succeed and Numberof Bytes Written as zero?
- In hyperterminal Flow Control None, what are the Flow control affected in the DCB?
Can somebody give me some hints on the same.
Thanks..
|
|
|
|
|
I am currently trying to develop an application, where i need to access excel file and process data in that excel file in my application. I am developing the application using Visual Studio 2005 with Windows Mobile Emulator.
I tried to find code on internet. But whatever i found is working for Windows XP but it is not working on the simulator.
Please help me. How can i read that excel file??
|
|
|
|
|
Same question, how can I import data from an excel file to SQL Server CE?
thanks in advance
danhpt
|
|
|
|
|
same question:
I am trying to import data from an excel file to SQL Server CE?Would u pls help me out?
|
|
|
|
|
Hello,
I have need to read configuration information. At this point I have two pieces of information that I need to read. Interestingly the app.config file (Not available in the Compact Framework) would not work for these anyway.
First piece of information I need to read is a list of dll names. These are plug-ins and will be loaded during runtime initialization. The next piece of information I need to read is a class name. This class defines how licensing is handled. As such I would prefer that it not be in the users face.
Other requirements are that this solution work on both the Full and Compact frameworks. Also the configuration is going to be read in the SDK code I am writing rather than in Application code. Also this configuration is done by the team using the SDK rather than the end user.
I have decided that I will just have to read an XML document as a resource. I just thought I would check here to see if there is another option.
Tanks for your support
Pat O
<a href="http://currentchaos.blogspot.com/">Blog</a>
_ _ _
|
|
|
|
|
Hi,
I have the following scenario. I have an SDIO client driver developed by Arasan which allows me to access the SDIO card as virtual COM port and the SDIO card is connected to a peripheral which has Arasan Chip which converts SDIO to UART.
The platform I am using is HP 211 running Windows Mobile 6.
When I insert the card, the OS detects it and loads the client driver.
But I have a problem if the card is already inserted and the PDA is reset. When the PDA is rebooted with the SDIO card inside it the OS does not load the client driver.
My question is: how can I load the driver programatically using VC++.
The registry entry for the driver is:
[HKEY_LOCAL_MACHINE\Drivers\Active\62]
"Hnd"=dword:00d26a80
"Name"="NDL1:"
"Key"="\\Drivers\\SDCARD\\ClientDrivers\\Custom\\MANF-02DF-CARDID-9103-FUNC-1"
"BusParent"=dword:001f8270
"InterfaceType"=dword:00000000
"BusName"="SDBus_0_0_1"
"ClientInfo"=dword:00d38520
I would greatly appreciate your help.
Thanks!
-A
|
|
|
|
|
Does any one have any code sample that checks for a current instance of the current application running. I have code for .net framwork 2.0 but not for .net compactframework for windows ce
|
|
|
|
|
Have your program create a native system event with CreateEvent. The error code returned by GetLastError() after creating an event will be zero if no other program owns an event with that name. When a second instance of your program is created it will get a non-zero error code indicating another program has already created an event with that name. Just remember to call CloseHandle on the event object when your program is no longer executing; you don't want to cause a memory leak.
I published something on this site two days ago that will contain all the PInvoke declarations that you need. Check it out at http://www.codeproject.com/KB/mobile/WiMoNativeSync.aspx
|
|
|
|
|
|
Hi Cory Kimble,
By default CF .NET apps are supposed to be single instance. However sometimes, if you try to launch an app quickly you might get multiple instances.
you can use the following code to enforce single instance (http://www.nesser.org/blog/archives/56)
Code Snippet
using System;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace SomeNameSpace
{
static class SingleInstance
{
[MTAThread]
static void Main()
{
if ( IsInstanceRunning() )
{
return;
}
try
{
Application.Run( YourFormClass );
}
catch ( Exception e )
{
MessageBox.Show( "See log file for details.\r\nClosing this application.", "Fatal Application Error" );
}
}
#region OpenNETCF native interface to mutex generation (version 1.4 of the SDF)
public const Int32 NATIVE_ERROR_ALREADY_EXISTS = 183;
#region P/Invoke Commands for Mutexes
[DllImport( "coredll.dll", EntryPoint="CreateMutex", SetLastError=true )]
public static extern IntPtr CreateMutex(
IntPtr lpMutexAttributes,
bool InitialOwner,
string MutexName );
[DllImport( "coredll.dll", EntryPoint="ReleaseMutex", SetLastError=true )]
public static extern bool ReleaseMutex( IntPtr hMutex );
#endregion
public static bool IsInstanceRunning()
{
IntPtr hMutex = CreateMutex( IntPtr.Zero, true, "ApplicationName" );
if ( hMutex == IntPtr.Zero )
throw new ApplicationException( "Failure creating mutex: "
+ Marshal.GetLastWin32Error().ToString( "X" ) );
if ( Marshal.GetLastWin32Error() == NATIVE_ERROR_ALREADY_EXISTS )
return true;
else
return false;
}
#endregion
}
}
Pavan Pareta
|
|
|
|
|
|
Hello,
I am developing a client and server application for bluetooth devoce. My server is desktop PC which has dongle attached and client will be Windows Mobile. As client server get connected server will send to client list of some files. from the client side i should be able to download file means copying file from server to client. I am using sockes for eastablise connections. Now i have to send a file from server to client. How can i send a file? Please help me.
Thanks and regards,
Yudhisthira attry(India, Bangalore)
|
|
|
|
|
Since you are using bluetooth sockets it is completly up to you to develop your own protocol for communication. Instead of trying to develop and implement a protocol why not use a protocol that already exists? Check out the 32feet library[^] and use it's object exchange functionality (OBEX). It may satisfy your needs.
If you absolutly have to implement your own protocol I would suggest borrowing from something that already exists such as XML over HTTP.
|
|
|
|
|
Hallo every boudy
iam auniversty student and i want to make aproject for mobiles i have the idea but idon't know if it is good and i can implement it or not
the idea is (downloud manger for mobiles)this program using bluetooth to downloud from anther mobile.
so plese help me
yemen_programer
|
|
|
|
|
Are you trying to get one phone to act as a modem for another phone? If so there's no programming needed for that. On Windows Mobile 6 and later (and some builds of Windows Mobile 5) that functionality is present through an application called "Internet Connection Sharing."
You'll usually get more replies and faster replies by using something descriptive in the subject line. Daniel Moth (former Microsoft Mobile MVP and present Microsoft Employee) had once listed non descriptive subject lines as one of the top things that will prevent a question from being answered[^] (see item 13).
|
|
|
|
|
iam sorry ichange alitel bit in my project which is make adownlouder program to downloud from the net inside the mobile to the mobile it self but i face aproblem which is the net in side the mobile you just can browse not to downloud or save to mobile.
idont know how to solve this problem ?
anywho any one want to help me this is my email
yemen_programer@yahoo.com
thanks
|
|
|
|
|
I got the instant message you sent. It wasn't that I was busy, it's that I was sleeping. I am on the east coast of the US so it was 3:00AM here (GMT-5). I am about to go to a wedding but when I get back I'll see if I can find more information that will provide you with guidence on accomplishing this task.
|
|
|
|