Author Topic: How to use the wclAPI without VCL  (Read 2227 times)

Offline rstruebl

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
How to use the wclAPI without VCL
« on: November 21, 2012, 04:18:35 PM »
Hi,

I created a class to encapsulate the BT functionality of a bluetooth driven luminaire.
---------------------------------------------------
TBluetooth = class
    private
      FwclAPI               : TwclAPI;
   ...
---------------------------------------------------

After the inherited create in the constructor of the class  I wrote:
---------------------------------------------------
FwclAPI := TwclAPI.Create(nil);
---------------------------------------------------

But this raises an exception (access violation).
It seems that I've overseen something basic.
I do not know how to go on - someone could help?

Thanks and Regards
Robert

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3053
  • Karma: 1000
    • Soft Service Company
Re: How to use the wclAPI without VCL
« Reply #1 on: November 21, 2012, 04:33:22 PM »
Hi,

You did all absolutely correct. I guess the problem is in other place. Could you send me your code to mike@btframework.com so I can take a look on it and fix.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3053
  • Karma: 1000
    • Soft Service Company
Re: How to use the wclAPI without VCL
« Reply #2 on: November 21, 2012, 05:46:52 PM »
Hi,

Got your e-mail and sent an answer with fixes description.

 

Sitemap 1 2 3 4 5 6 7 8 9