Discussion:
Bluetooth SDK encaspulation and irprops.cpl (problem with external functions from irprops.cpl)
(too old to reply)
TheKeeper
2005-11-16 16:50:17 UTC
Permalink
Hi everybody.

I am writing a component, encapsulating the functionality of the Bluetooth
windows API.
There are 2 ways to work with bluetooth. One is to use the windows sockets
and other is
to use the Bluetoothxxxxxxxxxxx functions group which lives in the ->
irprops.cpl <-

The problem is that i can use some functions from the irprops.cpl like
BluetoothFindFirstDevice
but i CANT use others like : BluetoothRegisterForAuthentication.

When i say i cant use i mean that i cant 'find' them (or i cant find the
right address of the functions).
For example the declaration from the previus function is

function BluetoothRegisterForAuthentication; external btapi name
'BluetoothRegisterForAuthentication';

taken from the jedi windows api include files.

It should work, but it does not. I get an AccessViollation the moments that
i call the function!!!

if i get a pointer to the function with GetProcAddress api call still i have
the same problem. I have a value (an address)
but the address is wrong....

Any ideas please? Had anyone any problems with the irprops.cpl and solved
them by version changing?

Thanx.
TheKeeper
Riki Wiki
2005-11-19 12:45:41 UTC
Permalink
Post by TheKeeper
Any ideas please?
Hoi

You need to repost your question on the Borland news server to make
everybody see it and possibly answer your question. Also use the newsgroup
b.p.d.vcl.components.writing.win32 group.

Take a look here:
<http://tinyurl.com/8m5nw>
which links to
<http://delphi.wikicities.com/wiki/Delphi_Newsgroups>

Loading...