|
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.
|
|
|
|
|
How i connect with MySql Database on server using My Pda
wasim khan
|
|
|
|
|
...
Blog link to be reinstated at a later date.
|
|
|
|
|
Hi All,
I am using device with WINCE and my application is in .NET compact framework in C#.I want to operate my device from my desktop pc, so for that i used CERDISP2.exe(on device) and CeRHost.exe (on desktop pc)it works fine but if i keep CerHost.exe idle for longer duration (e.g. 4 hrs)i get the error "Error from recv of screen". The screen goes blank after this and to re-establish the connection i need to restart both the utilities again.
Can anybody tell what is the meaning of this error? and possible solution?
Thanks,
Tushar
|
|
|
|
|
I'm trying to determine how to find the process ID of a running
process by executable name or windows name.
I've imported the coredll.dll and used the FindWindow function which
gives me a handle but this is not the proc id which is what the Process
class needs to be able to kill.
Any help will be greatly appreciated.
Thanks...
|
|
|
|
|
|
hello guys
i'm new in mobile development but i want to start now with a small application.
there are a rough overview below about the main-processes:
- open a gsm-connection at the mobile-phone (client) and dail-up to a pcmcia or usb gsm modem (server)
- wait for response and send data by the mobile phone to the pcmcia or usb gsm modem (server)
- save received data in a database at the (server)
my main problem is how to get a connection from the mobile phone to the pcmcia or usb gsm modem and how to access the pcmcia or usb gsm modem with the "serverside" application ?
i saw a some good explanations but the work only with a serial-port-communication (for the serverside).
does somebody know how can i solve this problem ?
thanks
lutz
|
|
|
|
|
What you are asking may not be possible. The mobile data connections I have used (on AT&T and Sprint)tend to have private IP addresses and so they can't be reached from the Internet. Despite their use of Hayes AT commands the GSM modem is not like the acoustic modems that we used 10-15 years ago; if a device isn't connected you cannot dial into it. Some GSM modems do accept SMS and voice calls which can be used to tell it to connect to the Internet, but it's been a while since I've seen code on receiving SMS on a PC.
|
|
|
|
|
Hello,
I am trying to create a bluetooth socket on wince device(HP iPAQ). the code is given below ..
SOCKET s;
WSADATA wsaData;
int iRet = 0;
iRet = WSAStartup(MAKEWORD(2, 2), &wsaData);
s = socket(AF_BT, SOCK_STREAM, BTHPROTO_RFCOMM);
if(s == INVALID_SOCKET)
{
iRet = WSAGetLastError();
}
WSACleanup();
here creation is getting failed.The return error code is 10047(Address family not supported by protocol family). In my device the bluetooth is turn ON. Can any body help me why i am not able to creat bluetooth socket. please help me.
Thanks and regards,
Yudhisthira Attry
|
|
|
|
|
Hi,
I have an HP iPAQ device too (HX 4700).
My device use Widcomm bluetooth stack (not Microsoft).
May be that your problem depends on stack manifacturer?
|
|
|
|
|
Hi,
i wish to have a button click in my form to open an another application..
I understand that if i were to open form to form, it'll be like this :
Public Class Introduction
Private Main_Menu1 As Main_Menu
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Main_Menu1 = New Main_Menu
Main_Menu1.Show()
End Sub
How can i open an external program then.. Assuming the program directory is at \programfiles\haha\haha.exe
And how do i write in a way that after i finish using that program, i will be redirected to my form..
Any help is greatly appreciated =(
Language used is vb
|
|
|
|
|
|
The syntax for Process.Start is little bit confusing.
Is there anyone who has actually done it on mobile device?
Example...?
|
|
|
|
|
confusing ?
try this and/or use the links above
System.Diagnostics.Process.Start("IExplore.exe")
or
System.Diagnostics.Process.Start("IExplore.exe", "www.northwindtraders.com")
|
|
|
|