Click here to Skip to main content
15,889,345 members
Home / Discussions / Mobile
   

Mobile

 
AnswerRe: Device Application Pin
Burrough23-Feb-07 8:25
Burrough23-Feb-07 8:25 
AnswerRe: Device Application [modified] Pin
Orcrist27-Feb-07 12:59
Orcrist27-Feb-07 12:59 
QuestionHow to Make a control to View a Video clip from web to Mobile Pin
Atif Ali Bhatti22-Feb-07 9:00
Atif Ali Bhatti22-Feb-07 9:00 
QuestionPocket PC Pin
Pariksheet21-Feb-07 20:14
Pariksheet21-Feb-07 20:14 
AnswerRe: Pocket PC Pin
Mike Dimmick21-Feb-07 23:45
Mike Dimmick21-Feb-07 23:45 
QuestionAutomation and eVC++ 4.2 Pin
Like2Byte21-Feb-07 9:24
Like2Byte21-Feb-07 9:24 
AnswerRe: Automation and eVC++ 4.2 Pin
perlmunger22-Feb-07 5:14
perlmunger22-Feb-07 5:14 
QuestionPairing between PDA and bluetooth device Pin
spit_spit_spit_spit20-Feb-07 23:04
spit_spit_spit_spit20-Feb-07 23:04 
Hi,


I try to connect my PDA with a bluetooth device through a virtual COM port. I don't want a simple communication between the devices, my main goal is to register the COM7 port into windows bluetooth connection (under windows, into the menu bluetooth...).
My PDA is a Dell axim X51 and i'm with windows 2005 (the bt stack is the microsoft one).

I use InTheHand library (www.32feet.net) for the main part and the c++ function registerDevice. IntheHand juste help me to simplify the first part of the code (the research of bluetooth devices) and my problem is that registerDevice throw me a CANNOT_OPEN_FILES error.

If a do a manual pairing in windows (through bluetooth menu, i manually create a new output), then i delete it and finally i use my code (registerDevice) it works. A virtual COM7 port is created again and we can communicate presistently.
If the PDA is empty, registerDevice throw me error that he cannot open device.
I don't understand why.

In all the case, with inTheHand i can connect my client to the serialPort but it's not reallly my goal.



here is some code to help you understand

BluetoothDeviceInfo[] infos = client.DiscoverDevices(10, false, false, true);

-> here i find the different bluetooth devices around with InTheHand classes. I use it everytime and it works, no problem here

bool paired = InTheHand.Net.Bluetooth.BluetoothSecurity.PairRequest(deviceAddress, "0000");
BluetoothEndPoint serial = new InTheHand.Net.BluetoothEndPoint(deviceAddress, InTheHand.Net.Bluetooth.BluetoothService.SerialPort);
client.Connect(serial);

-> here I connect the client to the serialPort with InTheHand functions, ok, but when i quit my application the COM7 port is not registered in my bluetooth windows connection. This also works fine but it's not my main goal, i want to register persistently my COM7 port.

so i use here, the C++ function registerDevice to register my COM7 port in my bluetooth windows connection. But as i said, it works only if a manual connection has been set up before. you can find my source here: http://msdn2.microsoft.com/en-us/library/ms881004.aspx
The following code come from the msdn link, it's in a c++ dll that i use in my C# code.
PORTEMUPortParams pp;
memset(&pp, 0, sizeof(pp));
pp.flocal = TRUE;
pp.channel = 1 & 0xff;
HANDLE h = RegisterDevice(L"COM", 7, L"btd.dll", (DWORD)&pp);



If someone can help me, thanks in advance !



--
Nicolas Dujacquier
Questionebook refrecence Pin
B.A20-Feb-07 2:37
B.A20-Feb-07 2:37 
AnswerRe: ebook refrecence Pin
Orcrist26-Feb-07 11:35
Orcrist26-Feb-07 11:35 
Questionserver certificate authentification Pin
lmr2219-Feb-07 23:45
lmr2219-Feb-07 23:45 
QuestionHow to start new process (specifically IE) using a button? Pin
Bosch_cco16-Feb-07 0:31
Bosch_cco16-Feb-07 0:31 
AnswerRe: How to start new process (specifically IE) using a button? Pin
Mike Dimmick19-Feb-07 6:19
Mike Dimmick19-Feb-07 6:19 
QuestionCannot parse XML under Windows Mobile 5.0 Pin
Antony Lee14-Feb-07 17:43
Antony Lee14-Feb-07 17:43 
AnswerRe: Cannot parse XML under Windows Mobile 5.0 Pin
Mike Dimmick15-Feb-07 0:12
Mike Dimmick15-Feb-07 0:12 
GeneralRe: Cannot parse XML under Windows Mobile 5.0 Pin
Antony Lee15-Feb-07 4:27
Antony Lee15-Feb-07 4:27 
QuestionPocket PC Keyboard Pin
MinarikM14-Feb-07 3:15
MinarikM14-Feb-07 3:15 
AnswerRe: Pocket PC Keyboard Pin
Mike Dimmick15-Feb-07 0:15
Mike Dimmick15-Feb-07 0:15 
GeneralRe: Pocket PC Keyboard Pin
MinarikM15-Feb-07 2:33
MinarikM15-Feb-07 2:33 
QuestionHow to create a ticker on Pocket PC Pin
snprani13-Feb-07 23:48
snprani13-Feb-07 23:48 
AnswerRe: How to create a ticker on Pocket PC Pin
perlmunger21-Feb-07 5:23
perlmunger21-Feb-07 5:23 
QuestionDownloading a picture from a Servlet [modified] Pin
Vichitram12-Feb-07 20:10
Vichitram12-Feb-07 20:10 
QuestionAbout tiny kernel template? Pin
Syouki_kou12-Feb-07 17:56
Syouki_kou12-Feb-07 17:56 
AnswerRe: About tiny kernel template? Pin
Mike Dimmick15-Feb-07 0:19
Mike Dimmick15-Feb-07 0:19 
Questionperformance profiling tool for Windows Mobile? Pin
George_George12-Feb-07 4:34
George_George12-Feb-07 4:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.