(unknown charset) Re: [BLACKBOX] CP interface to C/C++ code

From: (unknown charset) [at]} <Dmitry>
Date: Tue, 1 Feb 2011 04:37:45 +0300

----boundary-LibPST-iamunique-1013063478_-_-
Content-type: text/plain

Is Delphi API for this project available? I think it'll be simplier to translate Delphi code.

Mon, 31 Jan 2011 22:06:42 +0100 письмо от Darek Maksimiuk <darek.maksimiuk{([at]})nowhere.xy

> Dear All,
> I am trying to implement an interface from the BBox to the
> Excalibur digital receiver (http://www.winradio.co.uk/home/g31ddc.htm)
> using the provided DLL library. I came across some strange (at least
> for me) C/C++ constructs, and I do not know how to map them to the
> CP:
>
>
> DECLARE_INTERFACE(IG31DDCDeviceEnumerator)
> {
> STDMETHOD_(LONG,AddRef)(THIS) PURE;
> STDMETHOD_(LONG,Release)(THIS) PURE;
>
> STDMETHOD_(BOOL,Enumerate)(THIS) PURE;
> STDMETHOD_(UINT32,GetCount)(THIS) PURE;
> STDMETHOD_(BOOL,GetDeviceInfo)(THIS_ UINT32
> DeviceIndex,G31DDC_DEVICE_INFO *DeviceInfo,UINT32 BufferLength) PURE;
> };
>
> also how I should map the following construct to CP?
>
> BOOL __stdcall CreateInstance(UINT32 ClassId,void **Intf);
> (my fist solution was: fcn_map : PROCEDURE (ClassId :INTEGER; Inft
> : ANYPTR):BOOLEAN but I not sure if it makes any sense).
>
> The DLL has only one entry that allows creation of two objects, and
> the rest of functionality is (somehow) embedded within the object's
> code.
> How should I approach this kind of interfaces?
>
> Any tips & tricks are very welcome.
>
> Regards,
> Darek
>
>
> ----
> To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to
> LISTSERV{([at]})nowhere.xy



-----------
Отправлено с m.mail.ru


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1013063478_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTFcZnJvbXRleH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W9uYWxpdHkgaXMgKHNvbWVob3cpIGVtYmVkZGVkIHdpdGhpbiB0aGUgb2Jq
ZWN0J3NccGFyDQo+IGNvZGUuXHBhcg0KPiBIb3cgc2hvdWxkIEkgYXBwcm9hY2ggdGhpcyBraW5k
IG9mIGludGVyZmFjZXM/XHBhcg0KPiBccGFyDQo+IEFueSB0aXBzICYgdHJpY2tzICBhcmUgIHZl
cnkgd2VsY29tZS5ccGFyDQo+IFxwYXINCj4gUmVnYXJkcyxccGFyDQo+IERhcmVrXHBhcg0KPiBc
cGFyDQo+IFxwYXINCj4gLS0tLVxwYXINCj4gVG8gdW5zdWJzY3JpYmUsIHNlbmQgYSBtZXNzYWdl
IHdpdGggYm9keSAiU0lHTk9GRiBCTEFDS0JPWCIgdG9ccGFyDQo+IExJU1RTRVJWQExJU1RTLk9C
RVJPTi5DSFxwYXINClxwYXINClxwYXINClxwYXINCi0tLS0tLS0tLS0tXHBhcg0KXCdjZVwnZjJc
J2VmXCdmMFwnZTBcJ2UyXCdlYlwnZTVcJ2VkXCdlZSBcJ2YxIG0ubWFpbC5ydVxwYXINClxwYXIN
ClxwYXINCi0tLS1ccGFyDQpUbyB1bnN1YnNjcmliZSwgc2VuZCBhIG1lc3NhZ2Ugd2l0aCBib2R5
ICJTSUdOT0ZGIEJMQUNLQk9YIiB0byBMSVNUU0VSVkBMSVNUUy5PfX0AAEJPWCIgdG8gTElT
----boundary-LibPST-iamunique-1013063478_-_---
Received on Tue Feb 01 2011 - 02:37:45 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:18 UTC