- Making use of Static Libraries in BB

From: Treutwein Bernhard <"Treutwein>
Date: Mon, 10 Jul 2006 12:06:03 +0200

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

Hi Eryk,

> I am thinking of writting a wrapper first in C++ and
> compiling a DLL out of it and then write another wrapper in

sounds reasonable, except that I would try to write
the wrapper in "plain" C instead of C++ to avoid
problems with name-mangling and V-Tables etc.

I also don't know if your static lib can easily be
wrapped up for a DLL (afaik, DLLs must be compiled
in position independent code).

If you are able to read german the following link might provide
help: http://www.mikrocontroller.net/forum/read-8-369925.html
if you are not able to read german try babelfish or ask me
directly for translation help ...

regards
--
	Bernhard Treutwein, IuK, Ref. III A 3
	Bernhard.Treutwein(at)verwaltung uni-muenchen de
> -----Original Message-----
> From: blackbox{([at]})nowhere.xy> Behalf Of edruszki
> Sent: Friday, July 07, 2006 7:38 PM
> To: BlackBox Mailing List
> Subject: [BlackBox] - Making use of Static Libraries in BB
> 
> 
> Good day,
> 
> We are building a digital acquisition board for physical 
> experiments. I am at point where I need to talk to the board 
> via BlackBox. We are using and FX2LP Cypress USB chip. With 
> the chip the company provided a CyApi.lib static library and 
> a header file with all the function calls, available in two 
> versions Visual
> C++ 6&7 and Bodland C++ Builder 6.
> 
> I am looking for an efficient way to make use of the 
> CyApi.lib and CyApi.h files to call the functions from 
> blackbox. Can you help me?
> 
> I am thinking of writting a wrapper first in C++ and 
> compiling a DLL out of it and then write another wrapper in 
> BlackBox. But since I am not a fan of C++ and I don't know 
> much about it, I hope there is a less complex way of reaching 
> the goal.
> 
> Thank you for your time,
> With regards,
> Eryk Druszkiewicz
> 
> --- BlackBox
> --- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy> 
> 
--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy----boundary-LibPST-iamunique-223840042_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZz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XIN
Cj4gLS0tIHNlbmQgc3ViamVjdCBIRUxQIG9yIFVOU1VCU0NSSUJFIHRvIGJsYWNrYm94QG9iZXJv
bi5jaFxwYXINCj4gXHBhcg0KPiBccGFyDQpccGFyDQotLS0gQmxhY2tCb3hccGFyDQotLS0gc2Vu
ZCBzdWJqZWN0IEhFTFAgb3IgVU5TVUJTQ1JJQkUgdG8gYmxhY2tib3hAb2Jlcm9uLmNoXHBhcg0K
XHBhcg0KfQ=
----boundary-LibPST-iamunique-223840042_-_---
Received on Mon Jul 10 2006 - 12:06:03 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:27:49 UTC