-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday 08 July 2003 10:14, Jane Young wrote:
> As I mentioned, I used C to implement our previous program, can I still
> wrap it?
as C++ is pretty much a superset of C[1] you should be able to wrap it just
fine. there are couple different ways to go at it ("porting" the C into a C++
class structure, using the C functions from native C++ classes as if it were
a library, actually creating a library, etc), and it really all comes down to
how much C code you have, how it was originally designed, how much time you
are willing to spend on it and how importnat going-forward maintenance is to
you. it usually isn't too difficult, though poor initial design can make it
harder than necessary.
you could just turn your C code into a .so, export a public interface in a
header file and link against that from your C++ program. this is often the
easiest way, and doesn't tie you to C++ in the future. but again, it really
depends on the details.
[1] i'm fully aware this is a generalization and not 100% technically
accurate. but it's close enough to accurate for this conversation. =)
- --
Aaron J. Seigo
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
KDE: The 'K' is for 'kick ass'
http://www.kde.org http://promo.kde.org/3.1/feature_guide.php
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
iD8DBQE/CxJn1rcusafx20MRAnXPAJ9LDihS//S0llP2tlLZJLtsXZ/Y+ACfQIi8
hwsgWNl7oSKoDRQZm2gqpgY=
=76Ay
-----END PGP SIGNATURE-----